-
Notifications
You must be signed in to change notification settings - Fork 900
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
Add SCM options and SCMCredential to Ansible Tower Automation Manager ConfigurationScriptSource #13776
Conversation
@miq-bot add_labels wip, enhancement, providers/ansible_provider |
@jameswnl Cannot apply the following label because they are not recognized: providers/ansible_provider |
1049233
to
8f34bd8
Compare
@miq-bot add_label providers/ansible_tower |
529b9d2
to
12ae1f0
Compare
@miq-bot remove_label wip |
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, just need schema review from @Fryguy
@@ -1,4 +1,5 @@ | |||
class ConfigurationScriptSource < ApplicationRecord | |||
has_many :configuration_script_payloads | |||
belongs_to :authentications |
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.
Typically a belongs_to is singular. Does this actually work?
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.
let me write a test to find out :)
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.
fixed. I've also deleted the spec file which is testing relationships only.
12ae1f0
to
3541b75
Compare
Checked commit jameswnl@3541b75 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 spec/lib/miq_automation_engine/service_models/miq_ae_service_manageiq-providers-ansible_tower-automation_manager-scm_credential_spec.rb
|
expect(payloads[0].configuration_script_source).to eq(configuration_script_source) | ||
end | ||
end | ||
end |
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.
Why is this deleted?
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.
these are just testing rails
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.
Ah ok...I remember that discussion, but I thought it was from a different PR. This is fine.
We need to keep these information so that when UI provide edit, there'll be existing values to be displayed.