Skip to content

Conversation

@jeroenvervaeke
Copy link
Member

Proposed changes

The logs indicate that the same key is deleted twice; the second time, it fails because it's already deleted.

Logs

[2024/10/30 22:05:20.169] cleanup_test.go:87: Deleting key with ID: 67226be6c43fdd4259ed21a6
[2024/10/30 22:05:20.169] cleanup_test.go:87: Deleting key with ID: 67226be6c43fdd4259ed21a6
[2024/10/30 22:05:20.252] Error: https://cloud-dev.mongodb.com/api/atlas/v2/orgs/5efda682a3f2ed2e7dd6cde4/apiKeys/67226be6c43fdd4259ed21a6 DELETE: HTTP 400 Bad Request (Error code: "API_KEY_NOT_FOUND") Detail: No API key with ID 67226be6c43fdd4259ed21a6 exists. Reason: Bad Request. Params: [67226be6c43fdd4259ed21a6], BadRequestDetail:

I have changed the code to create a unique list of keys and then delete them.

Jira ticket: CLOUDP-281885

@jeroenvervaeke jeroenvervaeke requested a review from a team as a code owner October 31, 2024 11:05
@jeroenvervaeke jeroenvervaeke merged commit c072ca8 into master Oct 31, 2024
20 of 22 checks passed
@jeroenvervaeke jeroenvervaeke deleted the CLOUDP-281885 branch October 31, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants