2023-11-10 12:06:40 +03:00
|
|
|
import { EXEC_TYPE } from "../../src/core/model/exec_error_model";
|
2023-11-28 18:34:41 +03:00
|
|
|
import { IPipeline, IssueType, StackGenerateType } from "../../src/core/model/process_model";
|
2023-12-03 16:16:08 +03:00
|
|
|
import { TriggerType } from "../../src/features/triggers/models/trigger_database_model";
|
2023-11-10 12:06:40 +03:00
|
|
|
|
2023-11-28 18:34:41 +03:00
|
|
|
export const mockSimplePipeline: IPipeline[] = [
|
2023-11-10 12:06:40 +03:00
|
|
|
{
|
|
|
|
process: {
|
|
|
|
type: EXEC_TYPE.EXEC,
|
|
|
|
command: `nix run gitlab:robossembler/nix-robossembler-overlay#test-script '{
|
|
|
|
"filesMeta":[
|
|
|
|
{"type":"folder","name":"example", "path": null,"rewrite":true}
|
|
|
|
],
|
|
|
|
"path":"$PATH"
|
|
|
|
}'`,
|
|
|
|
isGenerating: true,
|
|
|
|
isLocaleCode: false,
|
|
|
|
issueType: IssueType.WARNING,
|
|
|
|
},
|
|
|
|
trigger: {
|
2023-12-03 16:16:08 +03:00
|
|
|
type: TriggerType.PROCESS,
|
|
|
|
value: [""],
|
2023-11-10 12:06:40 +03:00
|
|
|
},
|
|
|
|
env: null,
|
|
|
|
stackGenerateType: StackGenerateType.SINGLETON,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
process: {
|
|
|
|
type: EXEC_TYPE.EXEC,
|
|
|
|
command: `nix run gitlab:robossembler/nix-robossembler-overlay#test-script '{
|
|
|
|
"filesMeta":[
|
|
|
|
{"type":"file","name":"1.txt", "path":"example","rewrite":true}
|
|
|
|
],
|
|
|
|
"path":"$PATH"
|
|
|
|
}'`,
|
|
|
|
isGenerating: true,
|
|
|
|
isLocaleCode: false,
|
|
|
|
issueType: IssueType.WARNING,
|
|
|
|
},
|
|
|
|
trigger: null,
|
|
|
|
env: null,
|
|
|
|
stackGenerateType: StackGenerateType.SINGLETON,
|
|
|
|
},
|
|
|
|
];
|
2023-12-03 16:16:08 +03:00
|
|
|
// const p: IPipeline[] = [
|
|
|
|
// {
|
|
|
|
// process: {
|
|
|
|
// type: EXEC_TYPE.EXEC,
|
|
|
|
// command: `nix run gitlab:robossembler/nix-robossembler-overlay#test-script '{
|
|
|
|
// "filesMeta":[
|
|
|
|
// {"type":"folder","name":"example", "path": null,"rewrite":true}
|
|
|
|
// ],
|
|
|
|
// "path":"$PATH"
|
|
|
|
// }'`,
|
|
|
|
// isGenerating: true,
|
|
|
|
// isLocaleCode: false,
|
|
|
|
// issueType: IssueType.WARNING,
|
|
|
|
// },
|
|
|
|
// trigger: {
|
|
|
|
// type: TriggerType.FILE,
|
|
|
|
// value: ["context"],
|
|
|
|
// },
|
|
|
|
// env: null,
|
|
|
|
// stackGenerateType: StackGenerateType.SINGLETON,
|
|
|
|
// },
|
|
|
|
// ]
|