-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
214 additions
and
56 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Feature: ERC725 Profile features | ||
Background: Setup local blockchain and bootstraps | ||
Given the blockchain is set up | ||
And 1 bootstrap is running | ||
|
||
Scenario: Check that second gs1 import does not mess up first import's hash value | ||
Given I setup 4 nodes | ||
And I start the nodes | ||
And I use 1st node as DC | ||
And DC imports "importers/xml_examples/Basic/01_Green_to_pink_shipment.xml" as GS1 | ||
Given DC initiates the replication | ||
And I wait for 10 seconds | ||
And I remember previous import's fingerprint value | ||
And DC imports "importers/xml_examples/Basic/02_Green_to_pink_shipment.xml" as GS1 | ||
And DC initiates the replication | ||
And I wait for 10 seconds | ||
Then checking again first import's root hash should point to remembered value | ||
|
||
Scenario: Smoke check data-layer basic endpoints | ||
Given I setup 2 nodes | ||
And I start the nodes | ||
And I use 1st node as DC | ||
And DC imports "importers/xml_examples/Basic/01_Green_to_pink_shipment.xml" as GS1 | ||
Given I query DC node locally with path: "identifiers.id", value: "urn:epc:id:sgtin:Batch_1" and opcode: "EQ" | ||
Then response should contain only last imported data set id | ||
Given I query DC node locally for last imported data set id | ||
Then response hash should match last imported data set id | ||
|
||
Scenario: Basic dataset integrity with its xml | ||
Given I setup 1 node | ||
And I start the node | ||
And I use 1st node as DC | ||
And DC imports "importers/xml_examples/Basic/01_Green_to_pink_shipment.xml" as GS1 | ||
Then imported data is compliant with 01_Green_to_pink_shipment.xml file | ||
|
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
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