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

serverspec be able to override user for tests #748

Open
sarcasticadmin opened this issue Mar 17, 2024 · 0 comments
Open

serverspec be able to override user for tests #748

sarcasticadmin opened this issue Mar 17, 2024 · 0 comments

Comments

@sarcasticadmin
Copy link
Member

Description

Currently we hard code the user:

if ENV['TEST_TYPE'].start_with?('openwrt')
options[:user] = 'root'
# Disable sudo
set :disable_sudo, true
# Force os detection due to errors on openwrt
set :os, :family => 'linux'
else
#options[:user] ||= Etc.getlogin
# TODO: Need to not hard code this
# But ok to assume this user for now
options[:user] = 'ubuntu'
end

Acceptance Criteria

  • user is overridable for serverspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant