Skip to content

Commit

Permalink
chore: rename v4 to v5 in tests and bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
rowasc committed Jun 30, 2020
1 parent d6db9db commit f732b63
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 113 deletions.
2 changes: 1 addition & 1 deletion bootstrap/lumen.php
Expand Up @@ -114,7 +114,7 @@
require __DIR__.'/../routes/web.php';
});
$app->router->group([
'namespace' => 'v4\Http\Controllers',
'namespace' => 'v5\Http\Controllers',
], function ($router) {
require __DIR__ . '/../v5/routes/web.php';
});
Expand Down
@@ -1,9 +1,9 @@
@acl
Feature: V4 API Access Control Layer
Feature: v5 API Access Control Layer
Scenario: Listing All Stages for all forms with hidden tasks
Given that I want to get all "Surveys"
And that the oauth token is "testbasicuser"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
When I request "/surveys"
Then the response is JSON
And the response has a "results.7.tasks" property
Expand All @@ -13,7 +13,7 @@ Feature: V4 API Access Control Layer
Scenario: Listing All fields for a stage in an array of forms with a multi-stage form
Given that I want to get all "Surveys"
And that the oauth token is "testbasicuser"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
When I request "/surveys"
Then the response is JSON
And the response has a "results.0.tasks" property
Expand All @@ -23,7 +23,7 @@ Feature: V4 API Access Control Layer
Scenario: Listing All Stages for a form in an array of forms with hidden tasks as admin
Given that I want to get all "Surveys"
And that the oauth token is "testadminuser"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
When I request "/surveys"
Then the response is JSON
And the response has a "results.7.tasks" property
Expand All @@ -32,7 +32,7 @@ Feature: V4 API Access Control Layer
Scenario: Listing All Stages for a form with hidden tasks as admin
Given that I want to find a "Survey"
And that the oauth token is "testadminuser"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
When I request "/surveys/8"
Then the response is JSON
And the response has a "result.tasks" property
Expand All @@ -42,7 +42,7 @@ Feature: V4 API Access Control Layer
Scenario: Listing All Stages for a form with hidden tasks as a normal user
Given that I want to find a "Survey"
And that the oauth token is "testbasicuser"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
When I request "/surveys/8"
Then the response is JSON
And the response has a "result.tasks" property
Expand All @@ -52,7 +52,7 @@ Feature: V4 API Access Control Layer
Scenario: User with Manage Settings permission can create a hydrated form
Given that I want to make a new "Survey"
And that the oauth token is "testmanager"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down Expand Up @@ -114,7 +114,7 @@ Feature: V4 API Access Control Layer
Scenario: Basic user CANNOT create a hydrated form
Given that I want to make a new "Survey"
And that the oauth token is "testbasicuser"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down Expand Up @@ -167,7 +167,7 @@ Feature: V4 API Access Control Layer
Scenario: Import-Export user CANNOT create a hydrated form
Given that I want to make a new "Survey"
And that the oauth token is "testimporter"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down
Expand Up @@ -3,7 +3,7 @@ Feature: Testing the Surveys API
Scenario: Updating a Survey
Given that I want to update a "Survey"
And that the oauth token is "testmanager"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down Expand Up @@ -517,7 +517,7 @@ Feature: Testing the Surveys API
Scenario: Update survey including removing one task and a field from another task
Given that I want to update a "Survey"
And that the oauth token is "testmanager"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down
Expand Up @@ -3,7 +3,7 @@ Feature: Testing the Surveys API
Scenario: Creating a new Survey
Given that I want to make a new "Survey"
And that the oauth token is "testmanager"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down Expand Up @@ -31,7 +31,7 @@ Feature: Testing the Surveys API
Scenario: A tag field with a response_private true value should fail
Given that I want to make a new "Survey"
And that the oauth token is "testmanager"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down Expand Up @@ -101,7 +101,7 @@ Feature: Testing the Surveys API

Scenario: Updating a Survey to clear name should fail
Given that I want to update a "Survey"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the oauth token is "testmanager"
And that the request "data" is:
"""
Expand All @@ -121,7 +121,7 @@ Feature: Testing the Surveys API

Scenario: Update a non-existent Survey
Given that I want to update a "Survey"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the oauth token is "testmanager"
And that the request "data" is:
"""
Expand All @@ -140,7 +140,7 @@ Feature: Testing the Surveys API

Scenario: Listing All Surveys
Given that I want to get all "Surveys"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the oauth token is "testmanager"
When I request "/surveys"
Then the response is JSON
Expand All @@ -150,7 +150,7 @@ Feature: Testing the Surveys API
Scenario: Finding a Survey
Given that I want to find a "Survey"
And that its "id" is "1"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the oauth token is "testmanager"
When I request "/surveys"
Then the response is JSON
Expand All @@ -161,7 +161,7 @@ Feature: Testing the Surveys API
Scenario: Deleting a Survey
Given that I want to delete a "Survey"
And that its "id" is "1"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the oauth token is "testmanager"
When I request "/surveys"
Then the response is JSON
Expand All @@ -171,7 +171,7 @@ Feature: Testing the Surveys API
Then the guzzle status code should be 200
Scenario: Finding a non-existent Survey
Given that I want to find a "Survey"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the oauth token is "testmanager"
And that its "id" is "1"
When I request "/surveys"
Expand Down
Expand Up @@ -4,7 +4,7 @@ Feature: Testing the Posts API
Scenario: Creating a new Post
Given that I want to make a new "Post"
And that the oauth token is "testmanager"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down Expand Up @@ -467,7 +467,7 @@ Feature: Testing the Posts API
Scenario: Creating a new Post
Given that I want to update a "Post"
And that the oauth token is "testmanager"
And that the api_url is "api/v4"
And that the api_url is "api/v5"
And that the request "data" is:
"""
{
Expand Down

0 comments on commit f732b63

Please sign in to comment.