review app
This commit is contained in:
parent
4a35a3211f
commit
f525a76f6e
38 changed files with 268 additions and 229 deletions
|
@ -1,6 +1,6 @@
|
|||
import { EXEC_TYPE } from "../../src/core/model/exec_error_model";
|
||||
import { IPipeline, IssueType, StackGenerateType } from "../../src/core/model/process_model";
|
||||
import { TriggerType } from "../../src/features/triggers/trigger_model";
|
||||
import { TriggerType } from "../../src/features/triggers/models/trigger_database_model";
|
||||
|
||||
export const mockSimplePipeline: IPipeline[] = [
|
||||
{
|
||||
|
@ -17,8 +17,8 @@ export const mockSimplePipeline: IPipeline[] = [
|
|||
issueType: IssueType.WARNING,
|
||||
},
|
||||
trigger: {
|
||||
type: TriggerType.FILE,
|
||||
value: ["context"],
|
||||
type: TriggerType.PROCESS,
|
||||
value: [""],
|
||||
},
|
||||
env: null,
|
||||
stackGenerateType: StackGenerateType.SINGLETON,
|
||||
|
@ -41,3 +41,25 @@ export const mockSimplePipeline: IPipeline[] = [
|
|||
stackGenerateType: StackGenerateType.SINGLETON,
|
||||
},
|
||||
];
|
||||
// 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,
|
||||
// },
|
||||
// ]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { EventsFileChanger, MetaDataFileManagerModel } from "../../src/core/model/meta_data_file_manager_model";
|
||||
|
||||
import { TriggerService } from "../../src/core/services/trigger_service";
|
||||
import { TriggerType } from "../../src/features/triggers/trigger_model";
|
||||
import { TriggerType } from "../../src/features/triggers/models/trigger_database_model";
|
||||
import { assert } from "../test";
|
||||
abstract class TriggerTest {
|
||||
abstract test(): Promise<boolean>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue