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

Increase test coverage #692

Merged
merged 47 commits into from
Oct 25, 2018
Merged

Conversation

josh-barker
Copy link
Contributor

@josh-barker josh-barker commented Aug 1, 2018

Description

This is to increase the test coverage for the cookbook.

Issues Resolved

  • Increase SV timeout to 30 seconds in kitchen file (1f3f817)
  • Fix bug where cannot find version of plugin from plugin universe (f3c45de)
  • Fix delete action on jnlp slave (a00572c)
  • Convert custom Jenkins ServerSpec resources to InSpec resources
  • Convert ServerSpec tests to InSpec tests
  • Reduce number of suites and moved as many tests into the smoke suites

To Do:

  • Cleanup ServerSpec tests and resources

Check List

@josh-barker
Copy link
Contributor Author

This is a WIP. Need Travis to run tests.

@josh-barker josh-barker force-pushed the increase-test-coverage branch from 43f00e0 to 70fbd06 Compare September 2, 2018 03:18
…t does not depend on create

Signed-off-by: Josh Barker <[email protected]>
… does not depend on install

Signed-off-by: Josh Barker <[email protected]>
@josh-barker josh-barker force-pushed the increase-test-coverage branch 2 times, most recently from aa994c8 to a1f5ec8 Compare October 10, 2018 06:34
@josh-barker josh-barker force-pushed the increase-test-coverage branch from a1f5ec8 to e47889c Compare October 10, 2018 07:18
@josh-barker josh-barker force-pushed the increase-test-coverage branch from 46b75f3 to 7cc2749 Compare October 11, 2018 22:09
@josh-barker
Copy link
Contributor Author

Hey @tas50

This PR is almost finished; I just need to

  • delete all the ServerSpec tests and helpers
  • update kitchen.yml to remove all the redundant suites

Can you review before I do the final cleanup, or did you want me to delete all the ServerSpec files first?

I'm not fussed either way, but it could be easier to compare the ServerSpec tests vs the InSpec tests file to file, rather than git diff, as there's going to be a lots of files deleted.

For example, comparing test/integration/jenkins_job_*/* with test/integration/jenkins_smoke/controls/jenkins_job.rb

@tas50
Copy link
Contributor

tas50 commented Oct 15, 2018

This is massive and seems all legit. Thank you so much for taking the time to put it all together. Nothing stands out to me so feel free to keep on the good work and I can merge this whenever you want. I added you as a collaborator on the cookbook since at this point you know ore about the setup of things than I do.

@josh-barker
Copy link
Contributor Author

No worries. :)
I'll keep cleaning it up & will let you know when its ready

@josh-barker josh-barker force-pushed the increase-test-coverage branch from c3a94c2 to 04e9416 Compare October 25, 2018 10:52
@tas50
Copy link
Contributor

tas50 commented Oct 25, 2018

@josh-barker any reason not to merge what you have here and then do any further cleanup in another PR. It would be great to get this on master.

@josh-barker
Copy link
Contributor Author

Hey @tas50, sounds good. Let's get this into master. :-)

@josh-barker josh-barker changed the title WIP: Increase test coverage Increase test coverage Oct 25, 2018
@tas50 tas50 merged commit 13d91f1 into sous-chefs:master Oct 25, 2018
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.

2 participants