Files
nginx-proxy-manager/test/cypress/e2e/api/CertbotPlugins.cy.js
Jamie Curnow 7e9cc32f97 Fix cypress suite
- split out cypress tests for plugins to be isolated
- use updated testca image from proper location
2026-05-27 07:25:24 +10:00

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;
});
}
});
}
});
});
});