public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Alexandre Derumier <aderumier@odiso.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-network 00/15] bugfix && unit tests
Date: Tue,  5 Jan 2021 10:35:21 +0100	[thread overview]
Message-ID: <20210105093536.1727641-1-aderumier@odiso.com> (raw)

Hello everybody and Happy new year !


This add unit tests for ipams, dns, subnets
and some bugfixes detected with them.

for external ipam/dns api, I'm testing only the expected http query with param.
I think it should be enough.

I have retested all plugins, all methods, I don't have detected bug anymore.

I have send a new pve-container patches serie too.
(no more in RFC, I think the patch is ok now).

I'll try to look at qemu support now.





Small reminder of other related patches:

pve-cluster:

[PATCH V5 pve-cluster 0/5] sdn : add subnets management

https://lists.proxmox.com/pipermail/pve-devel/2020-September/045284.html


pve-common:

INotify: add support for dummy interfaces type

(this is a small patch for ebgp loopback/dummy interface support)

https://www.mail-archive.com/pve-devel@lists.proxmox.com/msg01755.html


pve-docs:

[PATCH pve-docs] update sdn documentation
https://lists.proxmox.com/pipermail/pve-devel/2020-November/046246.html


pve-manager:

[PATCH v10 pve-manager 00/19] sdn: add subnets management

https://lists.proxmox.com/pipermail/pve-devel/2021-January/046589.html

pve-container:

[PATCH pve-container] add ipam support
https://lists.proxmox.com/pipermail/pve-devel/2021-January/046609.html


