Remove global credentials attempt, didn't work.
This commit is contained in:
parent
9ada43371e
commit
9cbef46512
|
@ -3,12 +3,6 @@ import * as matchers from "jest-extended"
|
||||||
import { env as coreEnv, timers } from "@budibase/backend-core"
|
import { env as coreEnv, timers } from "@budibase/backend-core"
|
||||||
import { testContainerUtils } from "@budibase/backend-core/tests"
|
import { testContainerUtils } from "@budibase/backend-core/tests"
|
||||||
import nock from "nock"
|
import nock from "nock"
|
||||||
import AWS from "aws-sdk"
|
|
||||||
|
|
||||||
// Prevent accidental use of real AWS credentials
|
|
||||||
AWS.config.update({
|
|
||||||
credentialProvider: new AWS.CredentialProviderChain([]),
|
|
||||||
})
|
|
||||||
|
|
||||||
expect.extend(matchers)
|
expect.extend(matchers)
|
||||||
if (!process.env.CI) {
|
if (!process.env.CI) {
|
||||||
|
|
|
@ -2,17 +2,11 @@ import { mocks, testContainerUtils } from "@budibase/backend-core/tests"
|
||||||
import env from "../environment"
|
import env from "../environment"
|
||||||
import { env as coreEnv, timers } from "@budibase/backend-core"
|
import { env as coreEnv, timers } from "@budibase/backend-core"
|
||||||
import nock from "nock"
|
import nock from "nock"
|
||||||
import AWS from "aws-sdk"
|
|
||||||
|
|
||||||
// mock all dates to 2020-01-01T00:00:00.000Z
|
// mock all dates to 2020-01-01T00:00:00.000Z
|
||||||
// use tk.reset() to use real dates in individual tests
|
// use tk.reset() to use real dates in individual tests
|
||||||
import tk from "timekeeper"
|
import tk from "timekeeper"
|
||||||
|
|
||||||
// Prevent accidental use of real AWS credentials
|
|
||||||
AWS.config.update({
|
|
||||||
credentialProvider: new AWS.CredentialProviderChain([]),
|
|
||||||
})
|
|
||||||
|
|
||||||
nock.disableNetConnect()
|
nock.disableNetConnect()
|
||||||
nock.enableNetConnect(host => {
|
nock.enableNetConnect(host => {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue