diff options
Diffstat (limited to 'spec/frontend/token_access/mock_data.js')
-rw-r--r-- | spec/frontend/token_access/mock_data.js | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/spec/frontend/token_access/mock_data.js b/spec/frontend/token_access/mock_data.js index ab04735b985..a4b5532108a 100644 --- a/spec/frontend/token_access/mock_data.js +++ b/spec/frontend/token_access/mock_data.js @@ -70,13 +70,13 @@ export const removeProjectSuccess = { export const updateScopeSuccess = { data: { - ciCdSettingsUpdate: { + projectCiCdSettingsUpdate: { ciCdSettings: { jobTokenScopeEnabled: false, __typename: 'ProjectCiCdSetting', }, errors: [], - __typename: 'CiCdSettingsUpdatePayload', + __typename: 'ProjectCiCdSettingsUpdatePayload', }, }, }; @@ -121,32 +121,6 @@ export const mockFields = [ }, ]; -export const optInJwtQueryResponse = (optInJwt) => ({ - data: { - project: { - id: '1', - ciCdSettings: { - optInJwt, - __typename: 'ProjectCiCdSetting', - }, - __typename: 'Project', - }, - }, -}); - -export const optInJwtMutationResponse = (optInJwt) => ({ - data: { - ciCdSettingsUpdate: { - ciCdSettings: { - optInJwt, - __typename: 'ProjectCiCdSetting', - }, - errors: [], - __typename: 'CiCdSettingsUpdatePayload', - }, - }, -}); - export const inboundJobTokenScopeEnabledResponse = { data: { project: { @@ -217,13 +191,13 @@ export const inboundRemoveProjectSuccess = { export const inboundUpdateScopeSuccessResponse = { data: { - ciCdSettingsUpdate: { + projectCiCdSettingsUpdate: { ciCdSettings: { inboundJobTokenScopeEnabled: false, __typename: 'ProjectCiCdSetting', }, errors: [], - __typename: 'CiCdSettingsUpdatePayload', + __typename: 'ProjectCiCdSettingsUpdatePayload', }, }, }; |