Skip to content

refactor: Updates test configuration to prevent OPERATION_INVALID_MEMBER_REPLICATION_LAG #3225

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,11 @@ func TestAccClusterAdvancedCluster_unpausedToPaused(t *testing.T) {
Check: checkSingleProviderPaused(true, clusterName, false),
},
{
Config: configSingleProviderPaused(t, true, projectID, clusterName, true, anotherInstanceSize), // allows pausing and other change in same apply
Config: configSingleProviderPaused(t, true, projectID, clusterName, true, instanceSize), // only pause to avoid `OPERATION_INVALID_MEMBER_REPLICATION_LAG`, more info in HELP-72502
Check: checkSingleProviderPaused(true, clusterName, true),
},
{
Config: configSingleProviderPaused(t, true, projectID, clusterName, true, instanceSize),
Config: configSingleProviderPaused(t, true, projectID, clusterName, true, anotherInstanceSize),
ExpectError: regexp.MustCompile("CANNOT_UPDATE_PAUSED_CLUSTER"),
},
acc.TestStepImportCluster(resourceName),
Expand Down