-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed additional hard-coded latest and pewpew strings
- Loading branch information
1 parent
0d32d85
commit c3f2099
Showing
12 changed files
with
69 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
import { AgentQueueDescription, LogLevel, PpaasTestMessage, TestMessage, log } from "../src/index"; | ||
import { | ||
AgentQueueDescription, | ||
LogLevel, | ||
PEWPEW_VERSION_LATEST, | ||
PpaasTestMessage, | ||
TestMessage, | ||
log | ||
} from "../src/index"; | ||
import { UNIT_TEST_FILENAME, UNIT_TEST_KEY_PREFIX } from "../test/s3.spec"; | ||
import { | ||
mockReceiveMessageAttributes, | ||
|
@@ -36,7 +43,7 @@ describe("PpaasTestMessage", () => { | |
}, | ||
restartOnFailure: true, | ||
bucketSizeMs: 60000, | ||
version: "latest", | ||
version: PEWPEW_VERSION_LATEST, | ||
additionalFiles: ["file1", "file2"], | ||
userId: "[email protected]", | ||
bypassParser: false | ||
|
@@ -45,7 +52,16 @@ describe("PpaasTestMessage", () => { | |
before(() => { | ||
mockSqs(); | ||
log("QUEUE_URL_TEST=" + [...QUEUE_URL_TEST], LogLevel.DEBUG); | ||
ppaasUnitTestMessage = new PPaasUnitTestMessage({ testId, s3Folder, yamlFile, testRunTimeMn, envVariables: {}, restartOnFailure: true, bucketSizeMs: 60000, version: "latest" }); | ||
ppaasUnitTestMessage = new PPaasUnitTestMessage({ | ||
testId, | ||
s3Folder, | ||
yamlFile, | ||
testRunTimeMn, | ||
envVariables: {}, | ||
restartOnFailure: true, | ||
bucketSizeMs: 60000, | ||
version: PEWPEW_VERSION_LATEST | ||
}); | ||
}); | ||
|
||
after(() => { | ||
|
@@ -102,7 +118,16 @@ describe("PpaasTestMessage", () => { | |
|
||
it("extendMessageVisibility should succeed", (done: Mocha.Done) => { | ||
if (ppaasTestMessage === undefined) { | ||
ppaasTestMessage = new PpaasTestMessage({ testId, s3Folder, yamlFile, testRunTimeMn, envVariables: {}, restartOnFailure: true, bucketSizeMs: 60000, version: "latest" }); | ||
ppaasTestMessage = new PpaasTestMessage({ | ||
testId, | ||
s3Folder, | ||
yamlFile, | ||
testRunTimeMn, | ||
envVariables: {}, | ||
restartOnFailure: true, | ||
bucketSizeMs: 60000, | ||
version: PEWPEW_VERSION_LATEST | ||
}); | ||
} | ||
if (ppaasTestMessage.receiptHandle === undefined) { | ||
ppaasTestMessage.receiptHandle = "unit-test-receipt-handle"; | ||
|
@@ -112,7 +137,16 @@ describe("PpaasTestMessage", () => { | |
|
||
it("deleteMessageFromQueue should succeed", (done: Mocha.Done) => { | ||
if (ppaasTestMessage === undefined) { | ||
ppaasTestMessage = new PpaasTestMessage({ testId, s3Folder, yamlFile, testRunTimeMn, envVariables: {}, restartOnFailure: true, bucketSizeMs: 60000, version: "latest" }); | ||
ppaasTestMessage = new PpaasTestMessage({ | ||
testId, | ||
s3Folder, | ||
yamlFile, | ||
testRunTimeMn, | ||
envVariables: {}, | ||
restartOnFailure: true, | ||
bucketSizeMs: 60000, | ||
version: PEWPEW_VERSION_LATEST | ||
}); | ||
} | ||
if (ppaasTestMessage.receiptHandle === undefined) { | ||
ppaasTestMessage.receiptHandle = "unit-test-receipt-handle"; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ import { PpaasTestId } from "@fs/ppaas-common/dist/src/ppaastestid"; | |
import React from "react"; | ||
import { TestData } from "../../types/testmanager"; | ||
import { TestStatus } from "@fs/ppaas-common/dist/types"; | ||
import { latestPewPewVersion } from "../../pages/api/util/clientutil"; | ||
|
||
/** | ||
* Developing and visually testing components in isolation before composing them in your app is useful. | ||
|
@@ -40,7 +41,7 @@ const fullTest: Required<TestData> = { | |
lastUpdated: new Date(Date.now() - 300000), | ||
lastChecked: new Date(Date.now() - 100000), | ||
errors: ["error1", "error2", "error3"], | ||
version: "latest", | ||
version: latestPewPewVersion, | ||
queueName: "unittest", | ||
userId: "[email protected]" | ||
}; | ||
|
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