We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5b989 commit 83a1f45Copy full SHA for 83a1f45
test/instance_agent/file_credentials_test.rb
@@ -1,4 +1,5 @@
1
require 'test_helper'
2
+require 'aws-sdk-core'
3
4
class FileCredentialsTest < InstanceAgentTestCase
5
context 'With the file credentials' do
@@ -52,7 +53,7 @@ class FileCredentialsTest < InstanceAgentTestCase
52
53
end
54
55
should 'raise error when credential file is missing' do
- assert_raised_with_message("Failed to load credentials from path #{credentials_path}", RuntimeError) do
56
+ assert_raised_with_message("Profile `default' not found in #{credentials_path}", Aws::Errors::NoSuchProfileError) do
57
InstanceAgent::FileCredentials.new(credentials_path)
58
59
0 commit comments