@ When ( "^All resources from service '(.+?)' have been freed$" ) public void checkResources ( String service ) throws Exception { Future < Response > response = commonspec . generateRequest ( "GET" , true , null , null , "/mesos/state-summary" , null , null ) ; String json = "[" + response . get ( ) . getResponseBody ( ) + "]" ; String parsedElement = "$..frameworks[?(@.active==false)].name" ; String value = commonspec . getJSONPathString ( json , parsedElement , null ) ; Assertions . assertThat ( value ) . as ( "Inactive services" ) . doesNotContain ( service ) ; }
Check if resources are released after uninstall and framework doesn t appear as inactive on mesos