Skip to content

[Bug]: Regression in local refresh with resources #756

@sed-i

Description

@sed-i

Description

I have an itest in which a charmhub charm is upgraded with a local charm.

With version 3.0.1, local refresh with resources works.
With version 3.0.3 it does not:

Traceback (most recent call last):
  File "/home/runner/work/cos-configuration-k8s-operator/cos-configuration-k8s-operator/tests/integration/test_upgrade_charm.py", line 36, in test_build_and_deploy
    await ops_test.model.applications[app_name].refresh(path=charm_under_test, resources=resources)
  File "/home/runner/work/cos-configuration-k8s-operator/cos-configuration-k8s-operator/.tox/integration/lib/python3.8/site-packages/juju/application.py", line 641, in refresh
    raise NotImplementedError("resources option is not implemented")
NotImplementedError: resources option is not implemented

This regression was likely introduced by #729 or #742.

For now, pinning to 3.0.1.

Urgency

Annoying bug in our test suite

Python-libjuju version

3.0.3

Juju version

2.9.35

Reproduce / Test

https://github.com/canonical/cos-configuration-k8s-operator/blob/7f0b1eac9317850aee320b4f47a7f1527aaff625/tests/integration/test_upgrade_charm.py#L36

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugindicates a bug in the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions