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

Make end-to-end tests work with a local porch-server #57

Merged
merged 23 commits into from
Jun 5, 2024

Conversation

kispaljr
Copy link
Collaborator

@kispaljr kispaljr commented May 25, 2024

Right now some end-to-end test cases fail if the porch-server is running locally and not in-cluster. (The same tests are working properly, if all components are running in-cluster)

This PR intends to fix this problem.
Fixes nephio-project/nephio#743

End-to-end test can be run with the following commands:

cd <porch-repo>
./docs/tutorials/porch-development-environment/bin/setup.sh
E2E=1 go test -v ./test/e2e
E2E=1 go test -v ./test/e2e/cli/

The above commands should all succeed with the code in this PR.

This PR is based on the loosely related #44

Copy link
Member

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

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

On a read through this looks good. I'll download the PR and try it in my environment.

@kispaljr
Copy link
Collaborator Author

NOTE: I've added instructions to run the end-to-end tests to the description of the PR.

kispaljr added 18 commits May 31, 2024 17:42
- start with clean etcd for local tests
- make some problematic test cases more verbose (and faster)
- handle the new testing scenario, when everything is running in-cluster, but the porch-server (that is running locally)
… Deployment resource, as opposed to all resources in the 9-controllers.yaml file
.vscode/launch.json Outdated Show resolved Hide resolved
test/e2e/e2e_test.go Outdated Show resolved Hide resolved
test/e2e/e2e_test.go Outdated Show resolved Hide resolved
test/e2e/suite.go Outdated Show resolved Hide resolved
@nagygergo
Copy link
Contributor

/approve

@kispaljr
Copy link
Collaborator Author

kispaljr commented Jun 4, 2024

/retest

@kispaljr
Copy link
Collaborator Author

kispaljr commented Jun 4, 2024

/test presubmit-nephio-go-test

@liamfallon
Copy link
Member

/approve
/lgtm

Copy link
Contributor

nephio-prow bot commented Jun 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kispaljr, liamfallon, nagygergo

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:

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

@nephio-prow nephio-prow bot added the approved label Jun 5, 2024
@nephio-prow nephio-prow bot merged commit f10eaee into nephio-project:main Jun 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Porch end-to-end tests fail for the development environment that is described in the documentation
3 participants