Skip to content

Commit

Permalink
refactor (Voice/E2E): PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Oct 2, 2024
1 parent 456e1a9 commit 80f42fb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class WebhooksEventsSteps {

static final String WEBHOOKS_PATH_PREFIX = "/webhooks/voice";
static final String WEBHOOKS_URL = Config.VOICE_HOST_NAME + WEBHOOKS_PATH_PREFIX + "/";
static final String WEBHOOKS_URL = Config.VOICE_HOST_NAME + WEBHOOKS_PATH_PREFIX;

WebHooksService service;

Expand Down Expand Up @@ -99,26 +99,26 @@ public void serviceAvailable() {
public void sendPieReturn() throws IOException {
pieReturn =
WebhooksHelper.callURL(
new URL(WEBHOOKS_URL + "pie-return"), service::unserializeWebhooksEvent);
new URL(WEBHOOKS_URL + "/pie-return"), service::unserializeWebhooksEvent);
}

@When("^I send a request to trigger a \"PIE\" event with a \"sequence\" type$")
public void sendPieSequence() throws IOException {
pieSequence =
WebhooksHelper.callURL(
new URL(WEBHOOKS_URL + "pie-sequence"), service::unserializeWebhooksEvent);
new URL(WEBHOOKS_URL + "/pie-sequence"), service::unserializeWebhooksEvent);
}

@When("^I send a request to trigger a \"DICE\" event$")
public void sendDICEEvent() throws IOException {
diceEvent =
WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "dice"), service::unserializeWebhooksEvent);
WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "/dice"), service::unserializeWebhooksEvent);
}

@When("^I send a request to trigger a \"ACE\" event$")
public void sendACEEvent() throws IOException {
aceEvent =
WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "ace"), service::unserializeWebhooksEvent);
WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "/ace"), service::unserializeWebhooksEvent);
}

@Then("the header of the {string} event with a {string} type contains a valid authorization")
Expand Down

0 comments on commit 80f42fb

Please sign in to comment.