mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 07:28:02 -03:30
Add container group flag to add/edit data
This commit is contained in:
parent
1c4a376758
commit
098ec63944
@ -33,6 +33,7 @@ function ContainerGroupAdd() {
|
||||
pod_spec_override: values.override
|
||||
? getPodSpecValue(values.pod_spec_override)
|
||||
: null,
|
||||
is_container_group: true,
|
||||
});
|
||||
history.push(`/instance_groups/container_group/${response.id}/details`);
|
||||
} catch (error) {
|
||||
|
||||
@ -26,6 +26,7 @@ const initialPodSpec = {
|
||||
},
|
||||
],
|
||||
},
|
||||
is_container_group: true,
|
||||
},
|
||||
};
|
||||
|
||||
@ -80,6 +81,7 @@ describe('<ContainerGroupAdd/>', () => {
|
||||
expect(InstanceGroupsAPI.create).toHaveBeenCalledWith({
|
||||
...instanceGroupCreateData,
|
||||
credential: 71,
|
||||
is_container_group: true,
|
||||
});
|
||||
expect(wrapper.find('FormSubmitError').length).toBe(0);
|
||||
expect(history.location.pathname).toBe(
|
||||
|
||||
@ -39,6 +39,7 @@ function ContainerGroupEdit({ instanceGroup }) {
|
||||
name: values.name,
|
||||
credential: values.credential ? values.credential.id : null,
|
||||
pod_spec_override: values.override ? values.pod_spec_override : null,
|
||||
is_container_group: true,
|
||||
});
|
||||
history.push(detailsIUrl);
|
||||
} catch (error) {
|
||||
|
||||
@ -147,6 +147,7 @@ describe('<ContainerGroupEdit/>', () => {
|
||||
...updatedInstanceGroup,
|
||||
credential: 12,
|
||||
pod_spec_override: null,
|
||||
is_container_group: true,
|
||||
});
|
||||
expect(history.location.pathname).toEqual(
|
||||
'/instance_groups/container_group/123/details'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user