Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Enable Network peering acc tests using AWS to run as part of CI #1793

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Dec 27, 2023

Description

Ticket: https://jira.mongodb.org/browse/CLOUDP-219839
This PR enables the network peering acc tests using AWS to run as part of our CI pipeline. It also updates the project ip access-list tests that were missed in #1784 to run in the CI pipeline

Link to any related issue(s):

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contribution guidelines
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals, I defined an isolated PR with a relevant title as it will be used in the auto-generated changelog.

Testing

I run the test locally

Running tool: /Users/andrea.angiolillo/.asdf/shims/go test -timeout 300000s -run ^TestAccNetworkRSNetworkPeering_basicAWS$ github.com/mongodb/terraform-provider-mongodbatlas/internal/service/networkpeering

ok github.com/mongodb/terraform-provider-mongodbatlas/internal/service/networkpeering 177.808s

I run the tests as part of the CI pipeline

@@ -83,38 +83,37 @@ func TestAccMigrationProjectDSProjectIPAccessList_SettingCIDRBlock(t *testing.T)
}

func TestAccMigrationProjectDSProjectIPAccessList_SettingAWSSecurityGroup(t *testing.T) {
acc.SkipTestExtCred(t)
projectName := acctest.RandomWithPrefix("test-acc-migration-project-aws")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Follow up changes of #1784 where I forgot to update the migration and data source tests

@andreaangiolillo andreaangiolillo marked this pull request as ready for review December 27, 2023 14:54
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner December 27, 2023 14:54
Copy link
Member

@AgustinBettati AgustinBettati left a comment

Choose a reason for hiding this comment

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

LGTM, non blocking comment

Copy link
Collaborator

@maastha maastha left a comment

Choose a reason for hiding this comment

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

LGTM

@andreaangiolillo andreaangiolillo merged commit 5aaed33 into master Dec 28, 2023
@andreaangiolillo andreaangiolillo deleted the CLOUDP-219839 branch December 28, 2023 09:59
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.

3 participants