@red-hat-developer-hub/e2e-test-utils 1.1.45 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,8 +33,7 @@ export declare function isNightlyJob(): boolean;
|
|
|
33
33
|
* {{inherit}} tag resolution vs which need full OCI refs from metadata.
|
|
34
34
|
*
|
|
35
35
|
* Branch is determined by RELEASE_BRANCH_NAME (set by OpenShift CI),
|
|
36
|
-
* defaulting to "main" for local development.
|
|
37
|
-
* lives in the rhdh repo; all other branches use rhdh-plugin-export-overlays.
|
|
36
|
+
* defaulting to "main" for local development.
|
|
38
37
|
*/
|
|
39
38
|
export declare function fetchDefaultPackages(): Promise<Set<string>>;
|
|
40
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-metadata.d.ts","sourceRoot":"","sources":["../../src/utils/plugin-metadata.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAaD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAID;;;;;;;;;GASG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAqBtC;
|
|
1
|
+
{"version":3,"file":"plug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AM,EAAE,cAAc,CAAC,CAAC,CAwBtC;AA2JD;;;;;;;GAOG;AACH;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAMT;AAoHD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAW7E;AAED;;;;;;;GAOG;AACH,wBAAsB,2BAA2B,CAC/C,YAAY,GAAE,MAA8B,GAC3C,OAAO,CAAC,oBAAoB,CAAC,CAwB/B;AA2BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,oBAAoB,EAC5B,YAAY,GAAE,MAA8B,EAC5C,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,OAAO,CAAC,oBAAoB,CAAC,CAsC/B"}
|
|
@@ -34,8 +34,6 @@ export function isNightlyJob() {
|
|
|
34
34
|
}
|
|
35
35
|
// ── Default Packages (DPDY) ──────────────────────────────────────────────────
|
|
36
36
|
const DEFAULT_PACKAGES_BASE_URL = "https://raw.githubusercontent.com/redhat-developer/rhdh-plugin-export-overlays/refs/heads";
|
|
37
|
-
// release-1.10 still hosts default.packages.yaml in the rhdh repo (pre-migration)
|
|
38
|
-
const LEGACY_DEFAULT_PACKAGES_BASE_URL = "https://raw.githubusercontent.com/redhat-developer/rhdh/refs/heads";
|
|
39
37
|
const DEFAULT_DPDY_OCI_REGISTRY = "registry.access.redhat.com/rhdh";
|
|
40
38
|
/**
|
|
41
39
|
* Fetches the list of packages from default.packages.yaml (source for the
|
|
@@ -44,8 +42,7 @@ const DEFAULT_DPDY_OCI_REGISTRY = "registry.access.redhat.com/rhdh";
|
|
|
44
42
|
* {{inherit}} tag resolution vs which need full OCI refs from metadata.
|
|
45
43
|
*
|
|
46
44
|
* Branch is determined by RELEASE_BRANCH_NAME (set by OpenShift CI),
|
|
47
|
-
* defaulting to "main" for local development.
|
|
48
|
-
* lives in the rhdh repo; all other branches use rhdh-plugin-export-overlays.
|
|
45
|
+
* defaulting to "main" for local development.
|
|
49
46
|
*/
|
|
50
47
|
export async function fetchDefaultPackages() {
|
|
51
48
|
const branch = process.env.RELEASE_BRANCH_NAME;
|
|
@@ -56,10 +53,7 @@ export async function fetchDefaultPackages() {
|
|
|
56
53
|
console.log("[PluginMetadata] RELEASE_BRANCH_NAME not set — defaulting to 'main' (local dev)");
|
|
57
54
|
}
|
|
58
55
|
const resolvedBranch = branch || "main";
|
|
59
|
-
const
|
|
60
|
-
? LEGACY_DEFAULT_PACKAGES_BASE_URL
|
|
61
|
-
: DEFAULT_PACKAGES_BASE_URL;
|
|
62
|
-
const url = `${baseUrl}/${resolvedBranch}/default.packages.yaml`;
|
|
56
|
+
const url = `${DEFAULT_PACKAGES_BASE_URL}/${resolvedBranch}/default.packages.yaml`;
|
|
63
57
|
console.log(`[PluginMetadata] Fetching default packages from ${url} (branch: ${resolvedBranch})...`);
|
|
64
58
|
const response = await fetch(url);
|
|
65
59
|
if (!response.ok) {
|