mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
Remove webhook_key and webhook_url from JT form payload
Signed-off-by: Vadiem Janssens <info@vadiemjanssens.nl>
This commit is contained in:
parent
c9cfaf65a0
commit
be33627755
@ -16,6 +16,8 @@ function JobTemplateAdd() {
|
||||
initialInstanceGroups,
|
||||
credentials,
|
||||
webhook_credential,
|
||||
webhook_key,
|
||||
webhook_url,
|
||||
...remainingValues
|
||||
} = values;
|
||||
|
||||
|
||||
@ -172,9 +172,7 @@ describe('<JobTemplateAdd />', () => {
|
||||
playbook: 'Baz',
|
||||
inventory: 2,
|
||||
webhook_credential: undefined,
|
||||
webhook_key: '',
|
||||
webhook_service: '',
|
||||
webhook_url: '',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -101,6 +101,8 @@ class JobTemplateEdit extends Component {
|
||||
initialInstanceGroups,
|
||||
credentials,
|
||||
webhook_credential,
|
||||
webhook_key,
|
||||
webhook_url,
|
||||
...remainingValues
|
||||
} = values;
|
||||
|
||||
|
||||
@ -271,7 +271,8 @@ describe('<JobTemplateEdit />', () => {
|
||||
delete expected.id;
|
||||
delete expected.type;
|
||||
delete expected.related;
|
||||
expected.webhook_url = `${window.location.origin}${mockJobTemplate.related.webhook_receiver}`;
|
||||
delete expected.webhook_key;
|
||||
delete expected.webhook_url;
|
||||
expect(JobTemplatesAPI.update).toHaveBeenCalledWith(1, expected);
|
||||
expect(JobTemplatesAPI.disassociateLabel).toHaveBeenCalledTimes(2);
|
||||
expect(JobTemplatesAPI.associateLabel).toHaveBeenCalledTimes(4);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user