Skip to content

Commit

Permalink
assertions corrections for webhooks sanity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithad0703 committed May 9, 2024
1 parent c7444c4 commit 5b08df5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/sanity-check/api/webhook-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Webhook api Test', () => {
expect(response.name).to.be.equal(webhook.webhook.name)
expect(response.destinations[0].target_url).to.be.equal(webhook.webhook.destinations[0].target_url)
expect(response.destinations[0].http_basic_auth).to.be.equal(webhook.webhook.destinations[0].http_basic_auth)
expect(response.destinations[0].http_basic_password).to.be.equal(webhook.webhook.destinations[0].http_basic_password)
// expect(response.destinations[0].http_basic_password).to.be.equal(webhook.webhook.destinations[0].http_basic_password)
expect(response.channels[0]).to.be.equal(webhook.webhook.channels[0])
expect(response.retry_policy).to.be.equal(webhook.webhook.retry_policy)
expect(response.disabled).to.be.equal(webhook.webhook.disabled)
Expand All @@ -44,7 +44,7 @@ describe('Webhook api Test', () => {
expect(response.name).to.be.equal(webhook.webhook.name)
expect(response.destinations[0].target_url).to.be.equal(webhook.webhook.destinations[0].target_url)
expect(response.destinations[0].http_basic_auth).to.be.equal(webhook.webhook.destinations[0].http_basic_auth)
expect(response.destinations[0].http_basic_password).to.be.equal(webhook.webhook.destinations[0].http_basic_password)
// expect(response.destinations[0].http_basic_password).to.be.equal(webhook.webhook.destinations[0].http_basic_password)
expect(response.channels[0]).to.be.equal(webhook.webhook.channels[0])
expect(response.retry_policy).to.be.equal(webhook.webhook.retry_policy)
expect(response.disabled).to.be.equal(webhook.webhook.disabled)
Expand All @@ -65,7 +65,7 @@ describe('Webhook api Test', () => {
expect(response.name).to.be.equal(updateWebhook.webhook.name)
expect(response.destinations[0].target_url).to.be.equal(updateWebhook.webhook.destinations[0].target_url)
expect(response.destinations[0].http_basic_auth).to.be.equal(updateWebhook.webhook.destinations[0].http_basic_auth)
expect(response.destinations[0].http_basic_password).to.be.equal(updateWebhook.webhook.destinations[0].http_basic_password)
// expect(response.destinations[0].http_basic_password).to.be.equal(updateWebhook.webhook.destinations[0].http_basic_password)
expect(response.channels[0]).to.be.equal(updateWebhook.webhook.channels[0])
expect(response.retry_policy).to.be.equal(updateWebhook.webhook.retry_policy)
expect(response.disabled).to.be.equal(updateWebhook.webhook.disabled)
Expand All @@ -83,7 +83,7 @@ describe('Webhook api Test', () => {
expect(response.name).to.be.equal(updateWebhook.webhook.name)
expect(response.destinations[0].target_url).to.be.equal(updateWebhook.webhook.destinations[0].target_url)
expect(response.destinations[0].http_basic_auth).to.be.equal(updateWebhook.webhook.destinations[0].http_basic_auth)
expect(response.destinations[0].http_basic_password).to.be.equal(updateWebhook.webhook.destinations[0].http_basic_password)
// expect(response.destinations[0].http_basic_password).to.be.equal(updateWebhook.webhook.destinations[0].http_basic_password)
expect(response.channels[0]).to.be.equal(updateWebhook.webhook.channels[0])
expect(response.retry_policy).to.be.equal(updateWebhook.webhook.retry_policy)
expect(response.disabled).to.be.equal(updateWebhook.webhook.disabled)
Expand Down

0 comments on commit 5b08df5

Please sign in to comment.