Skip to content

Commit

Permalink
FIX remove legacyForwarding true in test that does not need it
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan committed Aug 9, 2024
1 parent 81193f3 commit 9c76a38
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 83 deletions.
3 changes: 1 addition & 2 deletions test/functionalTest/cases/0501_cors/registration_cors.test
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "active"
}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "active"
}'
Expand All @@ -88,8 +87,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "active"
}'
Expand Down
12 changes: 4 additions & 8 deletions test/functionalTest/cases/3004_v2_reg_create/v2_reg_create.test
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "inactive"
}'
Expand Down Expand Up @@ -100,7 +99,7 @@ HTTP/1.1 200 OK
Date: REGEX(.*)
Fiware-Correlator: REGEX([0-9a-f\-]{36})
Content-Type: application/json
Content-Length: 311
Content-Length: 312

{
"dataProvided": {
Expand All @@ -125,7 +124,7 @@ Content-Length: 311
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "inactive"
Expand All @@ -138,13 +137,10 @@ HTTP/1.1 200 OK
Date: REGEX(.*)
Fiware-Correlator: REGEX([0-9a-f\-]{36})
Content-Type: application/json
Content-Length: 250
Content-Length: 206

{
"counters": {
"deprecatedFeatures": {
"ngsiv1Forwarding": 2
},
"jsonRequests": 1,
"noPayloadRequests": 2,
"requests": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": 4
}'
Expand All @@ -802,8 +801,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "green"
}'
Expand Down Expand Up @@ -854,8 +852,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
}
}'
orionCurl --url /v2/registrations --payload "$payload"
Expand All @@ -879,8 +876,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
}
}'
orionCurl --url /v2/registrations --payload "$payload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "active"
}'
Expand All @@ -86,8 +85,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "active"
}'
Expand All @@ -112,8 +110,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "active"
}'
Expand All @@ -138,8 +135,7 @@ payload='{
"provider": {
"http": {
"url": "http://localhost:'${CP1_PORT}'/v2"
},
"legacyForwarding": true
}
},
"status": "active"
}'
Expand Down Expand Up @@ -223,7 +219,7 @@ HTTP/1.1 200 OK
Date: REGEX(.*)
Fiware-Correlator: REGEX([0-9a-f\-]{36})
Content-Type: application/json
Content-Length: 1053
Content-Length: 1057

[
{
Expand All @@ -244,7 +240,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -267,7 +263,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -290,7 +286,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -313,7 +309,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -338,7 +334,7 @@ HTTP/1.1 200 OK
Date: REGEX(.*)
Fiware-Correlator: REGEX([0-9a-f\-]{36})
Content-Type: application/json
Content-Length: 264
Content-Length: 265

[
{
Expand All @@ -359,7 +355,7 @@ Content-Length: 264
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -373,7 +369,7 @@ HTTP/1.1 200 OK
Date: REGEX(.*)
Fiware-Correlator: REGEX([0-9a-f\-]{36})
Content-Type: application/json
Content-Length: 1053
Content-Length: 1057

[
{
Expand All @@ -394,7 +390,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -417,7 +413,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -440,7 +436,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand All @@ -463,7 +459,7 @@ Content-Length: 1053
"http": {
"url": "http://localhost:REGEX(\d+)/v2"
},
"legacyForwarding": true,
"legacyForwarding": false,
"supportedForwardingMode": "all"
},
"status": "active"
Expand Down
Loading

0 comments on commit 9c76a38

Please sign in to comment.