Skip to content

Commit c24952c

Browse files
committed
move to snake_case in acceptance tests to match
1 parent d9459e5 commit c24952c

15 files changed

+19
-19
lines changed

spec/acceptance/acceptance_tests.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,13 @@ def expired_unix_timestamp(seconds_ago = 600)
400400
expect_response(response, Net::HTTPSuccess)
401401
body = parse_json_response(response)
402402
expect(body["status"]).to eq("test_success")
403-
expect(body["handler"]).to eq("TestHandler")
403+
expect(body["handler"]).to eq("test_handler")
404404
expect(body["payload_received"]).to eq({})
405405
expect(body["env_received"]).to have_key("REQUEST_METHOD")
406406

407407
env = body["env_received"]
408408
expect(env["hooks.request_id"]).to be_a(String)
409-
expect(env["hooks.handler"]).to eq("TestHandler")
409+
expect(env["hooks.handler"]).to eq("test_handler")
410410
expect(env["hooks.endpoint_config"]).to be_a(Hash)
411411
expect(env["hooks.start_time"]).to be_a(String)
412412
expect(env["hooks.full_path"]).to eq("/webhooks/with_custom_auth_plugin")
@@ -445,7 +445,7 @@ def expired_unix_timestamp(seconds_ago = 600)
445445
expect(body).to have_key("request_id")
446446
expect(body["request_id"]).to be_a(String)
447447
expect(body).to have_key("handler")
448-
expect(body["handler"]).to eq("Boomtown")
448+
expect(body["handler"]).to eq("boomtown")
449449
end
450450
end
451451

@@ -454,11 +454,11 @@ def expired_unix_timestamp(seconds_ago = 600)
454454
payload = {}.to_json
455455
headers = {}
456456
response = make_request(:post, "/webhooks/does_not_exist", payload, headers)
457-
expect_response(response, Net::HTTPInternalServerError, /Handler plugin 'DoesNotExist' not found/)
457+
expect_response(response, Net::HTTPInternalServerError, /Handler plugin 'does_not_exist' not found/)
458458
body = parse_json_response(response)
459459
expect(body["error"]).to eq("server_error")
460460
expect(body["message"]).to match(
461-
/Handler plugin 'DoesNotExist' not found. Available handlers: DefaultHandler,.*/
461+
/Handler plugin 'does_not_exist' not found. Available handlers: DefaultHandler,.*/
462462
)
463463
end
464464
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
path: /boomtown
2-
handler: Boomtown
2+
handler: boomtown
33
method: post
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
path: /boomtown_with_error
2-
handler: BoomtownWithError
2+
handler: boomtown_with_error
33
method: post
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
path: /does_not_exist
2-
handler: DoesNotExist
2+
handler: does_not_exist

spec/acceptance/config/endpoints/github.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sample endpoint configuration for GitHub webhooks
22
path: /github
3-
handler: GithubHandler
3+
handler: github_handler
44

55
# GitHub uses HMAC SHA256 signature validation
66
auth:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
path: /hello
2-
handler: Hello
2+
handler: hello

spec/acceptance/config/endpoints/hmac_with_timestamp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
path: /hmac_with_timestamp
2-
handler: Hello
2+
handler: hello
33

44
auth:
55
type: hmac

spec/acceptance/config/endpoints/ip_filtering_example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
path: /ip_filtering_example
2-
handler: Hello
2+
handler: hello
33

44
auth:
55
type: ip_filtering_example

spec/acceptance/config/endpoints/okta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
path: /okta
2-
handler: OktaHandler
2+
handler: okta_handler
33

44
auth:
55
type: shared_secret
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
path: /okta_webhook_setup
2-
handler: OktaSetupHandler
2+
handler: okta_setup_handler
33
method: get

0 commit comments

Comments
 (0)