mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-27 08:27:55 +01:00
Tests: install mkcert before generating
This commit is contained in:
1 parent
11955e5dff
commit
dff978a63c
1 file changed
+2
-3
@@ -159,12 +159,11 @@ Cypress.Commands.add('waitForCertificateStatus', (token, certID, expected, timeo
|
|||||||
// for testing and are in a known state.
|
// for testing and are in a known state.
|
||||||
Cypress.Commands.add('createCustomCerts', () => {
|
Cypress.Commands.add('createCustomCerts', () => {
|
||||||
cy.task('getFixturesFolder').then((fixturesFolder) => {
|
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`)
|
cy.exec(`mkcert -cert-file=${fixturesFolder}/test.example.com.pem -key-file=${fixturesFolder}/test.example.com-key.pem test.example.com`)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
expect(result.exitCode).to.eq(0);
|
expect(result.exitCode).to.eq(0);
|
||||||
// Install CA
|
|
||||||
cy.exec('mkcert -install').then((result) => {
|
|
||||||
expect(result.exitCode).to.eq(0);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user