mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-05-13 13:56:52 +00:00
Fix streams tests
This commit is contained in:
parent
5965a6c461
commit
57c2fa376a
1 changed files with 12 additions and 4 deletions
|
|
@ -45,7 +45,8 @@ describe('Streams', () => {
|
|||
certificate_id: 0,
|
||||
meta: {},
|
||||
tcp_forwarding: true,
|
||||
udp_forwarding: false
|
||||
udp_forwarding: false,
|
||||
enable_proxy_protocol: false
|
||||
}
|
||||
}).then((data) => {
|
||||
cy.validateSwaggerSchema('post', 201, '/nginx/streams', data);
|
||||
|
|
@ -54,6 +55,7 @@ describe('Streams', () => {
|
|||
expect(data).to.have.property('enabled', true);
|
||||
expect(data).to.have.property('tcp_forwarding', true);
|
||||
expect(data).to.have.property('udp_forwarding', false);
|
||||
expect(data).to.have.property('enable_proxy_protocol', false);
|
||||
|
||||
cy.exec('curl --noproxy -- http://website1.example.com:1500').then((result) => {
|
||||
expect(result.exitCode).to.eq(0);
|
||||
|
|
@ -73,7 +75,8 @@ describe('Streams', () => {
|
|||
certificate_id: 0,
|
||||
meta: {},
|
||||
tcp_forwarding: false,
|
||||
udp_forwarding: true
|
||||
udp_forwarding: true,
|
||||
enable_proxy_protocol: false
|
||||
}
|
||||
}).then((data) => {
|
||||
cy.validateSwaggerSchema('post', 201, '/nginx/streams', data);
|
||||
|
|
@ -82,6 +85,7 @@ describe('Streams', () => {
|
|||
expect(data).to.have.property('enabled', true);
|
||||
expect(data).to.have.property('tcp_forwarding', false);
|
||||
expect(data).to.have.property('udp_forwarding', true);
|
||||
expect(data).to.have.property('enable_proxy_protocol', false);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -96,7 +100,8 @@ describe('Streams', () => {
|
|||
certificate_id: 0,
|
||||
meta: {},
|
||||
tcp_forwarding: true,
|
||||
udp_forwarding: true
|
||||
udp_forwarding: true,
|
||||
enable_proxy_protocol: false
|
||||
}
|
||||
}).then((data) => {
|
||||
cy.validateSwaggerSchema('post', 201, '/nginx/streams', data);
|
||||
|
|
@ -105,6 +110,7 @@ describe('Streams', () => {
|
|||
expect(data).to.have.property('enabled', true);
|
||||
expect(data).to.have.property('tcp_forwarding', true);
|
||||
expect(data).to.have.property('udp_forwarding', true);
|
||||
expect(data).to.have.property('enable_proxy_protocol', false);
|
||||
|
||||
cy.exec('curl --noproxy -- http://website1.example.com:1502').then((result) => {
|
||||
expect(result.exitCode).to.eq(0);
|
||||
|
|
@ -153,7 +159,8 @@ describe('Streams', () => {
|
|||
certificate_id: certID,
|
||||
meta: {},
|
||||
tcp_forwarding: true,
|
||||
udp_forwarding: false
|
||||
udp_forwarding: false,
|
||||
enable_proxy_protocol: false
|
||||
}
|
||||
}).then((data) => {
|
||||
cy.validateSwaggerSchema('post', 201, '/nginx/streams', data);
|
||||
|
|
@ -163,6 +170,7 @@ describe('Streams', () => {
|
|||
expect(data).to.have.property('tcp_forwarding', true);
|
||||
expect(data).to.have.property('udp_forwarding', false);
|
||||
expect(data).to.have.property('certificate_id', certID);
|
||||
expect(data).to.have.property('enable_proxy_protocol', false);
|
||||
|
||||
// Check the ssl termination
|
||||
cy.task('log', '[testssl.sh] Running ...');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue