You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by vv...@apache.org on 2019/12/27 20:40:34 UTC

[incubator-dlab] branch vit-feature-integration-tests created (now 258505a)

This is an automated email from the ASF dual-hosted git repository.

vvitanska pushed a change to branch vit-feature-integration-tests
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at 258505a  [DLAB-1418]: Created integration tests for project in Gherkin

This branch includes the following new commits:

     new 258505a  [DLAB-1418]: Created integration tests for project in Gherkin

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org


[incubator-dlab] 01/01: [DLAB-1418]: Created integration tests for project in Gherkin

Posted by vv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vvitanska pushed a commit to branch vit-feature-integration-tests
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 258505a4ee8e0e34a8fd172423a2d21e8a951841
Author: Vira Vitanska <vi...@EPUAKHAW1443.kyiv.epam.com>
AuthorDate: Fri Dec 27 22:39:33 2019 +0200

    [DLAB-1418]: Created integration tests for project in Gherkin
---
 .../src/test/resources/dlab/project.feature        | 140 ++++++++++++++++++++-
 1 file changed, 134 insertions(+), 6 deletions(-)

diff --git a/integration-tests-cucumber/src/test/resources/dlab/project.feature b/integration-tests-cucumber/src/test/resources/dlab/project.feature
index c5643b6..3dff777 100644
--- a/integration-tests-cucumber/src/test/resources/dlab/project.feature
+++ b/integration-tests-cucumber/src/test/resources/dlab/project.feature
@@ -1,18 +1,146 @@
 Feature: Project management in DLab
   Such feature allowed to manage projects inside DLab
 
-  Scenario Outline: Create new project when it does not exist
+  Scenario Outline: Create new project when it does not exist and use shared image is enable
 
     Given There is no project with name "<name>" in DLab
     And There are the following endpoints
       | local |
     And There are the following groups
       | $anyuser |
-    And User generate new publicKey
-    And User try to create new project with name "<name>", endpoints, groups and publicKey
-    When User send create new project request
-    Then User wait maximum <timeout> minutes while project is creating
+    And User generates new publicKey
+    When User tries to create new project with name "<name>", endpoints, groups, publicKey and use shared image "true"
+    And User sends create new project request
+    Then User waits maximum <timeout> minutes while project is creating
     Then Status code is 200
     Examples:
       | name | timeout |
-      | prj1 | 20      |
\ No newline at end of file
+      | prj1 | 20      |
+
+
+  Scenario Outline: Create new project when project with the same name exists already
+
+    Given There are the following projects
+      | prj1 |
+    And There are the following endpoints
+      | local |
+    And There are the following groups
+      | $anyuser |
+    And User generates new publicKey
+    When User tries to create new project with name "<name>", endpoints, groups, publicKey and use shared image "true"
+    And User sends create new project request
+    Then Response status code is 409
+    Examples:
+      | name |
+      | prj1 |
+
+
+  Scenario Outline: Get information about a projects that exits
+
+    Given There are the following projects
+      | prj1 |
+    And There are the following endpoints
+      | local |
+    And There are the following groups
+      | $anyuser |
+    When User tries to get information about project with name "<name>"
+    Then Response status code is 200
+    And Project information is successfully returned with name "<name>", endpoints, groups
+    Examples:
+      | name | endpoint | group |
+      | prj1 | local    | $anyuser |
+
+
+  Scenario: Get information about a project that does not exists
+
+    Given There is no project with name "test1"
+    When User tries to get information about the project with name "test1"
+    Then Respone status code is 404
+
+
+
+
+   Scenario: Edit (change use shared image and add a group) a project that is available
+
+   Given There are the following projects
+     | prj1 |
+   And There are the following endpoints
+     | local |
+   And There are the following groups
+     | $anyuser |
+   And Use shared image
+     | true |
+   When User tries to create a new group with name "admin"
+   And User adds new group with name "admin"
+   And User changes use shared image to "false"
+   And User sends request for updating
+   Then Response status code is 200
+   And Project information is successfully updated with groups, use shared image
+
+
+   Scenario: Edit (remove endpoint) a project that is available
+
+   Given There are the following projects
+     | prj1 |
+   And There are the following endpoints
+     | local |
+   And There are the following groups
+     | $anyuser |
+   And Use shared image
+     | true |
+   When User tries to remove endpoint with name "local"
+   And User sends request for updating
+   Then Response status code is 403
+
+   Scenario: Edit (add group that does not exit) a project that is available
+
+   Given There are the following projects
+     | prj1 |
+   And There are the following endpoints
+     | local |
+   And There are the following groups
+     | $anyuser |
+   And Use shared image
+     | true |
+   And There is no group with name "global"
+   When User tries to add group with name "global"
+   And User sends request for updating
+   Then Response status code is 400
+
+   Scenario: Edit (add endpoint that does not exit) a project that is available
+
+   Given There are the following projects
+     | prj1 |
+   And There are the following endpoints
+     | local |
+   And There are the following groups
+     | $anyuser |
+   And Use shared image
+     | true |
+   And There is no endpoint with name "exploring"
+   When User tries to add endpoint with name "exploring"
+   And User sends request for updating
+   Then Response status code is 400
+
+   Scenario Outline: Terminate a project/edge node  that exits
+
+     Given There are the following projects
+       | prj1 |
+     And There are the following endpoints
+       | local |
+     And There are the following groups
+       | $anyuser  |
+     When User tries to terminate the project with name "<name>"
+     And User sends request for termination
+     Then User waits maximum <timeout> minutes while project is terminated
+     Then Response status code is 200
+     Examples:
+       | name | timeout |
+       | prj1 | 20      |
+
+
+    Scenario: Terminate a project/edge node that does not exists
+
+      Given There is no project with name "test1"
+      When User tries to terminate the project with name "test1"
+      Then Respone status code is 404


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org