Skip to content

Conversation

Rohit-PX
Copy link
Contributor

What type of PR is this?
integration-test

What this PR does / why we need it:

Does this PR change a user-facing CRD or CLI?:
no

Is a release note needed?:
no

Does this change need to be cherry-picked to a release branch?:
no

@cnbu-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

projectIDMappings string,
namespaceLabels map[string]string,
) ([]*scheduler.Context, *scheduler.Context) {
log.InfoD("Schedule mysql app")
Copy link
Contributor

Choose a reason for hiding this comment

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

It will not always be mysql app. We should be printing the appKey instead


err = schedulerDriver.WaitForRunning(ctxs[0], defaultWaitTimeout, defaultWaitInterval)
require.NoError(t, err, "Error waiting for app to get to running state")
log.InfoD("Mysql app validated")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

}

func deploymentMigrationTest(t *testing.T) {
dash.TestCaseBegin("Deployment migration test", "Validating Async DR with Deployment App", "", nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to pass testrailID as the third param here right?

err = scheduleUnidirectionalClusterPair(remotePairName, clusterPairNamespace, projectIDMappings, defaultBackupLocation, defaultSecretName, true, pairReverse)
require.NoError(t, err, "failed to set unidirectional cluster pair: %v", err)
} else {
log.InfoD("Scheduling cluster pair using storkctl generate")
Copy link
Contributor

Choose a reason for hiding this comment

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

We should be using storkctl create and not generate. Isn't it?

}

func equalPodSpreadTest(t *testing.T) {
dash.TestCaseBegin("Stork scheduler equal pod spread test", "Verify equal pod spread is achieved using stork for an app", "", nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

same concern about first param as above. Similar concern everywhere else.

}

func preferRemoteNodeFalseHyperconvergenceTest(t *testing.T) {
dash.TestCaseBegin("Stork scheduler prefer remote node antihyperconvergence test", "validate antihyperconvergence with preferRemoteNodeOnly flag", "", nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we be passing the exact name of the test as the first param instead of a brief description?

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