Browse Source
Merge pull request #14224 from thingsboard/master-rc
Fix CoapClientTest
pull/14234/head
Viacheslav Klimov
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
msa/black-box-tests/src/test/java/org/thingsboard/server/msa/connectivity/CoapClientTest.java
|
|
|
@ -71,7 +71,7 @@ public class CoapClientTest extends AbstractCoapClientTest{ |
|
|
|
assertThat(provisionResponse2.get("status").asText()).isEqualTo("FAILURE"); |
|
|
|
|
|
|
|
// update provision attribute to non-valid value
|
|
|
|
testRestClient.postTelemetryAttribute(device.getId(), AttributeScope.SERVER_SCOPE.name(), JacksonUtil.valueToTree(Map.of("provisionState", "non-valid"))); |
|
|
|
testRestClient.postTelemetryAttribute(device.getId(), AttributeScope.SERVER_SCOPE, JacksonUtil.valueToTree(Map.of("provisionState", "non-valid"))); |
|
|
|
|
|
|
|
JsonNode provisionResponse3 = JacksonUtil.fromBytes(createCoapClientAndPublish(device.getName())); |
|
|
|
assertThat(provisionResponse3.get("status").asText()).isEqualTo("FAILURE"); |
|
|
|
|