pytest-testinfra icon indicating copy to clipboard operation
pytest-testinfra copied to clipboard

Not working with molecule - name + port used for Docker

Open hypery2k opened this issue 6 years ago • 0 comments

With the latest testinfra version during a molecule setup, it seems that the port is used for picking up the container:

No such container: instance:7525\

But the port should be dropped, as the name is "instance" only (molecule.yml):

platforms:
  - name: instance
    image: debian
    image_version: 9
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    privileged: true
    capabilities:
      - SYS_ADMIN
    exposed_ports:
      - 22/tcp
      - 7525/tcp
    groups:
      - debian
provisioner:
  name: ansible
  playbooks:
    prepare: prepare.yml
    converge: ../../ansible/internal.yml
  inventory:
    group_vars:
      all:
        ansible_port: 7525
        modern_tls: false
        additional_admins: []
        ansible_become: false
        ansible_user: root

Any ideas?

hypery2k avatar Jul 24 '19 11:07 hypery2k