Skip to content

Commit

Permalink
Merge pull request #1820 from hashicorp/fix-provider-add-integration-…
Browse files Browse the repository at this point in the history
…tests

fix(tests): ignore version check for provider add tests as they need to run with an older cdktf version with pre-built providers available
  • Loading branch information
DanielMSchmidt authored May 24, 2022
2 parents e109779 + fb56cc1 commit 91bef8d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion test/csharp/provider-add-command/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ describe("provider add command", () => {
describe("pre-built", () => {
let driver: TestDriver;
beforeEach(async () => {
driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script
driver = new TestDriver(__dirname, {
CDKTF_DIST: "",
DISABLE_VERSION_CHECK: "true",
}); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli
await driver.setupCsharpProject({
init: { additionalOptions: "--cdktf-version 0.10.4" },
});
Expand Down
5 changes: 4 additions & 1 deletion test/java/provider-add-command/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ describe("provider add command", () => {

describe("pre-built", () => {
beforeEach(async () => {
driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script
driver = new TestDriver(__dirname, {
CDKTF_DIST: "",
DISABLE_VERSION_CHECK: "true",
}); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli
await driver.setupJavaProject({
init: { additionalOptions: "--cdktf-version 0.10.4" },
});
Expand Down
10 changes: 8 additions & 2 deletions test/python/provider-add-command/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ describe("provider add command", () => {
describe("pre-built", () => {
describe("pipenv", () => {
beforeAll(async () => {
driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script
driver = new TestDriver(__dirname, {
CDKTF_DIST: "",
DISABLE_VERSION_CHECK: "true",
}); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli
await driver.setupPythonProject({
init: { additionalOptions: "--cdktf-version 0.10.4" },
});
Expand All @@ -31,7 +34,10 @@ describe("provider add command", () => {

describe("pip", () => {
beforeAll(async () => {
driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script
driver = new TestDriver(__dirname, {
CDKTF_DIST: "",
DISABLE_VERSION_CHECK: "true",
}); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli
await driver.setupPythonProject({
init: { additionalOptions: "--cdktf-version 0.10.4" },
});
Expand Down
5 changes: 4 additions & 1 deletion test/typescript/provider-add-command/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ describe("provider add command", () => {
describe("pre-built", () => {
let driver: TestDriver;
beforeEach(async () => {
driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script
driver = new TestDriver(__dirname, {
CDKTF_DIST: "",
DISABLE_VERSION_CHECK: "true",
}); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli
await driver.setupTypescriptProject({
init: { additionalOptions: "--cdktf-version 0.10.4" },
});
Expand Down

0 comments on commit 91bef8d

Please sign in to comment.