code: @Then("^service '(.+?)' status in cluster '(.+?)' is '(suspended|running|deploying)'( in less than '(\\d+?)' seconds checking every '(\\d+?)' seconds)?")
      public void serviceStatusCheck(String service, String cluster, String status, String foo, Integer totalWait, Integer interval) throws Exception {
          String response;
          Integer i = 0;
          boolean matched;
  
          response = commonspec.retrieveServiceStatus(service, cluster);
  
          if (foo != null) {
              matched = status.matches(response);
              while (!matched && i < totalWait) {
                  this.commonspec.getLogger().info("Service status not found yet after " + i + " seconds");
                  i = i + interval;
                  response = commonspec.retrieveServiceStatus(service, cluster);
                  matched = status.matches(response);
              }
          }
  
          assertThat(status).as("Expected status: " + status + " doesn't match obtained one: " + response).matches(response);
  
      }
docs: Check service status has value specified
  
  @param service name of the service to be checked
  @param cluster URI of the cluster
  @param status  status expected
  @throws Exception exception     *