2023-12-03 16:20:52 +03:00
|
|
|
import { EXEC_TYPE } from "../../src/core/models/exec_error_model";
|
|
|
|
import { IPipeline, IssueType, StackGenerateType } from "../../src/core/models/process_model";
|
2024-04-09 16:31:25 +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,
|
|
|
|
},
|
|
|
|
];
|