move tests into separate describe
This commit is contained in:
parent
43308ad2f3
commit
61f0f5be18
|
@ -50,13 +50,6 @@ describe("REST Integration", () => {
|
||||||
const BASE_URL = "https://myapi.com"
|
const BASE_URL = "https://myapi.com"
|
||||||
let config: any
|
let config: any
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await databaseTestProviders.s3.start()
|
|
||||||
})
|
|
||||||
|
|
||||||
afterAll(async () => {
|
|
||||||
await databaseTestProviders.s3.stop()
|
|
||||||
})
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
config = new TestConfiguration({
|
config = new TestConfiguration({
|
||||||
url: BASE_URL,
|
url: BASE_URL,
|
||||||
|
@ -632,6 +625,15 @@ describe("REST Integration", () => {
|
||||||
expect(calledConfig.agent.options.rejectUnauthorized).toBe(false)
|
expect(calledConfig.agent.options.rejectUnauthorized).toBe(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe("File Handling", () => {
|
||||||
|
beforeAll(async () => {
|
||||||
|
await databaseTestProviders.s3.start()
|
||||||
|
})
|
||||||
|
|
||||||
|
afterAll(async () => {
|
||||||
|
await databaseTestProviders.s3.stop()
|
||||||
|
})
|
||||||
|
|
||||||
it("uploads file to object store and returns signed URL", async () => {
|
it("uploads file to object store and returns signed URL", async () => {
|
||||||
const responseData = Buffer.from("teest file contnt")
|
const responseData = Buffer.from("teest file contnt")
|
||||||
const filename = "test.tar.gz"
|
const filename = "test.tar.gz"
|
||||||
|
@ -712,3 +714,4 @@ describe("REST Integration", () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue