Add test for ServerExternalAddresses on peer token create

pull/15555/head
wenincode 2022-11-25 10:39:34 -07:00
parent ea23bac1fb
commit a4d1535116
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ Feature: dc / peers / create: Peer Create Token
--- ---
body: body:
PeerName: new-peer PeerName: new-peer
ServerExternalAddresses: []
--- ---
Then I see the text "an-encoded-token" in ".consul-peer-form-generate code" Then I see the text "an-encoded-token" in ".consul-peer-form-generate code"
When I click ".consul-peer-form-generate button[type=reset]" When I click ".consul-peer-form-generate button[type=reset]"
@ -33,11 +34,13 @@ Feature: dc / peers / create: Peer Create Token
Then I fill in with yaml Then I fill in with yaml
--- ---
Name: another-new-peer Name: another-new-peer
ServerExternalAddresses: "1.1.1.1:123,1.2.3.4:3202"
--- ---
When I click ".peer-create-modal .modal-dialog-footer button" When I click ".peer-create-modal .modal-dialog-footer button"
Then a POST request was made to "/v1/peering/token" from yaml Then a POST request was made to "/v1/peering/token" from yaml
--- ---
body: body:
PeerName: another-new-peer PeerName: another-new-peer
ServerExternalAddresses: ["1.1.1.1:123","1.2.3.4:3202"]
--- ---
Then I see the text "another-encoded-token" in ".consul-peer-form-generate code" Then I see the text "another-encoded-token" in ".consul-peer-form-generate code"