Skip to content

Commit

Permalink
(PA-5805) Add Windows support in sshkeys_core
Browse files Browse the repository at this point in the history
This commit enables Windows agents in the destroy_spec.rb so Windows
agents can be used in sshkeys spec tests and adds Windows as a supported
operating system in metadata.json.

Co-authored-by: kenyon <[email protected]>
  • Loading branch information
AriaXLi and kenyon committed Mar 18, 2024
1 parent c7d5955 commit c1a544b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
{
"operatingsystem": "Rocky"
},
{
"operatingsystem": "windows"
},
{
"operatingsystem": "AlmaLinux"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require 'spec_helper_acceptance'

RSpec.context 'ssh_authorized_key: Destroy' do
confine :except, platform: ['windows']

let(:auth_keys) { '~/.ssh/authorized_keys' }
let(:name) { "pl#{rand(999_999).to_i}" }
let(:custom_key_directory) { "/etc/ssh_authorized_keys_#{name}" }
Expand Down

0 comments on commit c1a544b

Please sign in to comment.