@apistudio/apim-cli
Version:
CLI for API Management Products
70 lines (65 loc) • 1.18 kB
text/typescript
/**
* Copyright IBM Corp. 2024, 2025
*/
export const validEnvironmentData = {
kind: 'environment',
metadata: {
name: 'TestPaymentsEnvironment',
version: '1.0.0',
tags: ['payEnv'],
namespace: 'default',
},
spec: {
variables: [
{
key: 'content-type',
value: 'application/json',
isSecret: true,
},
{
key: 'dogname',
value: 'tommy',
isSecret: true,
},
{
key: 'method',
value: 'POST',
isSecret: true,
},
],
},
};
export const validEnvironmentDataV2 = {
...validEnvironmentData,
metadata: {
...validEnvironmentData.metadata,
version: '2.0.0',
},
};
export const invalidMetadataTestSuite = {
kind: 'environment1',
metadata: {
namespace: 123,
name: 'Invalid',
version: '1.0.0',
},
spec: {},
};
export const invalidKindTestSuite = {
kind: 'foo',
metadata: {
namespace: '123',
name: 'Invalid',
version: '1.0.0',
},
spec: {},
};
export const incompleteTestSuite = {
kind: 'test',
metadata: {
// missing namespace
name: 'Incomplete',
version: '1.0.0',
},
spec: {},
};