Skip to content

AttributeError: 'ExposeChange' object has no attribute 'exposed_endpoints' #501

@rgildein

Description

@rgildein

This error occurred while using pytests-operator + juju==2.9.0, which build the tested charm and tried to deploy it inside bundle.

Environment:

platform linux -- Python 3.9.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
plugins: asyncio-0.15.1, operator-0.6.1

How to reproduce:

  • run tox -e integration on top of this commit

Error:

_________________________________________________________________________________________________________________________________ test_build_and_deploy __________________________________________________________________________________________________________________________________
Traceback (most recent call last):
  File "/home/rg/canonical/charm-openstack-integrator/tests/integration/test_openstack_integrator_integration.py", line 16, in test_build_and_deploy
    await ops_test.model.deploy(bundle, trust=True)
  File "/home/rg/canonical/charm-openstack-integrator/.tox/integration/lib/python3.9/site-packages/juju/model.py", line 1446, in deploy
    await handler.execute_plan()
  File "/home/rg/canonical/charm-openstack-integrator/.tox/integration/lib/python3.9/site-packages/juju/bundle.py", line 167, in execute_plan 
    self.references[step.id_] = await change.run(self)
  File "/home/rg/canonical/charm-openstack-integrator/.tox/integration/lib/python3.9/site-packages/juju/bundle.py", line 825, in run
    return await context.model.applications[application].expose(self.exposed_endpoints)
AttributeError: 'ExposeChange' object has no attribute 'exposed_endpoints'
================================================================================================================================ short test summary info =================================================================================================================================
FAILED tests/integration/test_openstack_integrator_integration.py::test_build_and_deploy - AttributeError: 'ExposeChange' object has no attribute 'exposed_endpoints'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions