2022-03-02 08:16:31 +05:30
|
|
|
export const testProjectPath = 'foo/bar';
|
|
|
|
|
|
|
|
export const textProviderIds = [101, 102];
|
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
export const securityTrainingProviders = [
|
|
|
|
{
|
2022-03-02 08:16:31 +05:30
|
|
|
id: textProviderIds[0],
|
|
|
|
name: 'Vendor Name 1',
|
|
|
|
description: 'Interactive developer security education',
|
|
|
|
url: 'https://www.example.org/security/training',
|
2022-01-26 12:08:38 +05:30
|
|
|
isEnabled: false,
|
2022-04-04 11:22:00 +05:30
|
|
|
isPrimary: false,
|
2022-01-26 12:08:38 +05:30
|
|
|
},
|
|
|
|
{
|
2022-03-02 08:16:31 +05:30
|
|
|
id: textProviderIds[1],
|
|
|
|
name: 'Vendor Name 2',
|
2022-01-26 12:08:38 +05:30
|
|
|
description: 'Security training with guide and learning pathways.',
|
2022-03-02 08:16:31 +05:30
|
|
|
url: 'https://www.vendornametwo.com/',
|
2022-01-26 12:08:38 +05:30
|
|
|
isEnabled: true,
|
2022-04-04 11:22:00 +05:30
|
|
|
isPrimary: false,
|
2022-01-26 12:08:38 +05:30
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const securityTrainingProvidersResponse = {
|
|
|
|
data: {
|
2022-04-04 11:22:00 +05:30
|
|
|
project: {
|
|
|
|
id: 1,
|
|
|
|
securityTrainingProviders,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const dismissUserCalloutResponse = {
|
|
|
|
data: {
|
|
|
|
userCalloutCreate: {
|
|
|
|
errors: [],
|
|
|
|
userCallout: {
|
|
|
|
dismissedAt: '2022-02-02T04:36:57Z',
|
|
|
|
featureName: 'SECURITY_TRAINING_FEATURE_PROMOTION',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const dismissUserCalloutErrorResponse = {
|
|
|
|
data: {
|
|
|
|
userCalloutCreate: {
|
|
|
|
errors: ['Something went wrong'],
|
|
|
|
userCallout: {
|
|
|
|
dismissedAt: '',
|
|
|
|
featureName: 'SECURITY_TRAINING_FEATURE_PROMOTION',
|
|
|
|
},
|
|
|
|
},
|
2022-01-26 12:08:38 +05:30
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2022-04-04 11:22:00 +05:30
|
|
|
export const updateSecurityTrainingProvidersResponse = {
|
|
|
|
data: {
|
|
|
|
securityTrainingUpdate: {
|
|
|
|
errors: [],
|
|
|
|
training: {
|
|
|
|
id: 101,
|
|
|
|
name: 'Acme',
|
|
|
|
isEnabled: true,
|
|
|
|
isPrimary: false,
|
|
|
|
},
|
2022-01-26 12:08:38 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2022-03-02 08:16:31 +05:30
|
|
|
|
2022-04-04 11:22:00 +05:30
|
|
|
export const updateSecurityTrainingProvidersErrorResponse = {
|
|
|
|
data: {
|
|
|
|
securityTrainingUpdate: {
|
|
|
|
errors: ['something went wrong!'],
|
|
|
|
training: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|