Skip to content

Commit

Permalink
Merge pull request #1385 from bstasyszyn/1383
Browse files Browse the repository at this point in the history
fix: Create_dids_to_file BDD test scenario
  • Loading branch information
bstasyszyn authored Jun 27, 2022
2 parents 898bbbb + 91d61cc commit 93674f8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/bdd/features/create-dids-to-file.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@
#

Feature:
Background: Setup
Given domain "orb.domain1.com" is mapped to "localhost:48326"
And domain "orb.domain2.com" is mapped to "localhost:48426"

And the authorization bearer token for "POST" requests to path "/log" is set to "ADMIN_TOKEN"

# set up logs for domains
When an HTTP POST is sent to "https://orb.domain1.com/log" with content "http://orb.vct:8077/maple2020" of type "text/plain"

@create_dids_to_file
Scenario: Create DIDs and store them in a file. (Uses environment variables.)
Given the authorization bearer token for "GET" requests to path "/sidetree/v1/identifiers" is set to "${ORB_BACKUP_READ_TOKEN}"
Expand All @@ -39,6 +30,9 @@ Feature:
And the authorization bearer token for "POST" requests to path "/sidetree/v1/operations" is set to "ADMIN_TOKEN"
And the authorization bearer token for "POST" requests to path "/services/orb/outbox" is set to "ADMIN_TOKEN"
And the authorization bearer token for "POST" requests to path "/services/orb/acceptlist" is set to "ADMIN_TOKEN"
And the authorization bearer token for "POST" requests to path "/log" is set to "ADMIN_TOKEN"

Then an HTTP POST is sent to "https://orb.domain1.com/log" with content "http://orb.vct:8077/maple2020" of type "text/plain"

# domain2 adds domain1 to its 'invite-witness' accept lists.
Given variable "domain2AcceptList" is assigned the JSON value '[{"type":"invite-witness","add":["${domain1IRI}"]}]'
Expand Down

0 comments on commit 93674f8

Please sign in to comment.