Jacob Helwig [Tue, 24 Jul 2018 16:46:02 +0000 (09:46 -0700)]
(maint) Import the User type unit tests specific to ssh_authorized_keys
Since these tests require both the User & Ssh_authorized_keys types are
available, they are unlikely to be run as part of the Puppet test suite as
this module is unlikely to be installed & available to Puppet's test
suite. By moving the tests into this module, we can ensure that they're at
least run as part of development of the module.
Jacob Helwig [Mon, 2 Jul 2018 17:07:18 +0000 (10:07 -0700)]
Remove test blocked on ticket marked as "Won't Do"
Since PUP-1605 was closed as "Won't Do", there doesn't seem to be much
reason in keeping around an acceptance test (even if it is a pending one)
that tests the scenario that PUP-1605 would have allowed.
Jacob Helwig [Tue, 26 Jun 2018 17:40:18 +0000 (10:40 -0700)]
Update Travis config to test against Puppet 5 & modern Ruby
Rather than using the default config of testing against Puppet 4, and an
old Ruby version, we now run the spec tests against Puppet 5, and a
version of Ruby that is supported by Puppet 5.
Jacob Helwig [Mon, 25 Jun 2018 16:39:09 +0000 (09:39 -0700)]
Disable Rubocop Metrics/LineLength check for SSH key lines
SSH keys are long, and splitting them into multiple lines can be
error-prone, so we'll just disable the Metrics/LineLength check for lines
that are SSH keys.
Jacob Helwig [Mon, 25 Jun 2018 16:08:53 +0000 (09:08 -0700)]
Fix duplicate test removing RSpec/RepeatedExample violation
The "array host_alias" test was never actually testing against a list of
host aliases, as it was using the exact same code as the "single
host_alias" test. We now test against an actual array of host aliases in
the manifest, and check that it is properly written out to the file.