Alexandre Derumier (15):
  sdn: pending_config: initialize empty pending key
  ipams: add mac address
  ipam: add update_ip
  dns/ipam : move api_request helper to sdn module
  subnets: fix del_ip rollback
  dns: add update record && fix powerdns
  ipam: phpipam: rename get_internal to get_prefix_id (like netbox)
  ipams: add noerr param
  tests: add ipams tests
  dns: add noerr param
  tests: add dns tests
  subnets: convert dns private function to public sub
  subnets: add add_subnet/del_subnet
  tests: add subnets tests
  fix coding style NetAddr::IP->new

 PVE/API2/Network/SDN/Subnets.pm               |  19 +-
 PVE/Network/SDN.pm                            |  49 +++-
 PVE/Network/SDN/Dns/Plugin.pm                 |  57 ++--
 PVE/Network/SDN/Dns/PowerdnsPlugin.pm         | 119 ++++++--
 PVE/Network/SDN/Ipams/NetboxPlugin.pm         |  61 ++--
 PVE/Network/SDN/Ipams/PVEPlugin.pm            |  11 +-
 PVE/Network/SDN/Ipams/PhpIpamPlugin.pm        |  80 +++--
 PVE/Network/SDN/Ipams/Plugin.pm               |  64 ++--
 PVE/Network/SDN/SubnetPlugin.pm               |   9 +-
 PVE/Network/SDN/Subnets.pm                    | 132 ++++++---
 PVE/Network/SDN/Vnets.pm                      |  49 ++--
 test/Makefile                                 |  11 +-
 test/dns/powerdns/dns_config                  |  10 +
 .../expected.add_a_multiple_record.ipv4       |  13 +
 .../expected.add_a_multiple_record.ipv6       |  13 +
 test/dns/powerdns/expected.add_a_record.ipv4  |  12 +
 test/dns/powerdns/expected.add_a_record.ipv6  |  13 +
 .../dns/powerdns/expected.add_ptr_record.ipv4 |  13 +
 .../dns/powerdns/expected.add_ptr_record.ipv6 |  12 +
 .../expected.del_a_multiple_record.ipv4       |  13 +
 .../expected.del_a_multiple_record.ipv6       |  12 +
 test/dns/powerdns/expected.del_a_record.ipv4  |  13 +
 test/dns/powerdns/expected.del_a_record.ipv6  |  12 +
 .../dns/powerdns/expected.del_ptr_record.ipv4 |  12 +
 .../dns/powerdns/expected.del_ptr_record.ipv6 |  13 +
 test/dns/powerdns/expected.verify_zone        |  12 +
 test/dns/powerdns/sdn_config                  |  20 ++
 test/ipams/netbox/expected.add_ip             |   9 +
 test/ipams/netbox/expected.add_next_freeip    |   9 +
 test/ipams/netbox/expected.add_subnet         |   9 +
 test/ipams/netbox/expected.del_ip             |   9 +
 test/ipams/netbox/expected.del_subnet         |   9 +
 test/ipams/netbox/expected.update_ip          |   9 +
 test/ipams/netbox/ipam_config                 |  18 ++
 test/ipams/netbox/sdn_config                  |  20 ++
 test/ipams/phpipam/expected.add_ip            |  12 +
 test/ipams/phpipam/expected.add_next_freeip   |  12 +
 test/ipams/phpipam/expected.add_subnet        |  12 +
 test/ipams/phpipam/expected.del_ip            |  12 +
 test/ipams/phpipam/expected.del_subnet        |  12 +
 test/ipams/phpipam/expected.update_ip         |  12 +
 test/ipams/phpipam/ipam_config                |  18 ++
 test/ipams/phpipam/sdn_config                 |  20 ++
 test/run_test_dns.pl                          | 271 +++++++++++++++++
 test/run_test_ipams.pl                        | 181 ++++++++++++
 test/run_test_subnets.pl                      | 273 ++++++++++++++++++
 test/subnets/ipv4/ipam_config                 |  18 ++
 test/subnets/ipv4/sdn_config                  |  20 ++
 test/subnets/ipv6/ipam_config                 |  18 ++
 test/subnets/ipv6/sdn_config                  |  20 ++
 50 files changed, 1642 insertions(+), 215 deletions(-)
 create mode 100644 test/dns/powerdns/dns_config
 create mode 100644 test/dns/powerdns/expected.add_a_multiple_record.ipv4
 create mode 100644 test/dns/powerdns/expected.add_a_multiple_record.ipv6
 create mode 100644 test/dns/powerdns/expected.add_a_record.ipv4
 create mode 100644 test/dns/powerdns/expected.add_a_record.ipv6
 create mode 100644 test/dns/powerdns/expected.add_ptr_record.ipv4
 create mode 100644 test/dns/powerdns/expected.add_ptr_record.ipv6
 create mode 100644 test/dns/powerdns/expected.del_a_multiple_record.ipv4
 create mode 100644 test/dns/powerdns/expected.del_a_multiple_record.ipv6
 create mode 100644 test/dns/powerdns/expected.del_a_record.ipv4
 create mode 100644 test/dns/powerdns/expected.del_a_record.ipv6
 create mode 100644 test/dns/powerdns/expected.del_ptr_record.ipv4
 create mode 100644 test/dns/powerdns/expected.del_ptr_record.ipv6
 create mode 100644 test/dns/powerdns/expected.verify_zone
 create mode 100644 test/dns/powerdns/sdn_config
 create mode 100644 test/ipams/netbox/expected.add_ip
 create mode 100644 test/ipams/netbox/expected.add_next_freeip
 create mode 100644 test/ipams/netbox/expected.add_subnet
 create mode 100644 test/ipams/netbox/expected.del_ip
 create mode 100644 test/ipams/netbox/expected.del_subnet
 create mode 100644 test/ipams/netbox/expected.update_ip
 create mode 100644 test/ipams/netbox/ipam_config
 create mode 100644 test/ipams/netbox/sdn_config
 create mode 100644 test/ipams/phpipam/expected.add_ip
 create mode 100644 test/ipams/phpipam/expected.add_next_freeip
 create mode 100644 test/ipams/phpipam/expected.add_subnet
 create mode 100644 test/ipams/phpipam/expected.del_ip
 create mode 100644 test/ipams/phpipam/expected.del_subnet
 create mode 100644 test/ipams/phpipam/expected.update_ip
 create mode 100644 test/ipams/phpipam/ipam_config
 create mode 100644 test/ipams/phpipam/sdn_config
 create mode 100755 test/run_test_dns.pl
 create mode 100755 test/run_test_ipams.pl
 create mode 100755 test/run_test_subnets.pl
 create mode 100644 test/subnets/ipv4/ipam_config
 create mode 100644 test/subnets/ipv4/sdn_config
 create mode 100644 test/subnets/ipv6/ipam_config
 create mode 100644 test/subnets/ipv6/sdn_config

-- 
2.20.1




             reply	other threads:[~2021-01-05  9:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-05  9:35 Alexandre Derumier [this message]
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 01/15] sdn: pending_config: initialize empty pending key Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 02/15] ipams: add mac address Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 03/15] ipam: add update_ip Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 04/15] dns/ipam : move api_request helper to sdn module Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 05/15] subnets: fix del_ip rollback Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 06/15] dns: add update record && fix powerdns Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 07/15] ipam: phpipam: rename get_internal to get_prefix_id (like netbox) Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 08/15] ipams: add noerr param Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 09/15] tests: add ipams tests Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 10/15] dns: add noerr param Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 11/15] tests: add dns tests Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 12/15] subnets: convert dns private function to public sub Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 13/15] subnets: add add_subnet/del_subnet Alexandre Derumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 14/15] tests: add subnets tests Alexandre Derumier
2021-02-06 13:56   ` Thomas Lamprecht
2021-02-07 14:09     ` aderumier
2021-01-05  9:35 ` [pve-devel] [PATCH pve-network 15/15] fix coding style NetAddr::IP->new Alexandre Derumier
2021-02-06 13:57 ` [pve-devel] [PATCH pve-network 00/15] bugfix && unit tests Thomas Lamprecht
2021-02-07 14:26   ` aderumier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210105093536.1727641-1-aderumier@odiso.com \
    --to=aderumier@odiso.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal