Skip to content

Tests did not run sucessfully with phpIPAM v1.7.x #121

Open
@cmeissner

Description

@cmeissner

Describe the bug

Running the complete test suite of this repository against a phpIPAM version 1.7.x will fail for several modules.

====== short test summary info ======
FAILED tests/test_crud.py::test_crud[domain_vlan_mapping]
FAILED tests/test_crud.py::test_crud[domain_vlan_subnet_mapping]
FAILED tests/test_crud.py::test_crud[domain]
FAILED tests/test_crud.py::test_crud[device]
FAILED tests/test_crud.py::test_crud[nameserver]
FAILED tests/test_crud.py::test_crud[subnet]
FAILED tests/test_crud.py::test_crud[subnet_vrf_mapping]
FAILED tests/test_crud.py::test_crud[vrf]
====== 8 failed, 10 passed in 19.51s ======

To Reproduce
Steps to reproduce the behavior:

  1. running make clean
  2. set PHPIPAM_VERSION to 1.7.0
  3. running make setup-phpipam
  4. running make test-example_setup
  5. running make test-all

Observe the command output.

Expected behavior

All tests should run without failures, with the following output:

========== 18 passed in 22.33s ==========

Versions:

  • Ansible:

    $ ansible [core 2.15.12]
    config file = /home/cme/Development/github/cmeissner/phpipam-ansible-modules/ansible.cfg
    configured module search path = ['/home/cme/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    ansible python module location = /home/cme/.pyenv/versions/3.9.11/envs/pam_3.9.11/lib/python3.9/site-packages/ansible
    ansible collection location = /home/cme/Development/github/cmeissner/phpipam-ansible-modules/build/collections
    executable location = /home/cme/.pyenv/versions/3.9.11/envs/pam_3.9.11/bin/ansible
    python version = 3.9.11 (main, Mar 21 2022, 19:15:19) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)] (/home/cme/.pyenv/versions/3.9.11/envs/pam_3.9.11/bin/python)
    jinja version = 3.1.4
    libyaml = True
  • phpipam-ansible-modules:

    $ ansible-galaxy collection list codeaffen.phpipam
    
    # /home/cme/Development/github/cmeissner/phpipam-ansible-modules/build/collections/ansible_collections
    Collection        Version
    ----------------- -------
    codeaffen.phpipam 1.7.0 
  • phpypam:

    $ pip freeze | grep phpypam
    phpypam==1.0.2
  • phpIPAM:

    $ Version from webUI
    v1.7.0
  • python version

    $ python -V
    Python 3.9.11

Additional context

This is a meta bug. It should be used to investigate all affected modules and create subsequent bug reports to fix each bug separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis issue can reproduced and was acceptedbugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions