Skip to content

azure-messaging-eventhubs.AdminTest.CreateDeleteNamespaceTest_LIVEONLY_ test fails with 401 Reason: Unauthorized #5820

@ahsonkhan

Description

@ahsonkhan

See example run of the cpp - eventhubs pipeline from main:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3972321&view=results

From: #5818

On: ValidateLive Ubu20_x64_with_unit_test
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3972090&view=logs&j=e732a657-4392-5bc3-3289-b34fe17fd560&t=28d3e977-de2c-5feb-854f-4d9592e2dd8b&l=215263

azure-messaging-eventhubs.AdminTest.CreateDeleteNamespaceTest_LIVEONLY_.txt

On: ValidateLive Win2019_x64_with_unit_samples_libcurl
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3972090&view=logs&j=269b1413-8969-57ed-5e11-d4af2355ac7a&t=443ed230-57cd-562b-7d9e-b938254f1e62

2024-07-18T03:12:45.1042094Z test 20
2024-07-18T03:12:45.1042972Z       Start  20: azure-messaging-eventhubs.AdminTest.CreateDeleteNamespaceTest_LIVEONLY_
2024-07-18T03:12:45.1043316Z 
2024-07-18T03:12:45.1044369Z 20: Test command: D:\a\_work\1\s\build\sdk\eventhubs\azure-messaging-eventhubs\test\ut\Release\azure-messaging-eventhubs-test.exe "--gtest_filter=AdminTest.CreateDeleteNamespaceTest_LIVEONLY_" "--gtest_also_run_disabled_tests"
2024-07-18T03:12:45.1045551Z 20: Working Directory: D:/a/_work/1/s/build/sdk/eventhubs/azure-messaging-eventhubs/test/ut
2024-07-18T03:12:45.1046435Z 20: Test timeout computed to be: 10000000
2024-07-18T03:12:45.1153642Z 20: Running main() from D:\a\_work\1\s\build\_deps\googletest-src\googletest\src\gtest_main.cc
2024-07-18T03:12:45.1154895Z 20: Note: Google Test filter = AdminTest.CreateDeleteNamespaceTest_LIVEONLY_
2024-07-18T03:12:45.1155705Z 20: [==========] Running 1 test from 1 test suite.
2024-07-18T03:12:45.1156247Z 20: [----------] Global test environment set-up.
2024-07-18T03:12:45.1156732Z 20: [----------] 1 test from AdminTest
2024-07-18T03:12:45.1157229Z 20: [ RUN      ] AdminTest.CreateDeleteNamespaceTest_LIVEONLY_
2024-07-18T03:12:45.1158260Z 20: [2024-07-18T03:12:45.1126117Z T: 7676] INFO  : HTTP Request : PUT https://management.azure.com/subscriptions/***/resourceGroups/rg-eventhubs-t30d42de59dfe4f24/providers/Microsoft.EventHub/namespaces/ehCreate51328e8a-ffc1-4736-9337-d45a944cabd2?api-version=2022-10-01-preview
2024-07-18T03:12:45.1159401Z 20: accept : application/json
2024-07-18T03:12:45.1160100Z 20: authorization : REDACTED
2024-07-18T03:12:45.1160739Z 20: content-type : application/json
2024-07-18T03:12:45.1161522Z 20: user-agent : eventhubs.test azsdk-cpp-eventhubs.test/1.0.0 (Windows Server 2019 Datacenter 6.3 17763 17763.1.amd64fre.rs5_release.180914-1434)
2024-07-18T03:12:45.1162337Z 20: x-ms-client-request-id : ed001054-5f1e-4841-b52a-a61ffd408561
2024-07-18T03:12:45.1163715Z 20: [2024-07-18T03:12:45.1126386Z T: 7676] DEBUG : [CURL Transport Adapter]: Creating a new session.
2024-07-18T03:12:45.1165455Z 20: [2024-07-18T03:12:45.1126591Z T: 7676] DEBUG : [CURL Transport Adapter]: Spawn new connection.
2024-07-18T03:12:45.1247050Z 20: [2024-07-18T03:12:45.1244526Z T: 7676] DEBUG : [CURL Transport Adapter]: No Host in request headers. Adding it
2024-07-18T03:12:45.1248334Z 20: [2024-07-18T03:12:45.1245028Z T: 7676] DEBUG : [CURL Transport Adapter]: No content-length in headers. Adding it
2024-07-18T03:12:45.1249034Z 20: [2024-07-18T03:12:45.1245246Z T: 7676] DEBUG : [CURL Transport Adapter]: Using 100-continue for PUT request
2024-07-18T03:12:45.1249638Z 20: [2024-07-18T03:12:45.1245393Z T: 7676] DEBUG : [CURL Transport Adapter]: Send request without payload
2024-07-18T03:12:45.1250245Z 20: [2024-07-18T03:12:45.1246273Z T: 7676] DEBUG : [CURL Transport Adapter]: Parse server response
2024-07-18T03:12:45.1262560Z 20: [2024-07-18T03:12:45.1260228Z T: 7676] DEBUG : [CURL Transport Adapter]: Check server response before upload starts
2024-07-18T03:12:45.1263373Z 20: [2024-07-18T03:12:45.1260534Z T: 7676] DEBUG : [CURL Transport Adapter]: Upload payload
2024-07-18T03:12:45.1264020Z 20: [2024-07-18T03:12:45.1261322Z T: 7676] DEBUG : [CURL Transport Adapter]: Upload completed. Parse server response
2024-07-18T03:12:45.1363712Z 20: [2024-07-18T03:12:45.1361764Z T: 7676] DEBUG : [CURL Transport Adapter]: Request completed. Moving response out of session and session to response.
2024-07-18T03:12:45.1366498Z 20: [2024-07-18T03:12:45.1364433Z T: 7676] INFO  : HTTP/1.1 Response (23ms) : 401 Unauthorized
2024-07-18T03:12:45.1367681Z 20: cache-control : no-cache
2024-07-18T03:12:45.1369941Z 20: content-length : 88
2024-07-18T03:12:45.1371095Z 20: content-type : application/json; charset=utf-8
2024-07-18T03:12:45.1371877Z 20: date : Thu, 18 Jul 2024 03:12:44 GMT
2024-07-18T03:12:45.1372704Z 20: expires : -1
2024-07-18T03:12:45.1373555Z 20: pragma : no-cache
2024-07-18T03:12:45.1374527Z 20: strict-transport-security : REDACTED
2024-07-18T03:12:45.1375395Z 20: www-authenticate : REDACTED
2024-07-18T03:12:45.1376252Z 20: x-cache : REDACTED
2024-07-18T03:12:45.1377079Z 20: x-content-type-options : REDACTED
2024-07-18T03:12:45.1377925Z 20: x-ms-correlation-request-id : REDACTED
2024-07-18T03:12:45.1378758Z 20: x-ms-failure-cause : REDACTED
2024-07-18T03:12:45.1379641Z 20: x-ms-request-id : d5319b76-cc5e-47a1-8558-8dabcab459f3
2024-07-18T03:12:45.1380519Z 20: x-ms-routing-request-id : REDACTED
2024-07-18T03:12:45.1381608Z 20: x-msedge-ref : REDACTED
2024-07-18T03:12:45.1382348Z 20: [2024-07-18T03:12:45.1364813Z T: 7676] INFO  : HTTP status code 401 won't be retried.
2024-07-18T03:12:45.1383224Z 20: unknown file: error: C++ exception with description "Received an HTTP unsuccessful status code: 401 Reason: Unauthorized" thrown in the test body.
2024-07-18T03:12:45.1384031Z 20: [  FAILED  ] AdminTest.CreateDeleteNamespaceTest_LIVEONLY_ (24 ms)
2024-07-18T03:12:45.1384747Z 20: [----------] 1 test from AdminTest (24 ms total)
2024-07-18T03:12:45.1385359Z 20: 
2024-07-18T03:12:45.1385962Z 20: [----------] Global test environment tear-down
2024-07-18T03:12:45.1386627Z 20: [==========] 1 test from 1 test suite ran. (24 ms total)
2024-07-18T03:12:45.1387263Z 20: [  PASSED  ] 0 tests.
2024-07-18T03:12:45.1387879Z 20: [  FAILED  ] 1 test, listed below:
2024-07-18T03:12:45.1388559Z 20: [  FAILED  ] AdminTest.CreateDeleteNamespaceTest_LIVEONLY_
2024-07-18T03:12:45.1389219Z 20: 
2024-07-18T03:12:45.1389993Z 20:  1 FAILED TEST
2024-07-18T03:12:45.1391136Z 12/97 Test  #20: azure-messaging-eventhubs.AdminTest.CreateDeleteNamespaceTest_LIVEONLY_ ...........................................................................***Failed    0.03 sec

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions