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(map): standardise map.jinja verification #69

Merged
merged 2 commits into from
Dec 22, 2020

Conversation

myii
Copy link
Member

@myii myii commented Aug 26, 2020

PR progress checklist (to be filled in by reviewers)

  • Changes to documentation are appropriate (or tick if not required)
  • Changes to tests are appropriate (or tick if not required)
  • Reviews completed

What type of PR is this?

Primary type

  • [build] Changes related to the build system
  • [chore] Changes to the build process or auxiliary tools and libraries such as documentation generation
  • [ci] Changes to the continuous integration configuration
  • [feat] A new feature
  • [fix] A bug fix
  • [perf] A code change that improves performance
  • [refactor] A code change that neither fixes a bug nor adds a feature
  • [revert] A change used to revert a previous commit
  • [style] Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)

Secondary type

  • [docs] Documentation changes
  • [test] Adding missing or correcting existing tests

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

UPDATE:

#65 (comment)
saltstack-formulas/openssh-formula#193

Describe the changes you're proposing

Discussion in Slack: https://freenode.logbot.info/saltstack-formulas/20200826#c4886021-c4887283.

Pillar / config required to test the proposed changes

Debug log showing how the proposed changes work

Documentation checklist

  • Updated the README (e.g. Available states).
  • Updated pillar.example.

Testing checklist

  • Included in Kitchen (i.e. under state_top).
  • Covered by new/existing tests (e.g. InSpec, Serverspec, etc.).
  • Updated the relevant test pillar.

Additional context

@pull-assistant
Copy link

Score: 1.00

Best reviewed: commit by commit


Optimal code review plan

     test(_mapdata_spec): perform comparison using describe yaml instead

Powered by Pull Assistant. Last update 570730a ... 570730a. Read the comment docs.

@myii myii requested a review from daks August 26, 2020 22:34
@myii
Copy link
Member Author

myii commented Aug 26, 2020

@daks Realised I could use it rather than introducing a top-level key:

Then it was a matter of figuring out how to grab the params, which I found here:

@daks
Copy link
Member

daks commented Aug 27, 2020

Good job @myii :) At a side note, I recently upgraded to Inspec4 and we use the inputs (https://docs.chef.io/inspec/inputs/) which may also be a solution to provide data to inspec. Not sure if it could be used instead of this solution and if that would be more or less convenient or powerful.

@myii myii force-pushed the test/compare-mapdata-using-yaml branch from 570730a to 7b0e1ec Compare December 21, 2020 23:58
@myii myii requested a review from a team as a code owner December 21, 2020 23:58
@myii myii changed the title test(_mapdata_spec): perform comparison using describe yaml instead test(map): standardise map.jinja verification Dec 21, 2020
@myii
Copy link
Member Author

myii commented Dec 22, 2020

Repurposed this PR with all of the standardisations worked out across the various formulas.

@myii myii force-pushed the test/compare-mapdata-using-yaml branch from 7b0e1ec to b7aa04d Compare December 22, 2020 00:46
@myii myii merged commit 4933e91 into saltstack-formulas:master Dec 22, 2020
@myii
Copy link
Member Author

myii commented Dec 22, 2020

Self-merging since tests only.

@myii myii deleted the test/compare-mapdata-using-yaml branch December 22, 2020 12:36
@saltstack-formulas-travis

🎉 This PR is included in version 0.23.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants