-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea5ee04
commit d8c1f60
Showing
6 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,5 @@ | |
# | ||
|
||
module Workup | ||
VERSION = '0.1.0' | ||
VERSION = '0.1.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 16 additions & 5 deletions
21
omnibus/workup_build/test/integration/default/workup_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
# frozen_string_literal: true | ||
describe file('/usr/local/bin/workup') do | ||
it { should exist } | ||
|
||
def env(cmd, **options) | ||
(options.map do |k, v| | ||
os.family == 'windows' ? "$env:#{k} = '#{v}';" : "#{k}='#{v}'" | ||
end + [*cmd]).join(' ') | ||
end | ||
|
||
# Waiting on login shell support | ||
describe command('workup') do | ||
workup_bins = os.family == 'windows' ? 'C:/workup/bin' : '/usr/local/bin' | ||
workup_bin = File.join(workup_bins, 'workup') | ||
|
||
describe file(workup_bin) do | ||
it { should exist } | ||
end | ||
|
||
describe command('PASSWORD=vagrant /usr/local/bin/workup') do | ||
# Waiting on login shell support | ||
# describe command('workup') do | ||
# it { should exist } | ||
# end | ||
|
||
describe command(env(workup_bin, PASSWORD: 'vagrant')) do | ||
its('exit_status') { should eq 0 } | ||
its('stdout') { should match 'Chef Client finished, 0/0 resources updated' } | ||
its('stderr') { should be_empty } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters