summaryrefslogtreecommitdiff
path: root/spec/integration/provider/ssh_authorized_key_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2012-09-26(Maint) Remove rspec from shebang lineJeff McCune1-1/+1
Without this patch Ruby 1.9 is still complaining loudly about trying to parse the spec files. The previous attempt to clean up this problem in edc3ddf works for Ruby 1.8 but not 1.9. I'd prefer to remove the shebang lines entirely, but doing so will cause encoding errors in Ruby 1.9. This patch strives for a happy middle ground of convincing Ruby it is actually working with Ruby while not confusing it to think it should exec() to rspec. This patch is the result of the following command run against the source tree: find spec -type f -print0 | \ xargs -0 perl -pl -i -e 's,^\#\!\s?/(.*)rspec,\#! /usr/bin/env ruby,'
2012-07-02(maint) Standardize on /usr/bin/env ruby -S rspecJeff McCune1-1/+1
Without this patch some spec files are using `ruby -S rspec` and others are using `rspec`. We should standardize on a single form of the interpreter used for spec files. `ruby -S rspec` is the best choice because it correctly informs editors such as Vim with Syntastic that the file is a Ruby file rather than an Rspec file.
2012-04-24(#14127) Add integration tests for ssh_authorized_keyStefan Schulte1-9/+25
Test the behaviour of the ssh_authorized key type when modifying a file with different kind of text lines (inline comment and blank lines)
2012-04-24maint: refactor integration specs for ssh_authorized_keyStefan Schulte1-102/+98
Replace all before blocks and instance variables with rspec let methods and move the stubbing of File.chmod that happened in all tests to the top to reduce code duplication.
2011-09-15Merge branch 'ticket/2.7.x/7114fixup' of https://github.com/stschulte/puppet ↵Matthaus Litteken1-3/+3
into 2.7rc
2011-08-19(#8663) Disable spec tests for unsupported functionality on WindowsJosh Cooper1-1/+1
The mount, shell, and ssh_authorized_key types are not supported on Windows, so these spec tests have been disabled when running on Windows. One of the compiler spec tests fails on Windows because Puppet::Util.execute attempts to execute a program named "git rev-parse HEAD". This has different semantics than Unix, where the command is splatted, Kernel.exec(*command). Since this truly is a Windows bug, I removed the fails_on_windows tag and updated ticket #8410. Reviewed-by: Jacob Helwig <jacob@puppetlabs.com> (cherry picked from commit d9ce88d10707268fe41c8f3ad1166137fe8e202f)
2011-08-19Maint: Tagged spec tests that are known to fail on WindowsJosh Cooper1-1/+1
Many spec tests fail on Windows because there are no default providers implemented for Windows yet. Several others are failing due to Puppet::Util::Cacher not working correctly, so for now the tests that are known to fail are marked with :fails_on_windows => true. To skip these tests, you can run: rspec --tag ~fails_on_windows spec Reviewed-by: Jacob Helwig <jacob@puppetlabs.com> (cherry picked from commit 255c5b4663bd389d2c87a2d39ec350034421a6f0) Conflicts: spec/unit/resource/catalog_spec.rb
2011-06-20(#7114) Add tests for option propertyStefan Schulte1-3/+3
The option property of the ssh_authorized_key type supports an array of options. To prevent user errors we fail when the user tries to pass multiple option as a single string like "option1,option2" instead of an array. A single option however can also include a comma. Sample option: from="host1,host2". Add tests that demonstrate that the new value validation on options is to strict.
2011-05-16(#7114) Add integration tests for authorized_keyStefan Schulte1-0/+207
Add tests to show the issue that one key is not moved from one keyfile to another keyfile if target is not in sync. Reviewed-By: Nick Lewis Reviewed-By: Josh Cooper