-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add backup e2e scenarios (#242)
Signed-off-by: Allain Magyar <[email protected]>
- Loading branch information
1 parent
a22d3dd
commit 447869c
Showing
5 changed files
with
212 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@backup | ||
Feature: Backup | ||
The Edge Agent should be able to create and restore a backup | ||
|
||
Scenario: Create and restore a backup | ||
Given Edge Agent has created a backup | ||
Then a new SDK can be restored from Edge Agent | ||
|
||
Scenario: Agent without a seed should not be able to restore the backup | ||
Given Edge Agent has created a backup | ||
Then a new SDK cannot be restored from Edge Agent with wrong seed | ||
|
||
Scenario: Restored backup should be functional | ||
Given Cloud Agent is connected to Edge Agent | ||
And Edge Agent has '1' jwt credentials issued by Cloud Agent | ||
And Edge Agent creates '5' peer DIDs | ||
And Edge Agent creates '3' prism DIDs | ||
And Edge Agent has created a backup | ||
Then a new Restored Agent is restored from Edge Agent | ||
And Restored Agent should have the expected values from Edge Agent | ||
And Edge Agent is dismissed | ||
Given Cloud Agent is connected to Restored Agent | ||
And Cloud Agent asks for present-proof | ||
And Restored Agent sends the present-proof | ||
Then Cloud Agent should see the present-proof is verified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
447869c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JUnit