|
|
|
@ -28,49 +28,4 @@ public class NoSecLwM2MIntegrationTest extends AbstractSecurityLwM2MIntegrationT |
|
|
|
LwM2MDeviceCredentials clientCredentials = getDeviceCredentialsNoSec(createNoSecClientCredentials(clientEndpoint)); |
|
|
|
super.basicTestConnectionObserveSingleTelemetry(SECURITY_NO_SEC, clientCredentials, clientEndpoint, false, false); |
|
|
|
} |
|
|
|
|
|
|
|
// Bootstrap + Lwm2m
|
|
|
|
@Test |
|
|
|
public void testWithNoSecConnectBsSuccess_UpdateTwoSectionsBootstrapAndLm2m_ConnectLwm2mSuccess() throws Exception { |
|
|
|
String clientEndpoint = CLIENT_ENDPOINT_NO_SEC_BS + BOTH.name(); |
|
|
|
String awaitAlias = "await on client state (NoSecBS two section)"; |
|
|
|
basicTestConnectionStartBS(clientEndpoint, awaitAlias, BOTH, expectedStatusesRegistrationBsSuccess, ON_REGISTRATION_SUCCESS); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testWithNoSecConnectBsSuccess_UpdateLwm2mSectionAndLm2m_ConnectLwm2mSuccess() throws Exception { |
|
|
|
String clientEndpoint = CLIENT_ENDPOINT_NO_SEC_BS + LWM2M_ONLY.name(); |
|
|
|
String awaitAlias = "await on client state (NoSecBS Lwm2m section)"; |
|
|
|
basicTestConnectionStartBS(clientEndpoint, awaitAlias, LWM2M_ONLY, expectedStatusesRegistrationBsSuccess, ON_REGISTRATION_SUCCESS); |
|
|
|
} |
|
|
|
|
|
|
|
// Bs trigger
|
|
|
|
@Test |
|
|
|
public void testWithNoSecConnectLwm2mSuccessBootstrapRequestTriggerConnectBsSuccess_UpdateTwoSectionAndLm2m_ConnectLwm2mSuccess() throws Exception { |
|
|
|
String clientEndpoint = CLIENT_ENDPOINT_NO_SEC_BS + "Trigger" + BOTH.name(); |
|
|
|
String awaitAlias = "await on client state (NoSecBS Trigger Two section)"; |
|
|
|
basicTestConnectionBootstrapRequestTriggerBefore(clientEndpoint, awaitAlias, BOTH); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testWithNoSecConnectLwm2mSuccessBootstrapRequestTriggerConnectBsSuccess_UpdateBootstrapSectionAndLm2m_ConnectLwm2mSuccess() throws Exception { |
|
|
|
String clientEndpoint = CLIENT_ENDPOINT_NO_SEC_BS + "Trigger" + BOOTSTRAP_ONLY.name(); |
|
|
|
String awaitAlias = "await on client state (NoSecBS Trigger Bootstrap section)"; |
|
|
|
basicTestConnectionBootstrapRequestTriggerBefore(clientEndpoint, awaitAlias, BOOTSTRAP_ONLY); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testWithNoSecConnectLwm2mSuccessBootstrapRequestTriggerConnectBsSuccess_UpdateLwm2mSectionAndLm2m_ConnectLwm2mSuccess() throws Exception { |
|
|
|
String clientEndpoint = CLIENT_ENDPOINT_NO_SEC_BS + "Trigger" + LWM2M_ONLY.name(); |
|
|
|
String awaitAlias = "await on client state (NoSecBS Trigger Lwm2m section)"; |
|
|
|
basicTestConnectionBootstrapRequestTriggerBefore(clientEndpoint, awaitAlias, LWM2M_ONLY); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testWithNoSecConnectLwm2mSuccessBootstrapRequestTriggerConnectBsSuccess_UpdateNoneSectionAndLm2m_ConnectLwm2mSuccess() throws Exception { |
|
|
|
String clientEndpoint = CLIENT_ENDPOINT_NO_SEC_BS + "Trigger" + NONE.name(); |
|
|
|
String awaitAlias = "await on client state (NoSecBS Trigger None section)"; |
|
|
|
basicTestConnectionBootstrapRequestTriggerBefore(clientEndpoint, awaitAlias, NONE); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|