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

chore: Automate functional tests in the pipeline #1631

Closed
wants to merge 17 commits into from

Conversation

salonichf5
Copy link
Contributor

@salonichf5 salonichf5 commented Feb 29, 2024

Proposed changes

Write a clear and concise description that helps reviewers understand the purpose and impact of your changes. Use the
following format:

Problem: As a user, I want to automate functional tests in the pipeline

Solution: To run functional tests in the pipeline, we introduce a new github workflow that sets up the environment to run tests, and upload results

Testing: Manual testing by pushing to the branch

Please focus on (optional): If you any specific areas where you would like reviewers to focus their attention or provide
specific feedback, add them here.

Closes #1562

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

Release notes

If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.


@salonichf5 salonichf5 changed the title [pre-commit.ci] pre-commit autoupdate (#1595) Automate functional tests in the pipeline Feb 29, 2024
Expect(resourceManager.DeleteFromFiles(files, ns.Name)).To(Succeed())
Expect(resourceManager.Delete([]client.Object{ns})).To(Succeed())
outFile.Close()
})

It("sends traffic", func() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need to document test results in the output file.

@salonichf5 salonichf5 changed the title Automate functional tests in the pipeline chore: Automate functional tests in the pipeline Feb 29, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 29, 2024
@@ -14,7 +16,8 @@ import (
"github.com/nginxinc/nginx-gateway-fabric/tests/framework"
)

var _ = Describe("Basic test example", func() {
var _ = Describe("Basic test example", Ordered, Label("functional"), func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't need to be Ordered, so you can leave the BeforeEach and AfterEach in place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sound good

@salonichf5
Copy link
Contributor Author

Closing this pull request and opening a PR against main

@salonichf5 salonichf5 closed this Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Automate Functional Tests in the Pipeline
2 participants