mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-05-30 16:51:39 -05:00
- split out cypress tests for plugins to be isolated - use updated testca image from proper location
29 lines
771 B
JavaScript
29 lines
771 B
JavaScript
/// <reference types="cypress" />
|
|
|
|
// Only tested once in the sqlite stack
|
|
|
|
describe('CertbotPlugins', { tags: '@isolated' }, () => {
|
|
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;
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|
|
});
|