We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cadc051 commit 9f0969fCopy full SHA for 9f0969f
1 file changed
test/session_helper.rb
@@ -16,7 +16,7 @@
16
MSG
17
18
module AuthType
19
- SERVICE_ACCOUNT = 'service'
+ SERVICE_ACCOUNT = 'service_account'
20
USER_ACCOUNT = 'user_account'
21
end
22
@@ -30,6 +30,14 @@ def auth_type
30
def get_session
31
unless @@session
32
puts CREATE_ACCOUNT_MESSAGE
33
+ case auth_type
34
+ when AuthType::SERVICE_ACCOUNT
35
+ puts "test execute by service_account mode. cannot create/delete files"
36
+ when AuthType::USER_ACCOUNT
37
+ puts "test execute by user_account mode"
38
+ else
39
+ raise "Unsupported GOOGLE_DRIVE_AUTH_TYPE: #{ENV['GOOGLE_DRIVE_AUTH_TYPE']}"
40
+ end
41
42
account_path = File.join(File.dirname(__FILE__), 'account.yaml')
43
config_path = File.join(File.dirname(__FILE__), 'config.json')
0 commit comments