Linked pipeline autoselect

This commit is contained in:
Dunemask 2022-08-10 12:39:09 +00:00
parent 90d9bc3fcc
commit f17c7e01f5
9 changed files with 312 additions and 40 deletions

View file

@ -17,7 +17,7 @@ const testsMock = () => {
name: "single",
class: "single.js",
image: "node:latest",
isCompound: false,
isPipeline: false,
type: "api",
description: "This is a single test",
tags: ["cron_1hour", "reg_us", "env_ci", "proj_core", "skip_alt"],
@ -30,7 +30,7 @@ const testsMock = () => {
name: "failing",
class: "failing.js",
image: "node:latest",
isCompound: false,
isPipeline: false,
type: "ui",
description: "This is a failing test",
tags: ["cron_1hour", "reg_us", "env_ci", "proj_core"],
@ -43,7 +43,7 @@ const testsMock = () => {
name: "primary",
class: "primary.js",
image: "node:latest",
isCompound: true,
isPipeline: true,
type: "api",
description: "This is a primary test",
tags: [
@ -51,7 +51,7 @@ const testsMock = () => {
"reg_us",
"proj_core",
"skip_alt",
"compound_secondary",
"pipeline_secondary1",
],
path: "tests/assets/suite/primary.js",
created: Date.now(),
@ -59,27 +59,72 @@ const testsMock = () => {
},
{
id: 3,
name: "secondary",
class: "secondary.js",
name: "secondary1",
class: "secondary1.js",
image: "node:latest",
isCompound: true,
isPipeline: true,
type: "api",
description: "This is a secondary test",
tags: ["cron_1hour", "reg_us", "proj_core", "compound_tertiary"],
path: "tests/assets/suite/secondary.js",
tags: [
"cron_1hour",
"reg_us",
"proj_core",
"compound_tertiary1",
"compound_tertiary2",
],
path: "tests/assets/suite/secondary1.js",
created: Date.now(),
mergeRequest: "https://example.com",
},
{
id: 4,
name: "tertiary",
class: "tertiary.js",
name: "secondary2",
class: "secondary2.js",
image: "node:latest",
isCompound: true,
isPipeline: true,
type: "api",
description: "This is a single test",
description: "This is a secondary2 test",
tags: ["cron_1hour", "reg_us", "proj_core", "compound_tertiary3"],
path: "tests/assets/suite/secondary2.js",
created: Date.now(),
mergeRequest: "https://example.com",
},
{
id: 5,
name: "tertiary1",
class: "tertiary1.js",
image: "node:latest",
isPipeline: true,
type: "api",
description: "This is a third test",
tags: ["cron_1hour", "reg_us", "proj_core"],
path: "tests/assets/suite/tertiary.js",
path: "tests/assets/suite/tertiary1.js",
created: Date.now(),
mergeRequest: "https://example.com",
},
{
id: 6,
name: "tertiary2",
class: "tertiary2.js",
image: "node:latest",
isPipeline: true,
type: "api",
description: "This is a third2 test",
tags: ["cron_1hour", "reg_us", "proj_core"],
path: "tests/assets/suite/tertiary2.js",
created: Date.now(),
mergeRequest: "https://example.com",
},
{
id: 5,
name: "tertiary3",
class: "tertiary3.js",
image: "node:latest",
isPipeline: true,
type: "api",
description: "This is a third3 test",
tags: ["cron_1hour", "reg_us", "proj_core"],
path: "tests/assets/suite/tertiary3.js",
created: Date.now(),
mergeRequest: "https://example.com",
},

View file

@ -22,12 +22,12 @@ const failingMock = () => {
dailyFails: 12,
screenshot: "https://picsum.photos/1920/1080",
recentResults: [1, 0, 0, 1, 0],
isCompound: false,
isPipeline: false,
failedMessage: `Some Test FailureMessage`,
},
{
name: "secondary",
class: "secondary.js",
name: "secondary1",
class: "secondary1.js",
timestamp: new Date().toJSON(),
method: "FAKEMETHOD",
cron: "1hour",
@ -35,8 +35,8 @@ const failingMock = () => {
dailyFails: 1,
screenshot: "https://picsum.photos/1920/1080",
recentResults: [1, 0, 0, 1, 0],
isCompound: true,
failedMessage: `Some Test FailureMessage from Secondary`,
isPipeline: true,
failedMessage: `Some Test FailureMessage from Secondary1`,
},
];
};