@@ -55,6 +55,26 @@ public void testCollectionRefresh_Public_Success(Core core, String urlPath, Stri
5555 }
5656 }
5757
58+ @ ParameterizedTest (name = "Refresh test - UrlPath: {1} - CollectionName: {2}" )
59+ @ MethodSource ({"suite.core.TestData#collectionEndpointArgs" })
60+ public void testCollectionRefreshCloud_Encryption_Public_Success (Core core , String urlPath , String collectionName ) throws Exception {
61+ JsonNode response = core .getWithCoreApiToken (urlPath , "10000.0.1" );
62+
63+ assertAll ("testCollectionRefresh_Public_Success has version and collection" ,
64+ () -> assertNotNull (response , "Response should not be null" ),
65+ () -> assertNotEquals ("" , response .at ("/version" ).asText (), "Version was empty" ),
66+ () -> assertNotNull (response .at ("/" + collectionName ), "Collection should not be null" )
67+ );
68+
69+ ArrayNode nodes = (ArrayNode ) response .at ("/" + collectionName );
70+ for (JsonNode node : nodes ) {
71+ assertTrue (JsonAssert .hasContentInFields (
72+ node , List .of ("/effective" , "/expires" , "/location" , "/size" )
73+ ), "Collection node was missing expected content" );
74+ assertTrue (node .get ("location" ).asText ().contains ("encrypted" ));
75+ }
76+ }
77+
5878 @ ParameterizedTest (name = "Refresh test - UrlPath: {1} - JsonPath: {2}" )
5979 @ MethodSource ({"suite.core.TestData#optOutRefreshArgs" })
6080 public void testOptOut_LocationRefresh_Public_Success (Core core , String urlPath , String jsonPath ) throws Exception {
0 commit comments