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

add files for upgrade tests #5553

Merged
merged 7 commits into from
May 16, 2024
Merged

add files for upgrade tests #5553

merged 7 commits into from
May 16, 2024

Conversation

vepatel
Copy link
Contributor

@vepatel vepatel commented May 15, 2024

Proposed changes

This PR adds files and makes changes to create resources for upgrade testing.

Usage:
Create: make upgrade-resources PYTEST_ARGS="create"
Delete: make upgrade-resources PYTEST_ARGS="delete"

Output:

~/nginx/kubernetes-ingress/tests on tests/upgrade-test-resources ● ● ● λ make upgrade-resources PYTEST_ARGS="create"

 ~/nginx/kubernetes-ingress/tests on tests/upgrade-test-resources ● ● λ k get vs -A && k get ing -A && k get ts -A 
NAMESPACE   NAME   STATE   HOST               IP              PORTS      AGE
ns-1        vs-1   Valid   vs-1.example.com   104.199.58.78   [80,443]   7m26s
NAMESPACE   NAME        CLASS   HOSTS                   ADDRESS         PORTS     AGE
ns-1        ingress-1   nginx   ingress-1.example.com   104.199.58.78   80, 443   7m26s
NAMESPACE   NAME   STATE   REASON           AGE
ns-1        ts-1   Valid   AddedOrUpdated   7m26s

~/nginx/kubernetes-ingress/tests on tests/upgrade-test-resources ● ● ● λ make upgrade-resources PYTEST_ARGS="delete"

~/nginx/kubernetes-ingress/tests on tests/upgrade-test-resources ● ● λ k get vs -A && k get ing -A && k get ts -A
No resources found
No resources found
No resources found

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@vepatel vepatel requested a review from a team as a code owner May 15, 2024 13:54
@vepatel vepatel requested a review from shaun-nx May 15, 2024 13:54
@github-actions github-actions bot added python Pull requests that update Python code tests Pull requests that update tests labels May 15, 2024
@vepatel vepatel linked an issue May 15, 2024 that may be closed by this pull request
@vepatel vepatel merged commit a012e5f into main May 16, 2024
78 checks passed
@vepatel vepatel deleted the tests/upgrade-test-resources branch May 16, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code tests Pull requests that update tests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Upgrade testing automation
3 participants