-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(e2e): rhidp-5094 - [Test automation] restore skipped e2e tests …
…nov2024 (#2058) * test * lint fixes
- Loading branch information
1 parent
ab08160
commit ed0ef2e
Showing
13 changed files
with
132 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,9 @@ global: | |
- package: '@pataknight/[email protected]' | ||
disabled: false | ||
integrity: sha512-srTnFDYn3Ett6z33bX4nL2NQY8wqux8TkpgBQNsE8S73nMfsor/wAdmVgHL+xW7pxQ09DT4YTdaG3GkH+cyyNQ== | ||
- package: '@backstage-community/[email protected]' | ||
disabled: false | ||
integrity: sha512-agmfwxHkZPy0zaXzjMKY9Us9l7J2og+z7p2lDWQBmlJ1KZRo6OBQdnlG1mTEryfEEl/bx5Ko+f1PhFj2/BmiIQ== | ||
|
||
# -- Upstream Backstage [chart configuration](https://github.com/backstage/charts/blob/main/charts/backstage/values.yaml) | ||
upstream: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,11 +112,12 @@ function parseYamlFile<T>(filePath: string): T { | |
function validateDynamicPluginsConfig( | ||
config: DynamicPluginsConfig, | ||
wrapperDirNames: string[], | ||
externalDynamicPlugin?: DynamicPluginConfig, | ||
externalDynamicPlugins?: DynamicPluginConfig[], | ||
): void { | ||
const dynamicPluginsPackageNames = config.plugins.reduce( | ||
(packageNames, plugin) => { | ||
if (externalDynamicPlugin?.package !== plugin.package) { | ||
const isExternalPlugin = externalDynamicPlugins?.some((externalDynamicPlugin) => externalDynamicPlugin.package === plugin.package) | ||
if (!isExternalPlugin) { | ||
// We want the third index ['.', 'dynamic-plugins', 'dist', 'backstage-plugin-scaffolder-backend-module-github-dynamic'] | ||
packageNames.push(plugin.package.split("/")[3]); | ||
} | ||
|
@@ -188,8 +189,8 @@ describe("Dynamic Plugin Wrappers", () => { | |
); | ||
|
||
it.each(frontendPackageJsonFiles)( | ||
"$name should have scalprum config in the `package.json`", | ||
({ name, scalprum }) => { | ||
"should have scalprum config in the `package.json`", | ||
({ scalprum }) => { | ||
expect(scalprum).toBeTruthy(); | ||
}, | ||
); | ||
|
@@ -240,16 +241,20 @@ describe("Dynamic Plugin Wrappers", () => { | |
IBM_VALUES_SHOWCASE_CONFIG_FILE, | ||
); | ||
|
||
const externalDynamicPluginConfig: DynamicPluginConfig = { | ||
const externalDynamicPluginsConfig: DynamicPluginConfig[] = [{ | ||
package: "@pataknight/[email protected]", | ||
disabled: false, | ||
}; | ||
}, | ||
{ | ||
package: "@backstage-community/[email protected]" | ||
} | ||
]; | ||
|
||
it("should have a corresponding package", () => { | ||
validateDynamicPluginsConfig( | ||
config.global.dynamic, | ||
wrapperDirNames, | ||
externalDynamicPluginConfig, | ||
externalDynamicPluginsConfig, | ||
); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters