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

Adds feature to check tags #45

Merged
merged 1 commit into from
Dec 6, 2016
Merged

Conversation

petems
Copy link
Member

@petems petems commented Nov 29, 2016

  • Tags have to be in an array format, adds simple check for this

Closes #44

@domcleal
Copy link
Contributor

domcleal commented Dec 5, 2016

Could you fix the two rubocop failures please?

Regarding the module line length, I think you could safely disable that for now until the module's refactored.

@petems
Copy link
Member Author

petems commented Dec 5, 2016

@domcleal Done 👍

"source": "git://github.com/puppetlabs/puppet-postgresql.git",
"project_page": "https://github.com/puppetlabs/puppet-postgresql",
"issues_url": "https://github.com/puppetlabs/puppet-postgresql/issues",
"tags": "postgres",
Copy link
Member

Choose a reason for hiding this comment

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

I think there should be a corresponding test where it is in an array. There appear to be no other metadata.json files used for testing with the tags value, so it's not being tested elsewhere.

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems sensible, will do!

Copy link
Member Author

Choose a reason for hiding this comment

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

Happy path test added! 👍

test "tags_no_array" $FAILURE

# Run with tags in an array in metadata.json, expect SUCCESS
test "tags_no_array" $SUCCESS
Copy link
Contributor

Choose a reason for hiding this comment

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

tags_with_array

* Tags have to be in an array format, adds simple check for this
* Bumped module length metric, as class is long right now, needs later refactor
@rnelson0 rnelson0 merged commit a16d9b9 into voxpupuli:master Dec 6, 2016
@petems
Copy link
Member Author

petems commented Dec 6, 2016

Thanks everyone 👍

@petems petems deleted the add_tag_check branch December 6, 2016 12:18
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.

4 participants