perf(ci): stop the integration and e2e jobs waiting on rook-ceph (#435)

This commit is contained in:
Antoine Lecompte
2026-08-07 13:40:51 +01:00
committed by GitHub
parent 519f662dab
commit 0e3f47a769
34 changed files with 1129 additions and 754 deletions
@@ -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();
});