mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 19:49:13 +02:00
Update the integration test libsonnet templates to assign a fixed IP address to the trusted-httpdetails service. This requires also assigning a fixed IP subnet to the docker network. Configure a route with a 'to' URL using https and this fixed IP address. Add a corresponding certificate with the IP address. Finally, add a test case that makes a request to this route.
20 lines
616 B
Jsonnet
20 lines
616 B
Jsonnet
local utils = import '../utils.libsonnet';
|
|
|
|
function(idp) utils.Merge([
|
|
(import '../backends/fortio.libsonnet')().compose,
|
|
(import '../backends/httpdetails.libsonnet')().compose,
|
|
(import '../backends/mock-idp.libsonnet')(idp).compose,
|
|
(import '../backends/pomerium.libsonnet')('multi', idp).compose,
|
|
(import '../backends/postgres.libsonnet')().compose,
|
|
(import '../backends/verify.libsonnet')('multi').compose,
|
|
(import '../backends/websocket-echo.libsonnet')().compose,
|
|
{
|
|
networks: {
|
|
main: {
|
|
ipam: {
|
|
config: [{subnet: "172.20.0.0/16"}],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
])
|