Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #249 from NBISweden/test/renamings
Browse files Browse the repository at this point in the history
Change scenarios numeration naming and fix indentation
  • Loading branch information
viklund authored Jan 24, 2018
2 parents 144d33e + 5fbc638 commit 09d3a08
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
28 changes: 14 additions & 14 deletions tests/src/test/resources/cucumber/features/authentication.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,41 @@ Feature: Authentication
Given I am a user of LocalEGA instances:
| swe1 |

Scenario: U.0 User exists in Central EGA and uses correct private key for authentication for the correct instance
Scenario: A.0 User exists in Central EGA and uses correct private key for authentication for the correct instance
Given I have an account at Central EGA
And I want to work with instance "swe1"
And I have correct private key
When I connect to the LocalEGA inbox via SFTP using private key
Then I'm logged in successfully

Scenario: U.1 User doesn't exist in Central EGA, but tries to authenticate against LocalEGA inbox
Scenario: A.1 User doesn't exist in Central EGA, but tries to authenticate against LocalEGA inbox
Given I want to work with instance "swe1"
And I have correct private key
When I connect to the LocalEGA inbox via SFTP using private key
Then authentication fails

Scenario: U.2 User exists in Central EGA and uses correct private key for authentication, but the wrong instance
Scenario: A.2 User exists in Central EGA and uses correct private key for authentication, but the wrong instance
Given I have an account at Central EGA
And I want to work with instance "fin1"
And I have correct private key
When I connect to the LocalEGA inbox via SFTP using private key
Then authentication fails

Scenario: U.3 User exists in Central EGA, but uses incorrect private key for authentication
Scenario: A.3 User exists in Central EGA, but uses incorrect private key for authentication
Given I have an account at Central EGA
And I want to work with instance "swe1"
And I have incorrect private key
When I connect to the LocalEGA inbox via SFTP using private key
Then authentication fails

Scenario: U.4 User exists in Central EGA and tries to connect to LocalEGA, but the inbox was not created for him
Given I have an account at Central EGA
And I want to work with instance "swe1"
And I have correct private key
And I connect to the LocalEGA inbox via SFTP using private key
And I disconnect from the LocalEGA inbox
And I am disconnected from the LocalEGA inbox
And inbox is deleted for my user
When I connect to the LocalEGA inbox via SFTP using private key
Then authentication fails
Scenario: A.4 User exists in Central EGA and tries to connect to LocalEGA, but the inbox was not created for him
Given I have an account at Central EGA
And I want to work with instance "swe1"
And I have correct private key
And I connect to the LocalEGA inbox via SFTP using private key
And I disconnect from the LocalEGA inbox
And I am disconnected from the LocalEGA inbox
And inbox is deleted for my user
When I connect to the LocalEGA inbox via SFTP using private key
Then authentication fails

36 changes: 18 additions & 18 deletions tests/src/test/resources/cucumber/features/ingestion.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Ingestion
As a user I want to be able to ingest files from the LocalEGA inbox

Scenario: F.0 User ingests file encrypted with OpenPGP using a correct key
Scenario: I.0 User ingests file encrypted with OpenPGP using a correct key
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
Expand All @@ -14,7 +14,7 @@ Feature: Ingestion
When I ingest file from the LocalEGA inbox using correct encrypted checksum
Then the file is ingested successfully

Scenario: F.1 User ingests file encrypted not with OpenPGP
Scenario: I.1 User ingests file encrypted not with OpenPGP
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
Expand All @@ -27,7 +27,7 @@ Feature: Ingestion
When I ingest file from the LocalEGA inbox using correct encrypted checksum
Then ingestion failed

Scenario: F.2 User ingests file encrypted with OpenPGP using a wrong key
Scenario: I.2 User ingests file encrypted with OpenPGP using a wrong key
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
Expand All @@ -40,21 +40,21 @@ Feature: Ingestion
When I ingest file from the LocalEGA inbox using correct encrypted checksum
Then ingestion failed

Scenario: F.3 User ingests file encrypted with OpenPGP, but inbox is not created
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
And I want to work with instance "swe1"
And I have correct private key
And I connect to the LocalEGA inbox via SFTP using private key
And I have a file encrypted with OpenPGP using a "swe1" key
And I upload encrypted file to the LocalEGA inbox via SFTP
And I have CEGA MQ username and password
And inbox is deleted for my user
When I ingest file from the LocalEGA inbox using correct encrypted checksum
Then ingestion failed
Scenario: I.3 User ingests file encrypted with OpenPGP, but inbox is not created
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
And I want to work with instance "swe1"
And I have correct private key
And I connect to the LocalEGA inbox via SFTP using private key
And I have a file encrypted with OpenPGP using a "swe1" key
And I upload encrypted file to the LocalEGA inbox via SFTP
And I have CEGA MQ username and password
And inbox is deleted for my user
When I ingest file from the LocalEGA inbox using correct encrypted checksum
Then ingestion failed

Scenario: F.4 User ingests file encrypted with OpenPGP, but file was not found in the inbox
Scenario: I.4 User ingests file encrypted with OpenPGP, but file was not found in the inbox
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
Expand All @@ -68,7 +68,7 @@ Feature: Ingestion
When I ingest file from the LocalEGA inbox using correct encrypted checksum
Then ingestion failed

Scenario: F.5 User ingests file encrypted with OpenPGP using a correct key, but its checksum doesn't match with the supplied one
Scenario: I.5 User ingests file encrypted with OpenPGP using a correct key, but its checksum doesn't match with the supplied one
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Uploading
As a user I want to be able to upload files to the LocalEGA inbox

Scenario: F.0 Upload files to the LocalEGA inbox
Scenario: U.0 Upload files to the LocalEGA inbox
Given I am a user of LocalEGA instances:
| swe1 |
And I have an account at Central EGA
Expand Down

0 comments on commit 09d3a08

Please sign in to comment.