Skip to content

Commit

Permalink
test: support real key
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan_Chen committed Jul 30, 2024
1 parent ec0e3ca commit e235bd0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe("Local Debug Tests", function () {
const installCmd = `npm install`;
const { success } = await Executor.execute(
installCmd,
localDebugTestContext.testRootFolder,
projectPath,
process.env,
undefined,
"npm warn"
Expand All @@ -113,7 +113,7 @@ describe("Local Debug Tests", function () {
const insertDataCmd = "npm run indexer:create";
const { success: insertDataSuccess } = await Executor.execute(
insertDataCmd,
localDebugTestContext.testRootFolder
projectPath
);
if (!insertDataSuccess) {
throw new Error("Failed to insert data");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ describe("Local Debug Tests", function () {
if (isRealKey) {
console.log("Start to create azure search data");
const installCmd = `python ${projectPath}/src/indexers/setup.py`;
const { success } = await Executor.execute(
installCmd,
localDebugTestContext.testRootFolder
);
const { success } = await Executor.execute(installCmd, projectPath);
if (!success) {
throw new Error("Failed to install packages");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("Local Debug Tests", function () {
const installCmd = `npm install`;
const { success } = await Executor.execute(
installCmd,
localDebugTestContext.testRootFolder,
projectPath,
process.env,
undefined,
"npm warn"
Expand All @@ -114,7 +114,7 @@ describe("Local Debug Tests", function () {
const insertDataCmd = "npm run indexer:create";
const { success: insertDataSuccess } = await Executor.execute(
insertDataCmd,
localDebugTestContext.testRootFolder
projectPath
);
if (!insertDataSuccess) {
throw new Error("Failed to insert data");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe("Remote debug Tests", function () {
const installCmd = `npm install`;
const { success } = await Executor.execute(
installCmd,
remoteDebugTestContext.testRootFolder,
projectPath,
process.env,
undefined,
"npm warn"
Expand All @@ -135,7 +135,7 @@ describe("Remote debug Tests", function () {
const insertDataCmd = "npm run indexer:create";
const { success: insertDataSuccess } = await Executor.execute(
insertDataCmd,
remoteDebugTestContext.testRootFolder
projectPath
);
if (!insertDataSuccess) {
throw new Error("Failed to insert data");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ describe("Remote debug Tests", function () {
if (isRealKey) {
console.log("Start to create azure search data");
const installCmd = `python ${projectPath}/src/indexers/setup.py`;
const { success } = await Executor.execute(
installCmd,
remoteDebugTestContext.testRootFolder
);
const { success } = await Executor.execute(installCmd, projectPath);
if (!success) {
throw new Error("Failed to install packages");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe("Remote debug Tests", function () {
const installCmd = `npm install`;
const { success } = await Executor.execute(
installCmd,
remoteDebugTestContext.testRootFolder,
projectPath,
process.env,
undefined,
"npm warn"
Expand All @@ -136,7 +136,7 @@ describe("Remote debug Tests", function () {
const insertDataCmd = "npm run indexer:create";
const { success: insertDataSuccess } = await Executor.execute(
insertDataCmd,
remoteDebugTestContext.testRootFolder
projectPath
);
if (!insertDataSuccess) {
throw new Error("Failed to insert data");
Expand Down

0 comments on commit e235bd0

Please sign in to comment.