Skip to content

Commit

Permalink
remove no-auth cases as tests doesnt support it for now
Browse files Browse the repository at this point in the history
  • Loading branch information
abrl91 committed Apr 5, 2024
1 parent 839fc90 commit 97285b6
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 2,740 deletions.
9 changes: 1 addition & 8 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ import { cloneDeep } from "lodash";

const pluginCombinations: Record<PluginCombinationName, PluginInstallation[]> =
{
[PluginCombinationName.POSTGRES_NO_AUTH]: [postgres],
[PluginCombinationName.POSTGRES_BASIC]: [postgres, authCore, authBasic],
[PluginCombinationName.POSTGRES_JWT]: [postgres, authCore, authJWT],
[PluginCombinationName.POSTGRES_SAML]: [postgres, authSAML],
[PluginCombinationName.MYSQL_NO_AUTH]: [mysql],
[PluginCombinationName.MYSQL_BASIC]: [mysql, authCore, authBasic],
[PluginCombinationName.MYSQL_JWT]: [mysql, authCore, authJWT],
};
Expand All @@ -44,8 +42,7 @@ const baseDsgResourceData: DSGResourceData = {
roles,
resourceInfo,
resourceType: EnumResourceType.Service,
pluginInstallations:
pluginCombinations[PluginCombinationName.POSTGRES_NO_AUTH],
pluginInstallations: pluginCombinations[PluginCombinationName.POSTGRES_BASIC],
moduleActions: customActions,
moduleContainers,
moduleDtos,
Expand All @@ -56,10 +53,6 @@ function handlePluginCases(plugins: PluginInstallation[]): DSGResourceData {
let mockedResourceInfo = cloneDeep(resourceInfo);
// remove entity field types that are not supported by mysql
if (plugins.some((plugin) => plugin === mysql)) {
console.log(
plugins,
"remove entity field types that are not supported by mysql"
);
mockedEntities = mockedEntities.map((entity) => {
entity.fields = entity.fields.filter(
(field) => field.dataType !== EnumDataType.MultiSelectOptionSet
Expand Down
2 changes: 0 additions & 2 deletions test-cases/mysql-no-auth/dsg.env

This file was deleted.

Loading

0 comments on commit 97285b6

Please sign in to comment.