diff --git a/features/step_definitions/common.rb b/features/step_definitions/common.rb index 2874e5a325..fbc582da4c 100644 --- a/features/step_definitions/common.rb +++ b/features/step_definitions/common.rb @@ -19,7 +19,7 @@ end When /^I perform the :([a-z_]*?) rest request$/ do |yaml_key| - @result = env.rest_request_executor.exec(user: user, req: yaml_key.to_sym) + @result = user.rest_request(yaml_key.to_sym) end When /^I perform the :([a-z_]*?) rest request with:$/ do |yaml_key, table| diff --git a/features/test/rest.feature b/features/test/rest.feature index 7ff31e9306..3684f6e887 100644 --- a/features/test/rest.feature +++ b/features/test/rest.feature @@ -5,6 +5,8 @@ Feature: Testing REST Scenarios | display name | OpenShift 3 Demo | | description | This is the first demo project with OpenShift v3 | Then the step should succeed + # timing issue, making sure the project is there fist + And I use the "demo" project When I perform the :list_projects rest request Then the step should succeed And the output should contain: