mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-06 12:50:10 +00:00
Cypress test for Streams
and updated cypress + packages
This commit is contained in:
@@ -9,7 +9,7 @@ const internalHost = require('./host');
|
||||
const {castJsonIfNeed} = require('../lib/helpers');
|
||||
|
||||
function omissions () {
|
||||
return ['is_deleted'];
|
||||
return ['is_deleted', 'owner.is_deleted', 'certificate.is_deleted'];
|
||||
}
|
||||
|
||||
const internalStream = {
|
||||
|
@@ -8,6 +8,7 @@ const now = require('./now_helper');
|
||||
Model.knex(db);
|
||||
|
||||
const boolFields = [
|
||||
'enabled',
|
||||
'is_deleted',
|
||||
'tcp_forwarding',
|
||||
'udp_forwarding',
|
||||
|
@@ -20,8 +20,25 @@
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 65535,
|
||||
"if": {"properties": {"tcp_forwarding": {"const": true}}},
|
||||
"then": {"not": {"oneOf": [{"const": 80}, {"const": 443}]}}
|
||||
"if": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tcp_forwarding": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"not": {
|
||||
"oneOf": [
|
||||
{
|
||||
"const": 80
|
||||
}, {
|
||||
"const": 443
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"forwarding_host": {
|
||||
"anyOf": [
|
||||
@@ -60,6 +77,12 @@
|
||||
},
|
||||
"meta": {
|
||||
"type": "object"
|
||||
},
|
||||
"owner": {
|
||||
"$ref": "./user-object.json"
|
||||
},
|
||||
"certificate": {
|
||||
"$ref": "./certificate-object.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user