~rgildein/juju-verify:code/improved-unit-selection

Last commit made on 2021-04-15
Get this branch:
git clone -b code/improved-unit-selection https://git.launchpad.net/~rgildein/juju-verify
Only Robert Gildein can upload to this branch. If you are Robert Gildein please log in for upload directions.

Branch merges

Branch information

Name:
code/improved-unit-selection
Repository:
lp:~rgildein/juju-verify

Recent commits

7956cb6... by Robert Gildein

add function to get first active unit

Select the first active unit instead of the first unit.

cb19022... by Martin Kalcok

Add snapcraft.yaml and `snap` target to Makefile

Reviewed-on: https://code.launchpad.net/~martin-kalcok/juju-verify/+git/juju-verify/+merge/400716
Reviewed-by: Alvaro Uria <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

276e241... by Martin Kalcok

Improve snap version sourcing and add wrapper for snap deployment.

b48cb09... by Robert Gildein

tox - support python3.6 as testenv

[mypy.int]
 removed python_version -> the default is the version of the Python
                           interpreter used to run mypy
[setup.cfg]
 add python_requires >= 3.6
[tox.ini]
 add py36, py37, py38 and py39

I believed that Jenkins should perform tests on all supported pythons,
so I tested [1] how to run a tox with pyenv. This should be tested in
the Jenkins environment, but I believe that if I was able to run it in
a clean bionic ubuntu, it would work.

---
[1]: https://pastebin.ubuntu.com/p/57XD8tqTTv/

Reviewed-on: https://code.launchpad.net/~rgildein/juju-verify/+git/juju-verify/+merge/400405
Reviewed-by: Martin Kalcok <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

1133822... by Martin Kalcok

Use core20 when building snap

d7fc237... by Robert Gildein

tox - support python3.6 as testenv

[mypy.int]
 removed python_version -> the default is the version of the Python
                           interpreter used to run mypy
 removed rule to ignore missing import
[setup.cfg]
 add python_requires >= 3.6
[tox.ini]
 add py36, py37, py38 and py39

I believed that Jenkins should perform tests on all supported pythons,
so I tested [1] how to run a tox with pyenv. This should be tested in
the Jenkins environment, but I believe that if I was able to run it in
a clean bionic ubuntu, it would work.

---
[1]: https://pastebin.ubuntu.com/p/57XD8tqTTv/

90f3aef... by Robert Gildein

Fix verified unit that not in active status

This change provides a fix for adding inactive units and units to
removal. The error was that unit in an inactive state count twice.

Closes-bug: LP#1921328

Reviewed-on: https://code.launchpad.net/~rgildein/juju-verify/+git/juju-verify/+merge/400319
Reviewed-by: Martin Kalcok <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

d41d2eb... by Martin Kalcok

Add snapcraft.yaml and `snap` target to Makefile

59e1dd5... by Robert Gildein

Add support for multiple units/machines arguments

This change provides support for using multiple units/machines as
arguments. Without these changes, only the last argument was taken into
account, so `--units ceph-osd/0 --units ceph-osd/1` used only
"ceph-osd/1".

Closes-bug: LP#1920914

Reviewed-on: https://code.launchpad.net/~rgildein/juju-verify/+git/juju-verify/+merge/400337
Reviewed-by: Martin Kalcok <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

7327b64... by Robert Gildein

Add support for multiple units/machines arguments

This change provides support for using multiple units/machines as
arguments. Without these changes, only the last argument was taken into
account, so `--units ceph-osd/0 --units ceph-osd/1` used only
"ceph-osd/1".

Closes-bug: LP#1920914