mirror of
https://github.com/immich-app/yucca.git
synced 2026-09-30 21:37:50 +08:00
perf(ci): stop the integration and e2e jobs waiting on rook-ceph (#435)
This commit is contained in:
@@ -13,7 +13,7 @@ const authCookie = ['yucca-admin-sub=admin', 'yucca-admin-access-token=token'];
|
||||
describe('AllowlistController (e2e)', () => {
|
||||
let app: INestApplication<App>;
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
const moduleFixture: TestingModule = await Test.createTestingModule({
|
||||
imports,
|
||||
controllers,
|
||||
@@ -29,7 +29,13 @@ describe('AllowlistController (e2e)', () => {
|
||||
app.setGlobalPrefix('/api');
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
await app.init();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await app.close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import { testUtils } from './testUtils';
|
||||
describe('AuthController (e2e)', () => {
|
||||
let app: INestApplication<App>;
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
const moduleFixture: TestingModule = await Test.createTestingModule({
|
||||
imports,
|
||||
controllers,
|
||||
@@ -27,7 +27,13 @@ describe('AuthController (e2e)', () => {
|
||||
app.setGlobalPrefix('/api');
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
await app.init();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await app.close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ const authCookie = ['yucca-admin-sub=admin', 'yucca-admin-access-token=token'];
|
||||
describe('FeaturesController (e2e)', () => {
|
||||
let app: INestApplication<App>;
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
const moduleFixture: TestingModule = await Test.createTestingModule({
|
||||
imports,
|
||||
controllers,
|
||||
@@ -29,14 +29,16 @@ describe('FeaturesController (e2e)', () => {
|
||||
app.setGlobalPrefix('/api');
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
await app.init();
|
||||
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
afterAll(async () => {
|
||||
await app.close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
describe('GET /features', () => {
|
||||
it('requires authentication', async () => {
|
||||
await request(app.getHttpServer()).get('/api/features').expect(401);
|
||||
|
||||
@@ -13,7 +13,7 @@ const authCookie = ['yucca-admin-sub=admin', 'yucca-admin-access-token=token'];
|
||||
describe('RepositoryController (e2e)', () => {
|
||||
let app: INestApplication<App>;
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
const moduleFixture: TestingModule = await Test.createTestingModule({
|
||||
imports,
|
||||
controllers,
|
||||
@@ -29,7 +29,13 @@ describe('RepositoryController (e2e)', () => {
|
||||
app.setGlobalPrefix('/api');
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
await app.init();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await app.close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ const authCookie = ['yucca-admin-sub=admin', 'yucca-admin-access-token=token'];
|
||||
describe('Sessions (e2e)', () => {
|
||||
let app: INestApplication<App>;
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
const moduleFixture: TestingModule = await Test.createTestingModule({
|
||||
imports,
|
||||
controllers,
|
||||
@@ -29,7 +29,13 @@ describe('Sessions (e2e)', () => {
|
||||
app.setGlobalPrefix('/api');
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
await app.init();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await app.close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ const authCookie = ['yucca-admin-sub=admin', 'yucca-admin-access-token=token'];
|
||||
describe('SettingsController (e2e)', () => {
|
||||
let app: INestApplication<App>;
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
const moduleFixture: TestingModule = await Test.createTestingModule({
|
||||
imports,
|
||||
controllers,
|
||||
@@ -29,14 +29,16 @@ describe('SettingsController (e2e)', () => {
|
||||
app.setGlobalPrefix('/api');
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
await app.init();
|
||||
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
afterAll(async () => {
|
||||
await app.close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
it('requires authentication', async () => {
|
||||
await request(app.getHttpServer()).get('/api/settings').expect(401);
|
||||
await request(app.getHttpServer()).put('/api/settings/global').send({}).expect(401);
|
||||
|
||||
@@ -13,7 +13,7 @@ const authCookie = ['yucca-admin-sub=admin', 'yucca-admin-access-token=token'];
|
||||
describe('UserController (e2e)', () => {
|
||||
let app: INestApplication<App>;
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
const moduleFixture: TestingModule = await Test.createTestingModule({
|
||||
imports,
|
||||
controllers,
|
||||
@@ -29,7 +29,13 @@ describe('UserController (e2e)', () => {
|
||||
app.setGlobalPrefix('/api');
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
await app.init();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await app.close();
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await testUtils.resetDatabase();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user