debian-mirror-gitlab/spec/frontend/clusters_list/mocks/apollo.js

46 lines
785 B
JavaScript
Raw Normal View History

2021-11-18 22:05:49 +05:30
export const createAgentResponse = {
data: {
createClusterAgent: {
clusterAgent: {
id: 'agent-id',
},
errors: [],
},
},
};
export const createAgentErrorResponse = {
data: {
createClusterAgent: {
clusterAgent: {
id: 'agent-id',
},
errors: ['could not create agent'],
},
},
};
export const createAgentTokenResponse = {
data: {
clusterAgentTokenCreate: {
token: {
id: 'token-id',
},
secret: 'mock-agent-token',
errors: [],
},
},
};
export const createAgentTokenErrorResponse = {
data: {
clusterAgentTokenCreate: {
token: {
id: 'token-id',
},
secret: 'mock-agent-token',
errors: ['could not create agent token'],
},
},
};