mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-13 13:55:14 +00:00
Tweaks to showing new version available
- Added frontend translation for english - Moved frontend api logic to hook and backend api space - Added swagger schema for the new api endpoint - Moved backend logic to its own internal file - Added user agent header to github api check - Added cypress integration test for version check api - Added a memory cache item from github check to avoid hitting it too much
This commit is contained in:
@@ -17,4 +17,12 @@ describe('Basic API checks', () => {
|
||||
expect(data.openapi).to.be.equal('3.1.0');
|
||||
});
|
||||
});
|
||||
|
||||
it('Should return a valid payload for version check', () => {
|
||||
cy.task('backendApiGet', {
|
||||
path: `/api/version/check?ts=${Date.now()}`,
|
||||
}).then((data) => {
|
||||
cy.validateSwaggerSchema('get', 200, '/version/check', data);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user