Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main [ PUP-11929 ] : Added Command to enable SSH on Mac OS 12/13 64 ARM #9099

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion acceptance/tests/resource/group/should_query_all.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
test_name "should query all groups"
skip_test if agents.any? {|agent| agent['platform'] =~ /osx-12-arm64/ || agent['platform'] =~ /osx-13-arm64/ } # See PA-4555

tag 'audit:high',
'audit:refactor', # Use block style `test_name`
Expand All @@ -9,6 +8,17 @@
skip_test('this test fails on windows French due to Cygwin/UTF Issues - PUP-8319,IMAGES-492') if agent['platform'] =~ /windows/ && agent['locale'] == 'fr'
step "query natively"

# [PA-4555] Added below code to enable SSH permissions before test starts if they are disabled by default
if (agent['platform'] =~ /osx-12-arm64/ || agent['platform'] =~ /osx-13-arm64/)
on(agent, 'dscl . list /Groups | grep com.apple.access_ssh') do
stdout.each_line do |line|
if line =~ /com.apple.access_ssh-disabled/
on(agent, 'dscl . change /Groups/com.apple.access_ssh-disabled RecordName com.apple.access_ssh-disabled com.apple.access_ssh')
end
end
end
end

groups = agent.group_list

fail_test("No groups found") unless groups
Expand Down