diff options
| author | Fabian Grünbichler <f.gruenbichler@proxmox.com> | 2023-06-07 13:25:02 +0200 |
|---|---|---|
| committer | Fabian Grünbichler <f.gruenbichler@proxmox.com> | 2023-06-07 13:25:02 +0200 |
| commit | cbf906daae88a1e3bc67586359cffd47544d2045 (patch) | |
| tree | 8e0f5aa7d5c6894e25aed436766b6aadbdbdb093 | |
| parent | f048b8151314b82071376af759c17bf52df5b283 (diff) | |
fix tests for bookworm
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
27 files changed, 28 insertions, 1 deletions
diff --git a/src/test/dns/powerdns/expected.add_a_multiple_record.ipv4 b/src/test/dns/powerdns/expected.add_a_multiple_record.ipv4 index 0e5539f..846391a 100644 --- a/src/test/dns/powerdns/expected.add_a_multiple_record.ipv4 +++ b/src/test/dns/powerdns/expected.add_a_multiple_record.ipv4 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.add_a_multiple_record.ipv6 b/src/test/dns/powerdns/expected.add_a_multiple_record.ipv6 index e432e7b..7642dbb 100644 --- a/src/test/dns/powerdns/expected.add_a_multiple_record.ipv6 +++ b/src/test/dns/powerdns/expected.add_a_multiple_record.ipv6 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.add_a_record.ipv4 b/src/test/dns/powerdns/expected.add_a_record.ipv4 index 888d67f..c4bb573 100644 --- a/src/test/dns/powerdns/expected.add_a_record.ipv4 +++ b/src/test/dns/powerdns/expected.add_a_record.ipv4 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) - }, 'HTTP::Request' );
\ No newline at end of file + }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.add_a_record.ipv6 b/src/test/dns/powerdns/expected.add_a_record.ipv6 index bfeeab7..55706bf 100644 --- a/src/test/dns/powerdns/expected.add_a_record.ipv6 +++ b/src/test/dns/powerdns/expected.add_a_record.ipv6 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.add_ptr_record.ipv4 b/src/test/dns/powerdns/expected.add_ptr_record.ipv4 index 6923971..45b78e3 100644 --- a/src/test/dns/powerdns/expected.add_ptr_record.ipv4 +++ b/src/test/dns/powerdns/expected.add_ptr_record.ipv4 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.add_ptr_record.ipv6 b/src/test/dns/powerdns/expected.add_ptr_record.ipv6 index 1d8049f..d507c27 100644 --- a/src/test/dns/powerdns/expected.add_ptr_record.ipv6 +++ b/src/test/dns/powerdns/expected.add_ptr_record.ipv6 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.del_a_multiple_record.ipv4 b/src/test/dns/powerdns/expected.del_a_multiple_record.ipv4 index 45d76c6..7aec8ed 100644 --- a/src/test/dns/powerdns/expected.del_a_multiple_record.ipv4 +++ b/src/test/dns/powerdns/expected.del_a_multiple_record.ipv4 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.del_a_multiple_record.ipv6 b/src/test/dns/powerdns/expected.del_a_multiple_record.ipv6 index 9b56abd..33637dc 100644 --- a/src/test/dns/powerdns/expected.del_a_multiple_record.ipv6 +++ b/src/test/dns/powerdns/expected.del_a_multiple_record.ipv6 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.del_a_record.ipv4 b/src/test/dns/powerdns/expected.del_a_record.ipv4 index 7c0cf45..0933d9a 100644 --- a/src/test/dns/powerdns/expected.del_a_record.ipv4 +++ b/src/test/dns/powerdns/expected.del_a_record.ipv4 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.del_a_record.ipv6 b/src/test/dns/powerdns/expected.del_a_record.ipv6 index 9494c83..0b718a2 100644 --- a/src/test/dns/powerdns/expected.del_a_record.ipv6 +++ b/src/test/dns/powerdns/expected.del_a_record.ipv6 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.del_ptr_record.ipv4 b/src/test/dns/powerdns/expected.del_ptr_record.ipv4 index 120485b..05007ee 100644 --- a/src/test/dns/powerdns/expected.del_ptr_record.ipv4 +++ b/src/test/dns/powerdns/expected.del_ptr_record.ipv4 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.del_ptr_record.ipv6 b/src/test/dns/powerdns/expected.del_ptr_record.ipv6 index 7948e78..c8604cc 100644 --- a/src/test/dns/powerdns/expected.del_ptr_record.ipv6 +++ b/src/test/dns/powerdns/expected.del_ptr_record.ipv6 @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/dns/powerdns/expected.verify_zone b/src/test/dns/powerdns/expected.verify_zone index b476875..107feaa 100644 --- a/src/test/dns/powerdns/expected.verify_zone +++ b/src/test/dns/powerdns/expected.verify_zone @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'x-api-key' => '1234' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'GET', '_uri' => bless( do{\(my $o = 'http://localhost:8881/api/v1/servers/localhost/zones/domain.com?rrsets=false')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/netbox/expected.add_ip b/src/test/ipams/netbox/expected.add_ip index ae876f2..e9323ca 100644 --- a/src/test/ipams/netbox/expected.add_ip +++ b/src/test/ipams/netbox/expected.add_ip @@ -4,6 +4,7 @@ bless( { 'authorization' => 'token 0123456789abcdef0123456789abcdef01234567', 'content-type' => 'application/json; charset=UTF-8' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'http://localhost:8000/api/ipam/ip-addresses/')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/netbox/expected.add_ip_notgateway b/src/test/ipams/netbox/expected.add_ip_notgateway index ae876f2..e9323ca 100644 --- a/src/test/ipams/netbox/expected.add_ip_notgateway +++ b/src/test/ipams/netbox/expected.add_ip_notgateway @@ -4,6 +4,7 @@ bless( { 'authorization' => 'token 0123456789abcdef0123456789abcdef01234567', 'content-type' => 'application/json; charset=UTF-8' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'http://localhost:8000/api/ipam/ip-addresses/')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/netbox/expected.add_next_freeip b/src/test/ipams/netbox/expected.add_next_freeip index 7f80f4c..86840eb 100644 --- a/src/test/ipams/netbox/expected.add_next_freeip +++ b/src/test/ipams/netbox/expected.add_next_freeip @@ -4,6 +4,7 @@ bless( { 'authorization' => 'token 0123456789abcdef0123456789abcdef01234567', 'content-type' => 'application/json; charset=UTF-8' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'http://localhost:8000/api/ipam/prefixes/1/available-ips/')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/netbox/expected.add_subnet b/src/test/ipams/netbox/expected.add_subnet index 62ca823..6f21265 100644 --- a/src/test/ipams/netbox/expected.add_subnet +++ b/src/test/ipams/netbox/expected.add_subnet @@ -4,6 +4,7 @@ bless( { 'authorization' => 'token 0123456789abcdef0123456789abcdef01234567', 'content-type' => 'application/json; charset=UTF-8' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'http://localhost:8000/api/ipam/prefixes/')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/netbox/expected.del_ip b/src/test/ipams/netbox/expected.del_ip index 3c41de4..522b30f 100644 --- a/src/test/ipams/netbox/expected.del_ip +++ b/src/test/ipams/netbox/expected.del_ip @@ -4,6 +4,7 @@ bless( { 'authorization' => 'token 0123456789abcdef0123456789abcdef01234567', 'content-type' => 'application/json; charset=UTF-8' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'DELETE', '_uri' => bless( do{\(my $o = 'http://localhost:8000/api/ipam/ip-addresses/1/')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/netbox/expected.del_subnet b/src/test/ipams/netbox/expected.del_subnet index bdadb71..527c3d6 100644 --- a/src/test/ipams/netbox/expected.del_subnet +++ b/src/test/ipams/netbox/expected.del_subnet @@ -4,6 +4,7 @@ bless( { 'authorization' => 'token 0123456789abcdef0123456789abcdef01234567', 'content-type' => 'application/json; charset=UTF-8' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'http://localhost:8000/api/ipam/ip-addresses/')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/netbox/expected.update_ip b/src/test/ipams/netbox/expected.update_ip index a1202ad..5679e8d 100644 --- a/src/test/ipams/netbox/expected.update_ip +++ b/src/test/ipams/netbox/expected.update_ip @@ -4,6 +4,7 @@ bless( { 'authorization' => 'token 0123456789abcdef0123456789abcdef01234567', 'content-type' => 'application/json; charset=UTF-8' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'http://localhost:8000/api/ipam/ip-addresses/1/')}, 'URI::http' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/phpipam/expected.add_ip b/src/test/ipams/phpipam/expected.add_ip index 50af460..961592e 100644 --- a/src/test/ipams/phpipam/expected.add_ip +++ b/src/test/ipams/phpipam/expected.add_ip @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'token' => 'JPHkPSLB4O_XL-GQz4qtEFmNpx-99Htw' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'https://localhost/api/apiadmin/addresses/')}, 'URI::https' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/phpipam/expected.add_ip_notgateway b/src/test/ipams/phpipam/expected.add_ip_notgateway index 7a91359..fb6d35f 100644 --- a/src/test/ipams/phpipam/expected.add_ip_notgateway +++ b/src/test/ipams/phpipam/expected.add_ip_notgateway @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'token' => 'JPHkPSLB4O_XL-GQz4qtEFmNpx-99Htw' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'https://localhost/api/apiadmin/addresses/')}, 'URI::https' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/phpipam/expected.add_next_freeip b/src/test/ipams/phpipam/expected.add_next_freeip index d72f94f..b513aac 100644 --- a/src/test/ipams/phpipam/expected.add_next_freeip +++ b/src/test/ipams/phpipam/expected.add_next_freeip @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'token' => 'JPHkPSLB4O_XL-GQz4qtEFmNpx-99Htw' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'https://localhost/api/apiadmin/addresses/first_free/1/')}, 'URI::https' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/phpipam/expected.add_subnet b/src/test/ipams/phpipam/expected.add_subnet index b10cc5a..00e4049 100644 --- a/src/test/ipams/phpipam/expected.add_subnet +++ b/src/test/ipams/phpipam/expected.add_subnet @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'token' => 'JPHkPSLB4O_XL-GQz4qtEFmNpx-99Htw' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'https://localhost/api/apiadmin/subnets/')}, 'URI::https' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/phpipam/expected.del_ip b/src/test/ipams/phpipam/expected.del_ip index 72e83cb..40e3fcd 100644 --- a/src/test/ipams/phpipam/expected.del_ip +++ b/src/test/ipams/phpipam/expected.del_ip @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'token' => 'JPHkPSLB4O_XL-GQz4qtEFmNpx-99Htw' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'DELETE', '_uri' => bless( do{\(my $o = 'https://localhost/api/apiadmin/addresses/1')}, 'URI::https' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/phpipam/expected.del_subnet b/src/test/ipams/phpipam/expected.del_subnet index 349a34f..3e30b97 100644 --- a/src/test/ipams/phpipam/expected.del_subnet +++ b/src/test/ipams/phpipam/expected.del_subnet @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'token' => 'JPHkPSLB4O_XL-GQz4qtEFmNpx-99Htw' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'POST', '_uri' => bless( do{\(my $o = 'https://localhost/api/apiadmin/addresses/')}, 'URI::https' ) }, 'HTTP::Request' ); diff --git a/src/test/ipams/phpipam/expected.update_ip b/src/test/ipams/phpipam/expected.update_ip index 96c219b..a3cc70c 100644 --- a/src/test/ipams/phpipam/expected.update_ip +++ b/src/test/ipams/phpipam/expected.update_ip @@ -7,6 +7,7 @@ bless( { 'content-type' => 'application/json; charset=UTF-8', 'token' => 'JPHkPSLB4O_XL-GQz4qtEFmNpx-99Htw' }, 'HTTP::Headers' ), + '_max_body_size' => undef, '_method' => 'PATCH', '_uri' => bless( do{\(my $o = 'https://localhost/api/apiadmin/addresses/1')}, 'URI::https' ) }, 'HTTP::Request' ); |
