]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
Remove test blocked on ticket marked as "Won't Do"
authorJacob Helwig <jacob@technosorcery.net>
Mon, 2 Jul 2018 17:07:18 +0000 (10:07 -0700)
committerJacob Helwig <jacob@technosorcery.net>
Mon, 2 Jul 2018 17:22:13 +0000 (10:22 -0700)
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.

spec/acceptance/tests/resource/ssh_authorized_key/query_spec.rb [deleted file]

diff --git a/spec/acceptance/tests/resource/ssh_authorized_key/query_spec.rb b/spec/acceptance/tests/resource/ssh_authorized_key/query_spec.rb
deleted file mode 100644 (file)
index 08a0b1d..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-require 'spec_helper_acceptance'
-
-RSpec.context 'ssh_authorized_key: Query' do
-  let(:auth_keys) { '~/.ssh/authorized_keys' }
-  let(:name) { "pl#{rand(999_999).to_i}" }
-
-  before do
-    posix_agents.each do |agent|
-      on(agent, "cp #{auth_keys} /tmp/auth_keys", acceptable_exit_codes: [0, 1])
-      on(agent, "echo '' >> #{auth_keys} && echo 'ssh-rsa mykey #{name}' >> #{auth_keys}")
-    end
-  end
-
-  after do
-    posix_agents.each do |agent|
-      # (teardown) restore the #{auth_keys} file
-      on(agent, "mv /tmp/auth_keys #{auth_keys}", acceptable_exit_codes: [0, 1])
-    end
-  end
-
-  posix_agents.each do |agent|
-    it "#{agent} should be able to find an existing SSH authorized key", pending: 'Blocked by PUP-1605' do
-      on(agent, puppet_resource('ssh_authorized_key', "/#{name}")) do |_res|
-        expect(stdout).to include(name.to_s)
-      end
-    end
-  end
-end