From a4d1535116ba5a11dd5a41a5d365beb967c9f2e7 Mon Sep 17 00:00:00 2001 From: wenincode Date: Fri, 25 Nov 2022 10:39:34 -0700 Subject: [PATCH] Add test for ServerExternalAddresses on peer token create --- ui/packages/consul-ui/tests/acceptance/dc/peers/create.feature | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/packages/consul-ui/tests/acceptance/dc/peers/create.feature b/ui/packages/consul-ui/tests/acceptance/dc/peers/create.feature index 4cfe29db70..2713613904 100644 --- a/ui/packages/consul-ui/tests/acceptance/dc/peers/create.feature +++ b/ui/packages/consul-ui/tests/acceptance/dc/peers/create.feature @@ -22,6 +22,7 @@ Feature: dc / peers / create: Peer Create Token --- body: PeerName: new-peer + ServerExternalAddresses: [] --- Then I see the text "an-encoded-token" in ".consul-peer-form-generate code" 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 --- 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" Then a POST request was made to "/v1/peering/token" from yaml --- body: 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"