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

(SDK-256) Acceptance tests for metadata validator behavior and output #99

Merged
merged 5 commits into from
Jun 27, 2017

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Jun 22, 2017

No description provided.

@rodjek
Copy link
Contributor Author

rodjek commented Jun 22, 2017

Acceptance tests are failing on Windows because we're not currently installing metadata-json-lint on Windows. I've opened a PR on puppetlabs/puppet-module-gems to add it.

@scotje
Copy link
Contributor

scotje commented Jun 26, 2017

Rebased on master.

@rodjek
Copy link
Contributor Author

rodjek commented Jun 27, 2017

Acceptance tests now passing on Windows \o/

@DavidS
Copy link
Contributor

DavidS commented Jun 27, 2017

Running this fails when using --format=text (the original SDK-256 content}:

david@davids:~/git/pdk/test$ ~/git/pdk/bin/pdk validate --format=text
pdk (INFO): Running all available validators...
[✔] Checking for missing Gemfile dependencies
[✖] Checking metadata.json
/home/david/git/pdk/lib/pdk/report.rb:90:in `block (2 levels) in to_text': private method `puts' called for nil:NilClass (NoMethodError)
Did you mean?  putc
	from /home/david/git/pdk/lib/pdk/report.rb:89:in `each'
	from /home/david/git/pdk/lib/pdk/report.rb:89:in `block in to_text'
	from /home/david/git/pdk/lib/pdk/report.rb:88:in `each'
	from /home/david/git/pdk/lib/pdk/report.rb:88:in `to_text'
	from /home/david/git/pdk/lib/pdk/cli/validate.rb:75:in `block (3 levels) in <module:CLI>'
	from /home/david/git/pdk/lib/pdk/cli/validate.rb:74:in `each'
	from /home/david/git/pdk/lib/pdk/cli/validate.rb:74:in `block (2 levels) in <module:CLI>'
	from /home/david/gems/ruby/2.3.0/gems/cri-2.9.1/lib/cri/command.rb:319:in `run_this'
	from /home/david/gems/ruby/2.3.0/gems/cri-2.9.1/lib/cri/command.rb:264:in `run'
	from /home/david/gems/ruby/2.3.0/gems/cri-2.9.1/lib/cri/command.rb:282:in `run'
	from /home/david/git/pdk/lib/pdk/cli.rb:14:in `run'
	from /home/david/git/pdk/exe/pdk:5:in `<top (required)>'
	from /home/david/git/pdk/bin/pdk:17:in `load'
	from /home/david/git/pdk/bin/pdk:17:in `<main>'

@DavidS
Copy link
Contributor

DavidS commented Jun 27, 2017

the "(maint) Add passing events for files with no puppet-lint problems" commit was already merged in #109, rebasing this to remove the code here. Then I'll merge the work as-is, since the tests pass.

We can deal with --format=text separately.

Copy link
Contributor

@DavidS DavidS left a comment

Choose a reason for hiding this comment

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

Turns out I can't read. Rebasing without removing the feature works better :-| :)

This can be merged as soon as CI goes green.

@DavidS DavidS merged commit a3ca525 into puppetlabs:master Jun 27, 2017
@rodjek rodjek deleted the sdk-256 branch November 26, 2018 23:14
@chelnak chelnak added the maintenance Internal maintenance work that shouldn't appear in the changelog label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal maintenance work that shouldn't appear in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants