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 2020/01/20 14:43:59 UTC

[incubator-dlab] 01/01: [DLAB-1426]: Created integration tests for notebooks in Gherkin

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 b6aa18ca4ee6d4483ecade33292f818dcc10e539
Author: Vira Vitanska <vi...@Viras-MBP.kyiv.epam.com>
AuthorDate: Mon Jan 20 16:41:17 2020 +0200

    [DLAB-1426]: Created integration tests for notebooks in Gherkin
---
 .../src/test/resources/dlab/notebook.feature       | 96 +++++++++++++++++++++-
 1 file changed, 94 insertions(+), 2 deletions(-)

diff --git a/integration-tests-cucumber/src/test/resources/dlab/notebook.feature b/integration-tests-cucumber/src/test/resources/dlab/notebook.feature
index 02bdffb..f155ea8 100644
--- a/integration-tests-cucumber/src/test/resources/dlab/notebook.feature
+++ b/integration-tests-cucumber/src/test/resources/dlab/notebook.feature
@@ -12,5 +12,97 @@ Feature: Notebook management in DLab
     And User waits maximum <timeout> minutes while notebook is creating
     @aws @v1 @jupyter
     Examples:
-      | name | endpoint | image               | template               | project | exploratoryTag       | shape     | version                | imageName | timeout |
-      | jup1 | local    | docker.dlab-jupyter | Jupyter notebook 6.0.2 | prj1    | integration test tag | t2.medium | jupyter_notebook-6.0.2 |           | 20      |
\ No newline at end of file
+      | name    | endpoint | image                      | template                      | project | exploratoryTag       | shape     | version                | imageName | timeout |
+      | jup1    | local    | docker.dlab-jupyter        | Jupyter notebook 6.0.2        | prj1    | integration test tag | t2.medium | jupyter_notebook-6.0.2 |           | 50      |
+      | rst1    | local    | docker.dlab-rstudio        | RStudio 1.2.5033              | prj1    | integration test tag | t2.medium | RStudio-1.2.5033       |           | 45      |
+      | zep1    | local    | docker.dlab-zeppelin       | Apache Zeppelin 0.8.2         | prj1    | integration test tag | t2.medium | zeppelin-0.8.2         |           | 50      |
+      | tenrst1 | local    | docker.dlab-tensor-rstudio | RStudio with TensorFlow 1.8.0 | prj1    | integration test tag | p2.xlarge | tensorflow_gpu-1.8.0   |           | 60      |
+      | ten1    | local    | docker.dlab-tensor         | Jupyter with TensorFlow 1.8.0 | prj1    | integration test tag | p2.xlarge | tensorflow_gpu-1.8.0   |           | 60      |
+      | juplab1 | loacl    | docker.dlab-jupyterlab     | JupyterLab 0.35.6             | prj1    | integration test tag | t2.medium | jupyter_lab-0.35.6     |           | 30      |
+      | deepl1  | loacl    | docker.dlab-deeplearning   | Deep Learning  2.2            | prj1    | integration test tag | p2.xlarge | deeplearning-2.2       |           | 180     |
+
+
+  Scenario Outline: Stop notebook when it is in running Status
+
+    Given There is running notebook with name "<name>" in project "<project>"
+    And User tries to stop the notebook
+    When User sends request to stop the notebook
+    Then Status code is 202
+    And User waits maximum <timeout> minutes while notebook is stopping
+    Examples:
+      | name | project | timeout |
+      | jup1 | prj1    | 10      |
+
+
+
+  Scenario Outline: Start notebook when it is in stopped Status
+
+        Given There is stopped notebook with name "<name>" in project "<project>"
+        And User tries to start the notebook
+        When User sends request to start the notebook
+        Then Status code is 202
+        And User waits maximum <timeout> minutes while notebook is starting
+        Examples:
+          | name | project | timeout |
+          | jup1 | prj1    | 10      |
+
+
+
+  Scenario Outline: Get information about notebook that exits
+
+        Given There are the following notebook
+            | jup1 |
+        And There are the following project
+            | prj1 |
+        And User tries to get information about notebook with name "<name>"
+        When User sends request to get information about notebook
+        Then Status code is 200
+        And Notebook information is successfully returned with name "<name>", project
+        Examples:
+        | name  | project |
+        | jup1  | prj1    |
+
+
+
+  Scenario Outline: Get information about notebooks that exit
+
+        Given There are the following notebooks
+            | jup1 | rst1  | zep1 | tenrst1 | ten1 | juplab1 | deepl1  |
+        And There are the following project
+            | prj1 |
+        And User tries to get information about notebook with name "<name>" in project "<project>"
+        When User sends request to get information about notebook
+        Then Status code is 200
+        And Notebook information is successfully returned with name "<name>", project
+        Examples:
+        | name   | project |
+        | jup1   | prj1    |
+        | rst1   | prj1    |
+        | zep1   | prj1    |
+        | tenrst | prj1    |
+        | jup1   | prj1    |
+        | jup1   | prj1    |
+
+
+    Scenario Outline: Get information about a notebook that does not exists
+
+        Given There is no notebook with name "<name>" in DLab
+        And User tries to get information about notebook with name "<name>"
+        When User sends request to get information about notebook
+        Then Status code is 404
+        Examples:
+        | name  |
+        | test1 |
+
+
+
+      Scenario Outline: Terminate notebook when it is in running Status
+
+        Given There is running notebook with name "<name>" in project "<project>"
+        And User tries to terminate the notebook
+        When User sends request to terminate the notebook
+        Then Status code is 202
+        And User waits maximum <timeout> minutes while notebook is terminating
+        Examples:
+        | name | project | timeout |
+        | jup1 | prj1    | 10      |


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