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 helper Makefile for more easier integration tests #597

Merged
merged 7 commits into from
Jul 7, 2018

Conversation

phobologic
Copy link
Member

No description provided.

@phobologic phobologic requested a review from ejholmes May 13, 2018 03:51
Copy link
Member

@russellballestrini russellballestrini left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@russellballestrini
Copy link
Member

Looks like you have failing functional tests.

Copy link
Contributor

@ejholmes ejholmes left a comment

Choose a reason for hiding this comment

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

One minor comment, but otherwise lgtm.

permissions:
./stacker.yaml.sh | stacker build -

test: permissions
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have a test-functional target in the top level Makefile. Maybe move this there? https://github.com/remind101/stacker/blob/master/Makefile#L13

Copy link
Member Author

Choose a reason for hiding this comment

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

I saw that after I submitted this - do you think I should include the permissions step and use it as a dependency? @ejholmes

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah

Copy link
Member Author

Choose a reason for hiding this comment

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

Hey @ejholmes we talked about this in person, but I can't remember where we landed. The functional tests that we run in circle don't have permissions to make the permissions for themselves, and that was a security decision I'm pretty sure. Moving what I have here to the tests used in circle would cause it to break, unless you have another idea (or I'm not thinking about this correctly).

What are your thoughts?

These checks are flakey - and really don't provide a ton, since we see
the final state.
@phobologic
Copy link
Member Author

I'm going to go ahead and merge this - we can figure out if we want to somehow merge this with the main Makefile tests later. One thing to keep in mind - this changes the way the tests are run now quite a bit, making it easier to run a single test. Please see the readme @ejholmes @russellballestrini

@phobologic phobologic merged commit 1beb3c1 into master Jul 7, 2018
@phobologic phobologic deleted the easier_functional_tests branch July 7, 2018 21:50
phrohdoh pushed a commit to phrohdoh/stacker that referenced this pull request Dec 18, 2018
* Add helper Makefile for more easier integration tests

* no need for cd, -C is better

* Make it possible to run a single test case

* Add specific test examples

* Fix functional tests for new functional test method

* Remove check for updating rollback state

These checks are flakey - and really don't provide a ton, since we see
the final state.
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