03c70e3902
- Adds request logging in debug mode for some endpoints - Moves certbot version determination to the startup scripts and removes bash script encapsulation when installing plugins - Revert loose domain validation, which was there for a specific reason addressing CVE's - Fix Cypress suite for cert generation - Adds Cypress test that iterates over the entire certbot plugins list and installs each one, ensuring at the very least that the install works - Fixed some plugins based on this - (!) Still some work to do on this, hostinger is still broken at least - Improved cypress tests for custom certs; they will generate on each run instead of being baked in. The baked ones were due to expire soon
29 lines
748 B
JavaScript
29 lines
748 B
JavaScript
/// <reference types="cypress" />
|
|
|
|
// Only tested once in the sqlite stack
|
|
|
|
describe('CertbotPlugins', () => {
|
|
it('Should install all certbot plugins', () => {
|
|
cy.env(['stack']).then(({ stack }) => {
|
|
cy.log(`CertbotPlugins.cy.js - Running tests for stack: ${stack}`);
|
|
if (stack === 'sqlite') {
|
|
cy.task('backendApiGet', {
|
|
path: '/api/ci/certbot-plugins',
|
|
}).then((data) => {
|
|
expect(data).to.be.an('object');
|
|
|
|
// Install each plugin
|
|
for (const plugin of Object.keys(data)) {
|
|
cy.log(`Installing plugin: ${plugin}`);
|
|
cy.task('backendApiPost', {
|
|
path: `/api/ci/certbot-plugins/${plugin}`,
|
|
}).then((result) => {
|
|
expect(result).to.be.true;
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|
|
});
|