78 lines
1.6 KiB
JavaScript
78 lines
1.6 KiB
JavaScript
export const testProjectPath = 'foo/bar';
|
|
|
|
export const textProviderIds = [101, 102];
|
|
|
|
export const securityTrainingProviders = [
|
|
{
|
|
id: textProviderIds[0],
|
|
name: 'Vendor Name 1',
|
|
description: 'Interactive developer security education',
|
|
url: 'https://www.example.org/security/training',
|
|
isEnabled: false,
|
|
isPrimary: false,
|
|
},
|
|
{
|
|
id: textProviderIds[1],
|
|
name: 'Vendor Name 2',
|
|
description: 'Security training with guide and learning pathways.',
|
|
url: 'https://www.vendornametwo.com/',
|
|
isEnabled: true,
|
|
isPrimary: false,
|
|
},
|
|
];
|
|
|
|
export const securityTrainingProvidersResponse = {
|
|
data: {
|
|
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',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export const updateSecurityTrainingProvidersResponse = {
|
|
data: {
|
|
securityTrainingUpdate: {
|
|
errors: [],
|
|
training: {
|
|
id: 101,
|
|
name: 'Acme',
|
|
isEnabled: true,
|
|
isPrimary: false,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export const updateSecurityTrainingProvidersErrorResponse = {
|
|
data: {
|
|
securityTrainingUpdate: {
|
|
errors: ['something went wrong!'],
|
|
training: null,
|
|
},
|
|
},
|
|
};
|