Skip to content

Commit

Permalink
Make tests work with absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Nov 5, 2018
1 parent fff726a commit 50a7b7b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/integration/full/controls/app-engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
credentials_path = attribute('credentials_path')

ENV['CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE'] = File.expand_path(
File.join("../..", credentials_path),
credentials_path,
__FILE__)

control 'project-factory-app-engine' do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/full/controls/gsuite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
credentials_path = attribute('credentials_path')

ENV['CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE'] = File.expand_path(
File.join("../..", credentials_path),
credentials_path,
__FILE__)

control 'project-factory-gsuite' do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/full/controls/project-factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
credentials_path = attribute('credentials_path')

ENV['CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE'] = File.expand_path(
File.join("../..", credentials_path),
credentials_path,
__FILE__)

control 'project-factory' do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/full/controls/shared-vpc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
credentials_path = attribute('credentials_path')

ENV['CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE'] = File.expand_path(
File.join("../..", credentials_path),
credentials_path,
__FILE__)

control 'project-factory-shared-vpc' do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/minimal/controls/minimal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
credentials_path = attribute('credentials_path')

ENV['CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE'] = File.expand_path(
File.join("../..", credentials_path),
credentials_path,
__FILE__)

control 'project-factory-minimal' do
Expand Down

0 comments on commit 50a7b7b

Please sign in to comment.