mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-02-01 08:22:53 +00:00
Ugh cypress changed their exec result format.
This commit is contained in:
@@ -24,10 +24,10 @@ describe('Streams', () => {
|
|||||||
|
|
||||||
// Create a custom cert pair
|
// Create a custom cert pair
|
||||||
cy.exec('mkcert -cert-file=/test/cypress/fixtures/website1.pem -key-file=/test/cypress/fixtures/website1.key.pem website1.example.com').then((result) => {
|
cy.exec('mkcert -cert-file=/test/cypress/fixtures/website1.pem -key-file=/test/cypress/fixtures/website1.key.pem website1.example.com').then((result) => {
|
||||||
expect(result.code).to.eq(0);
|
expect(result.exitCode).to.eq(0);
|
||||||
// Install CA
|
// Install CA
|
||||||
cy.exec('mkcert -install').then((result) => {
|
cy.exec('mkcert -install').then((result) => {
|
||||||
expect(result.code).to.eq(0);
|
expect(result.exitCode).to.eq(0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ describe('Streams', () => {
|
|||||||
expect(data).to.have.property('udp_forwarding', false);
|
expect(data).to.have.property('udp_forwarding', false);
|
||||||
|
|
||||||
cy.exec('curl --noproxy -- http://website1.example.com:1500').then((result) => {
|
cy.exec('curl --noproxy -- http://website1.example.com:1500').then((result) => {
|
||||||
expect(result.code).to.eq(0);
|
expect(result.exitCode).to.eq(0);
|
||||||
expect(result.stdout).to.contain('yay it works');
|
expect(result.stdout).to.contain('yay it works');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -107,7 +107,7 @@ describe('Streams', () => {
|
|||||||
expect(data).to.have.property('udp_forwarding', true);
|
expect(data).to.have.property('udp_forwarding', true);
|
||||||
|
|
||||||
cy.exec('curl --noproxy -- http://website1.example.com:1502').then((result) => {
|
cy.exec('curl --noproxy -- http://website1.example.com:1502').then((result) => {
|
||||||
expect(result.code).to.eq(0);
|
expect(result.exitCode).to.eq(0);
|
||||||
expect(result.stdout).to.contain('yay it works');
|
expect(result.stdout).to.contain('yay it works');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user