-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Cryptic exception when region is not set #325
Comments
@darrenhaken |
@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt |
I believe PR #458 fix this issue. require 'spec_helper'
describe alb('foobar') do
it { should_not exist }
it 'active? method raises Awspec::NoExistingResource' do
expect { subject.active? }.to raise_error(Awspec::NoExistingResource)
end
end If you run it with region properly configured in
If the region configuration is removed:
|
It makes sense but I we should consider that the region can come from multiple locations such as an ENV var not just a config file. Ideally it would be good to support passing the region to the assertion itself but I took a quick look and did not see that currently supported here. |
I updated the configuration @majormoses to ignore how the configuration is done (files or environment variable), and just testing if the client configuration is correct or not, see PR #458. |
@glasswalk3r hai! Thank you! |
I created a new PR for this case, hopefully I got it right this time. |
@k1LoW , the PR is already merged, you can close this one! |
👍 |
I was trying to run awspec tests on Jenkins where the AWS region was not set. The error I receive is the following:
This caused us to lose a lot of time where if awspec where a readable error would help a lot.
Does this make sense?
The text was updated successfully, but these errors were encountered: