From 8f500089c0fa9d096672a142b682d82136cdd88e Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Thu, 27 Apr 2023 21:33:07 +0100 Subject: [PATCH 1/2] ci(fix): dont uri encode a provider with spaces when passing to pact-broker cli --- tests/PhpPact/Standalone/Broker/BrokerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/PhpPact/Standalone/Broker/BrokerTest.php b/tests/PhpPact/Standalone/Broker/BrokerTest.php index 6d30f0be..4d9f0b32 100644 --- a/tests/PhpPact/Standalone/Broker/BrokerTest.php +++ b/tests/PhpPact/Standalone/Broker/BrokerTest.php @@ -50,7 +50,7 @@ public function getArgumentsEmptyConfig(): void public function describeVersion(): void { $config = new BrokerConfig(); - $config->setPacticipant(\rawurlencode('Animal Profile Service')) + $config->setPacticipant("Animal Profile Service") ->setBrokerUri(new Uri('https://test.pactflow.io')) ->setBrokerUsername('dXfltyFMgNOFZAxr8io9wJ37iUpY42M') ->setBrokerPassword('O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1'); @@ -69,7 +69,7 @@ public function describeVersion(): void public function listLatestPactVersions(): void { $config = new BrokerConfig(); - $config->setPacticipant(\rawurlencode('Animal Profile Service')) + $config->setPacticipant("Animal Profile Service") ->setBrokerUri(new Uri('https://test.pactflow.io')) ->setBrokerUsername('dXfltyFMgNOFZAxr8io9wJ37iUpY42M') ->setBrokerPassword('O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1'); From 72b01b88232b71383d213ca7f28c577116b9d9bb Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Thu, 27 Apr 2023 21:36:40 +0100 Subject: [PATCH 2/2] ci(fix): escape quotes --- tests/PhpPact/Standalone/Broker/BrokerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/PhpPact/Standalone/Broker/BrokerTest.php b/tests/PhpPact/Standalone/Broker/BrokerTest.php index 4d9f0b32..ff45f225 100644 --- a/tests/PhpPact/Standalone/Broker/BrokerTest.php +++ b/tests/PhpPact/Standalone/Broker/BrokerTest.php @@ -50,7 +50,7 @@ public function getArgumentsEmptyConfig(): void public function describeVersion(): void { $config = new BrokerConfig(); - $config->setPacticipant("Animal Profile Service") + $config->setPacticipant("\"Animal Profile Service\"") ->setBrokerUri(new Uri('https://test.pactflow.io')) ->setBrokerUsername('dXfltyFMgNOFZAxr8io9wJ37iUpY42M') ->setBrokerPassword('O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1'); @@ -69,7 +69,7 @@ public function describeVersion(): void public function listLatestPactVersions(): void { $config = new BrokerConfig(); - $config->setPacticipant("Animal Profile Service") + $config->setPacticipant("\"Animal Profile Service\"") ->setBrokerUri(new Uri('https://test.pactflow.io')) ->setBrokerUsername('dXfltyFMgNOFZAxr8io9wJ37iUpY42M') ->setBrokerPassword('O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1');