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

test: Add e2e test framework and update makefile and GHA workflow #185

Merged
merged 17 commits into from
Jan 31, 2024

Conversation

ykim-akamai
Copy link
Contributor

@ykim-akamai ykim-akamai commented Jan 25, 2024

📝 Description

This PR adds a few things:

  • E2E test framework
  • Update TOD upload logic to using git submodule
  • Update makefile - separate unit and integration test

✔️ How to Test

make unit-test
make int-test
make test (Tests all the test in the repo)

@ykim-akamai ykim-akamai requested a review from a team as a code owner January 25, 2024 18:16
@ykim-akamai ykim-akamai requested review from jriddle-linode and vshanthe and removed request for a team January 25, 2024 18:16
@ykim-akamai
Copy link
Contributor Author

Here is a green build on my forked repo - https://github.com/ykim-1/packer-plugin-linode/actions/runs/7659265343

Copy link
Collaborator

@jriddle-linode jriddle-linode left a comment

Choose a reason for hiding this comment

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

LGTM.
Just rename GNUmakefile to Makefile.

@zliang-akamai
Copy link
Member

As discussed privately, we may want to have a way to specify the image name and clean it up after tests.

-var 'key=value' option in packer build command may help us to achieve that.

@ykim-akamai
Copy link
Contributor Author

@zliang-akamai good catch! Just added the teardown

Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

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

LGTM, and local test passed! Just some minor suggestions.

test/integration/e2e_test.go Outdated Show resolved Hide resolved
test/integration/e2e_test.go Outdated Show resolved Hide resolved
test/integration/e2e_test.go Outdated Show resolved Hide resolved
@zliang-akamai
Copy link
Member

And don't forget fix the lint 👍

@ykim-akamai ykim-akamai merged commit c36cfc8 into linode:dev Jan 31, 2024
9 of 10 checks passed
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