Commit db467ff
committed
fix(bulk-operations): use dynamic stack API key from testContext
Fix 401 Unauthorized errors in bulk operation tests by using the
dynamically created stack's API key from testSetup.testContext
instead of process.env.API_KEY.
The helper functions (doBulkOperation, doBulkOperationWithManagementToken,
makeManagementToken) were using process.env.API_KEY which wasn't set at
the time of execution, causing authentication failures on both dev9 and
dev11 environments.
Changes:
- Updated helper functions to use testSetup.testContext.stackApiKey
- Ensures correct API key is used for all bulk operations
- Fixes job status check failures and other bulk operation 401 errors
- Updated .talismanrc checksum for bulkOperation-test.js1 parent c1ac4c8 commit db467ff
2 files changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
545 | | - | |
| 544 | + | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | | - | |
| 549 | + | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
| 554 | + | |
| 555 | + | |
556 | 556 | | |
0 commit comments