|
|
|
@ -218,6 +218,8 @@ public abstract class AbstractSecurityLwM2MIntegrationTest extends AbstractLwM2M |
|
|
|
log.warn("basicTestConnection started -> finishState: [{}] states: {}", finishState, lwM2MTestClient.getClientStates()); |
|
|
|
return lwM2MTestClient.getClientStates().contains(finishState) || lwM2MTestClient.getClientStates().contains(ON_REGISTRATION_STARTED); |
|
|
|
}); |
|
|
|
|
|
|
|
awaitUpdateReg(1); |
|
|
|
await(awaitAlias) |
|
|
|
.atMost(40, TimeUnit.SECONDS) |
|
|
|
.until(() -> { |
|
|
|
@ -262,6 +264,8 @@ public abstract class AbstractSecurityLwM2MIntegrationTest extends AbstractLwM2M |
|
|
|
log.warn("basicTest First Connection started -> finishState: [{}] states: {}", ON_REGISTRATION_SUCCESS, lwM2MTestClient.getClientStates()); |
|
|
|
return lwM2MTestClient.getClientStates().contains(ON_REGISTRATION_SUCCESS) || lwM2MTestClient.getClientStates().contains(ON_REGISTRATION_STARTED); |
|
|
|
}); |
|
|
|
|
|
|
|
awaitUpdateReg(1); |
|
|
|
await(awaitAlias) |
|
|
|
.atMost(40, TimeUnit.SECONDS) |
|
|
|
.until(() -> { |
|
|
|
@ -288,6 +292,8 @@ public abstract class AbstractSecurityLwM2MIntegrationTest extends AbstractLwM2M |
|
|
|
log.warn("basicTestConnection started -> finishState: [{}] states: {}", ON_REGISTRATION_SUCCESS, lwM2MTestClient.getClientStates()); |
|
|
|
return lwM2MTestClient.getClientStates().contains(ON_REGISTRATION_SUCCESS) || lwM2MTestClient.getClientStates().contains(ON_REGISTRATION_STARTED); |
|
|
|
}); |
|
|
|
|
|
|
|
awaitUpdateReg(1); |
|
|
|
await(awaitAlias) |
|
|
|
.atMost(40, TimeUnit.SECONDS) |
|
|
|
.until(() -> { |
|
|
|
@ -392,12 +398,12 @@ public abstract class AbstractSecurityLwM2MIntegrationTest extends AbstractLwM2M |
|
|
|
|
|
|
|
|
|
|
|
protected void initDeviceCredentialsNoSek() { |
|
|
|
clientEndpoint = CLIENT_ENDPOINT_NO_SEC + "_" + randomSuffix.nextInt(100); |
|
|
|
clientEndpoint = CLIENT_ENDPOINT_NO_SEC + "_" + randomSuffix.nextInt(1000); |
|
|
|
security = SECURITY_NO_SEC; |
|
|
|
deviceCredentials = getDeviceCredentialsNoSec(createNoSecClientCredentials(clientEndpoint)); |
|
|
|
} |
|
|
|
protected void initDeviceCredentialsPsk() { |
|
|
|
int suf = randomSuffix.nextInt(10); |
|
|
|
int suf = randomSuffix.nextInt(1000); |
|
|
|
clientEndpoint = CLIENT_ENDPOINT_PSK + "_" + suf; |
|
|
|
String identity = CLIENT_PSK_IDENTITY + "_" + suf; |
|
|
|
clientCredentials = new PSKClientCredential(); |
|
|
|
|