From 950a6c0a21896989118badc0f541f7469752c63f Mon Sep 17 00:00:00 2001 From: Jacob Helwig Date: Mon, 2 Jul 2018 10:07:18 -0700 Subject: 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. --- .../resource/ssh_authorized_key/query_spec.rb | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 spec/acceptance/tests/resource/ssh_authorized_key/query_spec.rb (limited to 'spec/acceptance') 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 index 08a0b1d..0000000 --- a/spec/acceptance/tests/resource/ssh_authorized_key/query_spec.rb +++ /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 -- cgit v1.2.3