Skip to content

Instantly share code, notes, and snippets.

@samjsharpe
Created July 3, 2014 11:15
Show Gist options
  • Save samjsharpe/562e142d50cbf456a1e7 to your computer and use it in GitHub Desktop.
Save samjsharpe/562e142d50cbf456a1e7 to your computer and use it in GitHub Desktop.
rspec-fails-on-puppet-syntax
/opt/rubies/1.9.3-p545/bin/ruby -S rspec ./spec/puppet-syntax/hiera_spec.rb ./spec/puppet-syntax/manifests_spec.rb ./spec/puppet-syntax/tasks/puppet-syntax_spec.rb ./spec/puppet-syntax/templates_spec.rb ./spec/puppet-syntax_spec.rb
PuppetSyntax::Hiera
should expect an array of files
should return nothing from valid YAML
should return an error from invalid YAML
PuppetSyntax::Manifests
should expect an array of files
should return nothing from a valid file
should return an error from an invalid file
should return a warning from an invalid file
should ignore warnings about storeconfigs
should read more than one valid file
should continue after finding an error in the first file
future_parser
future_parser = false (default)
should fail without setting future option to true on future manifest
future_parser = true
Puppet >= 3.2
should pass with future option set to true on future manifest
PuppetSyntax rake tasks
should generate FileList of manifests relative to Rakefile (PENDING: No reason given)
should generate FileList of templates relative to Rakefile (PENDING: No reason given)
PuppetSyntax::Templates
should expect an array of files
should return nothing from a valid file
should ignore NameErrors from unbound variables
should catch SyntaxError
should catch Ruby warnings (FAILED - 1)
should read more than one valid file
should continue after finding an error in the first file (FAILED - 2)
PuppetSyntax
should default exclude_paths to empty array
should support setting exclude_paths
should support future parser setting
Pending:
PuppetSyntax rake tasks should generate FileList of manifests relative to Rakefile
# No reason given
# ./spec/puppet-syntax/tasks/puppet-syntax_spec.rb:4
PuppetSyntax rake tasks should generate FileList of templates relative to Rakefile
# No reason given
# ./spec/puppet-syntax/tasks/puppet-syntax_spec.rb:8
Failures:
1) PuppetSyntax::Templates should catch Ruby warnings
Failure/Error: res.should have(1).items
expected 1 items, got 0
# ./spec/puppet-syntax/templates_spec.rb:36:in `block (2 levels) in <top (required)>'
2) PuppetSyntax::Templates should continue after finding an error in the first file
Failure/Error: res.should have(2).items
expected 2 items, got 1
# ./spec/puppet-syntax/templates_spec.rb:51:in `block (2 levels) in <top (required)>'
Finished in 0.24246 seconds
24 examples, 2 failures, 2 pending
Failed examples:
rspec ./spec/puppet-syntax/templates_spec.rb:32 # PuppetSyntax::Templates should catch Ruby warnings
rspec ./spec/puppet-syntax/templates_spec.rb:47 # PuppetSyntax::Templates should continue after finding an error in the first file
/opt/rubies/1.9.3-p545/bin/ruby -S rspec ./spec/puppet-syntax/hiera_spec.rb ./spec/puppet-syntax/manifests_spec.rb ./spec/puppet-syntax/tasks/puppet-syntax_spec.rb ./spec/puppet-syntax/templates_spec.rb ./spec/puppet-syntax_spec.rb failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment