Skip to content

Commit 55fbecc

Browse files
committed
tests: Update Snapshots
1 parent e9fbe6c commit 55fbecc

3 files changed

Lines changed: 5 additions & 5 deletions

tests/Integrations/CodeIgniter/V3_1/CommonScenariosTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testScenarioGetWithException()
5252
GetSpec::create(
5353
'A GET request with an exception',
5454
'/error?key=value&pwd=should_redact'
55-
)->expectStatusCode(500)
55+
)
5656
);
5757
});
5858
}
@@ -64,7 +64,7 @@ public function testScenarioGetToMissingRoute()
6464
GetSpec::create(
6565
'A GET request to a missing route',
6666
'/does_not_exist?key=value&pwd=should_redact'
67-
)->expectStatusCode(404)
67+
)
6868
);
6969
});
7070
}

tests/snapshots/tests.integrations.code_igniter.v3_1.common_scenarios_test.test_scenario_get_to_missing_route.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"component": "codeigniter",
1414
"http.method": "GET",
1515
"http.route": "does_not_exist",
16-
"http.status_code": "200",
16+
"http.status_code": "404",
1717
"http.url": "http://localhost:9999/does_not_exist?key=value&<redacted>",
1818
"runtime-id": "26ab24e6-051f-4e1f-9adf-3d609bef6946",
1919
"span.kind": "server"

tests/snapshots/tests.integrations.code_igniter.v3_1.common_scenarios_test.test_scenario_get_with_exception.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"_dd.p.tid": "660bca3200000000",
1414
"app.endpoint": "Error_::index",
1515
"component": "codeigniter",
16-
"error.message": "Uncaught Exception: datadog in /home/circleci/datadog/tests/Frameworks/CodeIgniter/Version_3_1/application/controllers/Error_.php:5",
16+
"error.message": "Uncaught Exception (500): datadog in /home/circleci/datadog/tests/Frameworks/CodeIgniter/Version_3_1/application/controllers/Error_.php:5",
1717
"error.stack": "#0 /home/circleci/datadog/tests/Frameworks/CodeIgniter/Version_3_1/system/core/CodeIgniter.php(533): Error_->index()\n#1 /home/circleci/datadog/tests/Frameworks/CodeIgniter/Version_3_1/index.php(315): require_once()\n#2 {main}",
1818
"error.type": "Exception",
1919
"http.method": "GET",
2020
"http.route": "error",
21-
"http.status_code": "200",
21+
"http.status_code": "500",
2222
"http.url": "http://localhost:9999/error?key=value&<redacted>",
2323
"runtime-id": "26ab24e6-051f-4e1f-9adf-3d609bef6946",
2424
"span.kind": "server"

0 commit comments

Comments
 (0)