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

OADP-2747: Re-enable DataMover E2E tests #1170

Merged

Conversation

mateusoliveira43
Copy link
Contributor

Update DataMover E2E tests to run against Velero builtin DataMover.

How to test

Read Testing documentation and run make test-e2e. Check if DataMover was invoked (DataUploads and DataDownloads instances were created).

Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 2, 2023

@mateusoliveira43: This pull request references OADP-2747 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but it targets "OADP 1.3.0" instead.

In response to this:

Update DataMover E2E tests to run against Velero builtin DataMover.

How to test

Read Testing documentation and run make test-e2e. Check if DataMover was invoked (DataUploads and DataDownloads instances were created).

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 2, 2023
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
test-e2e-cleanup: login-required
$(OC_CLI) delete volumesnapshotcontent --all
$(OC_CLI) delete volumesnapshotclass oadp-example-snapclass --ignore-not-found=true
$(OC_CLI) delete backup -n $(OADP_TEST_NAMESPACE) --all
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I delete backup, it deletes dataupload. Should I change order or just add the ones that delete another entities here?

Copy link
Member

Choose a reason for hiding this comment

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

I would add --wait and move all data that velero typically cleans up on backup deletion last.

@@ -156,11 +85,8 @@ var _ = Describe("Must-gather backup restore tests", func() {
}

DescribeTable("backup, restore applications, and must gather",
// TODO this function has a lot of duplications with tests/e2e/backup_restore_suite_test.go
Copy link
Contributor Author

Choose a reason for hiding this comment

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

what is the goal of this test? It seems a duplication of bacjup/restore test

Copy link
Member

Choose a reason for hiding this comment

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

This test is a duplicate of backup/restore test but only one case is included with the addition of running must gather after the test to check expected dirs and files from must-gather exists.

if len(brCase.MustGatherFiles) > 0 && clusterDir != "" {
				for _, file := range brCase.MustGatherFiles {
					_, err := os.Stat(clusterDir + "/" + file)
					Expect(err).ToNot(HaveOccurred())
				}
			}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we run it as separate test after that specific test?

@openshift-merge-robot
Copy link

@mateusoliveira43: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/4.13-operator-e2e-aws 7989972 link true /test 4.13-operator-e2e-aws
ci/prow/4.11-operator-unit-test 7989972 link true /test 4.11-operator-unit-test
ci/prow/4.10-operator-e2e-aws 7989972 link true /test 4.10-operator-e2e-aws
ci/prow/4.11-operator-e2e-azure 7989972 link true /test 4.11-operator-e2e-azure
ci/prow/4.13-operator-e2e-azure 7989972 link true /test 4.13-operator-e2e-azure
ci/prow/4.12-operator-e2e-azure 7989972 link true /test 4.12-operator-e2e-azure
ci/prow/4.10-operator-e2e-azure 7989972 link true /test 4.10-operator-e2e-azure
ci/prow/4.13-operator-unit-test 7989972 link true /test 4.13-operator-unit-test
ci/prow/4.10-operator-unit-test 7989972 link true /test 4.10-operator-unit-test
ci/prow/4.12-operator-unit-test 7989972 link true /test 4.12-operator-unit-test
ci/prow/4.11-operator-e2e-aws 7989972 link true /test 4.11-operator-e2e-aws
ci/prow/4.12-operator-e2e-aws 7989972 link true /test 4.12-operator-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
@kaovilai
Copy link
Member

kaovilai commented Oct 3, 2023

/override ci/prow/4.10-operator-e2e-aws

@openshift-ci
Copy link

openshift-ci bot commented Oct 3, 2023

@kaovilai: Overrode contexts on behalf of kaovilai: ci/prow/4.10-operator-e2e-aws

In response to this:

/override ci/prow/4.10-operator-e2e-aws

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@weshayutin
Copy link
Contributor

+1 from me.. will review more soon

@mpryc
Copy link
Contributor

mpryc commented Oct 4, 2023

/lgtm Thanks @mateusoliveira43

@@ -19,7 +19,8 @@ var _ = Describe("Subscription Config Suite Test", func() {
err := dpaCR.Build(CSI)
Expect(err).NotTo(HaveOccurred())
//also test restic
dpaCR.CustomResource.Spec.Configuration.Restic.Enable = pointer.BoolPtr(true)
dpaCR.CustomResource.Spec.Configuration.NodeAgent.Enable = pointer.BoolPtr(true)
dpaCR.CustomResource.Spec.Configuration.NodeAgent.UploaderType = "restic"
Copy link
Member

Choose a reason for hiding this comment

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

I'd add a case here for node-agent uploaderType kopia for another case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can do, but I think it is https://issues.redhat.com/browse/OADP-2746 responsibility (here I made the change because our DPA validation does not allow new and old syntax together)

Copy link
Member

Choose a reason for hiding this comment

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

cool.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note that uploaderType is irrelevant for CSI snapshot/datamover cases. The config value is ignored there. It's only ever used for fsbackup volumes.

weshayutin
weshayutin previously approved these changes Oct 4, 2023
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
Copy link
Member

@kaovilai kaovilai left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 4, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 4, 2023

@mateusoliveira43: This pull request references OADP-2747 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but it targets "OADP 1.3.0" instead.

In response to this:

Update DataMover E2E tests to run against Velero builtin DataMover.

How to test

Read Testing documentation and run make test-e2e. Check if DataMover was invoked (DataUploads and DataDownloads instances were created).

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 4, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 4, 2023

@mateusoliveira43: This pull request references OADP-2747 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but it targets "OADP 1.3.0" instead.

In response to this:

Update DataMover E2E tests to run against Velero builtin DataMover.

How to test

Read Testing documentation and run make test-e2e. Check if DataMover was invoked (DataUploads and DataDownloads instances were created).

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci
Copy link

openshift-ci bot commented Oct 4, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaovilai, mateusoliveira43, mrnold, shubham-pampattiwar, weshayutin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [kaovilai,shubham-pampattiwar]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 78671fa and 2 for PR HEAD 13b0e3a in total

@openshift-ci
Copy link

openshift-ci bot commented Oct 5, 2023

@mateusoliveira43: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-ci openshift-ci bot merged commit 060214e into openshift:master Oct 5, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants