Skip to content

chore: Fix stream-connection tests#1498

Merged
manupedrozo merged 3 commits intomasterfrom
remove-db-version-from-stream-tests
Dec 3, 2025
Merged

chore: Fix stream-connection tests#1498
manupedrozo merged 3 commits intomasterfrom
remove-db-version-from-stream-tests

Conversation

@manupedrozo
Copy link
Copy Markdown
Collaborator

@manupedrozo manupedrozo commented Dec 3, 2025

Fixing stream-connection tests

  • Remove mdbVersion flag from cluster creation in the stream-connection test setup which is causing "ATLAS_CLUSTER_VERSION_DEPRECATED" errors (example).

  • Change the DbRoleToExecute.Role in the update input to a valid one (readWrite -> readWriteAnyDatabase).

  • After the test: delete the stream instance before deleting the project to avoid "CANNOT_CLOSE_GROUP_ACTIVE_STREAMS_RESOURCE" errors (example).

Link to any related issue(s):

Type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • This change requires a documentation update
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Manual QA performed:

  • cfn invoke for each of CRUDL/cfn test
  • Updated resource in example
  • Published to AWS private registry
  • Used the template in example to create and update a stack in AWS
  • Deleted stack to ensure resources are deleted
  • Created multiple resources in same stack
  • Validated in Atlas UI
  • Included screenshots

Required Checklist:

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • For CFN Resources: I have released by changes in the private registry and proved by change
    works in Atlas

Further comments

@manupedrozo manupedrozo changed the title chore: Remove mdbVersion flag from tests chore: Fix stream-connection tests Dec 3, 2025
@manupedrozo manupedrozo marked this pull request as ready for review December 3, 2025 17:56
@manupedrozo manupedrozo requested a review from a team as a code owner December 3, 2025 17:56
echo -e "Created StreamInstance \"${instanceName}\""

atlas clusters create "${clusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --mdbVersion 6.0 --diskSizeGB 10 --output=json
atlas clusters create "${clusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --diskSizeGB 10 --output=json
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also check if any other scripts have this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple more have mdbVersion but none with 6.0. Should look into removing those as well.

@manupedrozo manupedrozo added this pull request to the merge queue Dec 3, 2025
Merged via the queue into master with commit 373163f Dec 3, 2025
44 checks passed
@manupedrozo manupedrozo deleted the remove-db-version-from-stream-tests branch December 3, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants