Comparing version 0.2.13 to 0.2.14
@@ -23,2 +23,5 @@ "use strict"; | ||
const inCi = process.env['CI'] === 'true'; | ||
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () { | ||
yield fs_1.promises.rm(path_1.default.join(mockTestDir, environments_1.dbPathDir, environments_1.stateFileName), { force: true }); | ||
})); | ||
describe("dbpath envs", () => { | ||
@@ -33,7 +36,7 @@ it("should display the envs", () => __awaiter(void 0, void 0, void 0, function* () { | ||
yield fs_1.promises.rm(path_1.default.join(mockTestDir, environments_1.dbPathDir, environments_1.stateFileName), { force: true }); | ||
const expectedTestEnv = (0, files_1.readTestFile)(mockTestDir, 'env.test.expected.txt'); | ||
const expectedOracleEnv = (0, files_1.readTestFile)(mockTestDir, 'env.oracle.expected.txt'); | ||
const expectedDevEnv = (0, files_1.readTestFile)(mockTestDir, 'env.dev.expected.txt'); | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is dev"); //default | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env test`)).toEqual(expectedTestEnv); | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is test"); | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env oracle`)).toEqual(expectedOracleEnv); | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is oracle"); | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env dev`)).toEqual(expectedDevEnv); | ||
@@ -147,2 +150,9 @@ expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin envs`)).toContain("Current environment is dev"); | ||
})); | ||
it("should build up the results - execution with oracle", () => __awaiter(void 0, void 0, void 0, function* () { | ||
if (inCi) | ||
return; | ||
yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `admin env oracle`); | ||
const expected = (0, files_1.readTestFile)(mockTestDir, 'trace.execution.oracle.expected.txt'); | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `driver.mission.driver.audit -t`)).toEqual(expected); | ||
})); | ||
}); | ||
@@ -149,0 +159,0 @@ describe("scraping", () => { |
@@ -58,3 +58,3 @@ "use strict"; | ||
return ({ type: 'sql', sql, envName }); | ||
return (0, utils_1.mapErrorsK)((0, environments_1.dalFor)(env), (dal) => __awaiter(this, void 0, void 0, function* () { | ||
return (0, utils_1.mapErrorsK)(yield (0, environments_1.dalFor)(env), (dal) => __awaiter(this, void 0, void 0, function* () { | ||
return (0, dal_1.useDal)(dal, (d) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -61,0 +61,0 @@ const result = { type: 'res', res: yield dal.query(sql.join(' ')) }; |
{ | ||
"name": "dbpath", | ||
"description": "", | ||
"version": "0.2.13", | ||
"version": "0.2.14", | ||
"main": "dist/index", | ||
@@ -24,7 +24,7 @@ "types": "dist/index", | ||
"commander": "^10.0.0", | ||
"@dbpath/tables": "0.2.13", | ||
"@dbpath/pathparser": "0.2.13", | ||
"@dbpath/utils": "0.2.13", | ||
"@dbpath/files": "0.2.13", | ||
"@dbpath/environments": "0.2.13" | ||
"@dbpath/tables": "0.2.14", | ||
"@dbpath/pathparser": "0.2.14", | ||
"@dbpath/utils": "0.2.14", | ||
"@dbpath/files": "0.2.14", | ||
"@dbpath/environments": "0.2.14" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44930
641
+ Added@dbpath/config@0.2.14(transitive)
+ Added@dbpath/dal@0.2.14(transitive)
+ Added@dbpath/environments@0.2.14(transitive)
+ Added@dbpath/files@0.2.14(transitive)
+ Added@dbpath/fixtures@0.2.14(transitive)
+ Added@dbpath/mysql@0.2.14(transitive)
+ Added@dbpath/oracle@0.2.14(transitive)
+ Added@dbpath/pathparser@0.2.14(transitive)
+ Added@dbpath/postgres@0.2.14(transitive)
+ Added@dbpath/tables@0.2.14(transitive)
+ Added@dbpath/types@0.2.14(transitive)
+ Added@dbpath/utils@0.2.14(transitive)
- Removed@dbpath/config@0.2.13(transitive)
- Removed@dbpath/dal@0.2.13(transitive)
- Removed@dbpath/environments@0.2.13(transitive)
- Removed@dbpath/files@0.2.13(transitive)
- Removed@dbpath/fixtures@0.2.13(transitive)
- Removed@dbpath/mysql@0.2.13(transitive)
- Removed@dbpath/oracle@0.2.13(transitive)
- Removed@dbpath/pathparser@0.2.13(transitive)
- Removed@dbpath/postgres@0.2.13(transitive)
- Removed@dbpath/tables@0.2.13(transitive)
- Removed@dbpath/types@0.2.13(transitive)
- Removed@dbpath/utils@0.2.13(transitive)
Updated@dbpath/environments@0.2.14
Updated@dbpath/files@0.2.14
Updated@dbpath/pathparser@0.2.14
Updated@dbpath/tables@0.2.14
Updated@dbpath/utils@0.2.14