fix(server): correct openapi response type for getServerLicense() (#11261)

* fix(server): correct openapi response type for getServerLicense()

* return 404 error when license doesn't exist

* update e2e test
This commit is contained in:
Michel Heusschen 2024-07-22 15:50:45 +02:00 committed by GitHub
parent 3d7a9d79da
commit 849bc6e3aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 36 additions and 14 deletions

View file

@ -254,7 +254,7 @@ describe('/server', () => {
.set('Authorization', `Bearer ${admin.accessToken}`)
.send(serverLicense);
const { status } = await request(app).get('/server/license').set('Authorization', `Bearer ${admin.accessToken}`);
expect(status).toBe(200);
expect(status).toBe(404);
});
});