mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-21 13:52:59 +01:00
Testing mkcert in test suite
This commit is contained in:
1 parent
dff978a63c
commit
c354238c35
1 file changed
+2
-6
@@ -159,12 +159,8 @@ Cypress.Commands.add('waitForCertificateStatus', (token, certID, expected, timeo
|
||||
// for testing and are in a known state.
|
||||
Cypress.Commands.add('createCustomCerts', () => {
|
||||
cy.task('getFixturesFolder').then((fixturesFolder) => {
|
||||
cy.exec('mkcert -install').then((result) => {
|
||||
expect(result.exitCode).to.eq(0);
|
||||
cy.exec(`mkcert -cert-file=${fixturesFolder}/test.example.com.pem -key-file=${fixturesFolder}/test.example.com-key.pem test.example.com`)
|
||||
.then((result) => {
|
||||
expect(result.exitCode).to.eq(0);
|
||||
});
|
||||
cy.exec('mkcert -install', {failOnNonZeroExit: false}).then(() => {
|
||||
cy.exec(`mkcert -cert-file=${fixturesFolder}/test.example.com.pem -key-file=${fixturesFolder}/test.example.com-key.pem test.example.com`, {failOnNonZeroExit: false});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user