Skip to content

Commit

Permalink
Adjust expected message response
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobianas committed Apr 10, 2024
1 parent 870173a commit a170fa7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ public void connectDeviceWithWrongCaCertificatesAndReconnect() throws IOExceptio
HttpResponse<String> tdGetResponse
= sendGetRequestJSON(String.format(TEST_DATA_PATH, GNMI_NODE_ID));
Assertions.assertEquals(HttpURLConnection.HTTP_UNAVAILABLE, tdGetResponse.statusCode());
assertTrue(tdGetResponse.body().contains("Mount point does not exist"));
assertTrue(tdGetResponse.body().contains("Mount point") && tdGetResponse.body()
.contains("does not exist"));
});

// Register correct keystore
Expand Down Expand Up @@ -296,7 +297,8 @@ public void connectDeviceWithoutPassphrase() throws IOException, InterruptedExce
HttpResponse<String> tdGetResponse
= sendGetRequestJSON(String.format(TEST_DATA_PATH, GNMI_NODE_ID));
assertEquals(HttpURLConnection.HTTP_UNAVAILABLE, tdGetResponse.statusCode());
assertTrue(tdGetResponse.body().contains("Mount point does not exist"));
assertTrue(tdGetResponse.body().contains("Mount point") && tdGetResponse.body()
.contains("does not exist"));
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public class GnmiSetITTest extends GnmiITBase {
+ " \"errors\": {\n"
+ " \"error\": [\n"
+ " {\n"
+ " \"error-type\": \"application\",\n"
+ " \"error-tag\": \"operation-failed\",\n"
+ " \"error-info\": \"io.grpc.StatusRuntimeException: NOT_FOUND: "
+ " \"error-info\": \"NOT_FOUND: "
+ "Update for non existing simple value is not permitted\",\n"
+ " \"error-message\": \"Transaction failed\"\n"
+ " \"error-message\": \"Transaction(PUT) failed\",\n"
+ " \"error-type\": \"application\"\n"
+ " }\n"
+ " ]\n"
+ " }\n"
Expand Down

0 comments on commit a170fa7

Please sign in to comment.