-
Notifications
You must be signed in to change notification settings - Fork 41
Raise UnlicensedFeatureError when we receive a HTTP 402 #65
Conversation
@syncrou Please review |
@bdunne - Is this going to be the fix for |
49f0be2
to
d4f8161
Compare
@@ -25,6 +25,13 @@ | |||
expect(described_class.new(api, raw_instance_no_survey).survey_spec).to be_nil | |||
end | |||
end | |||
|
|||
describe "unlicensed" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bdunne - This looks great. It would be great to have some testing around the middleware as well.
@syncrou Yes, it would raise |
Rescue UnlicensedFeatureError when trying to fetch survey_data https://bugzilla.redhat.com/show_bug.cgi?id=1370251
d4f8161
to
586af43
Compare
Checked commit bdunne@586af43 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 lib/ansible_tower_client/base_models/job_template.rb
|
@syncrou Middleware test added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
Rescue UnlicensedFeatureError when trying to fetch survey_data
https://bugzilla.redhat.com/show_bug.cgi?id=1370251