From: Sebastian Wagner Date: Tue, 14 Dec 2021 12:33:27 +0000 (+0100) Subject: cephadm: count number of docker.io occurrences. X-Git-Tag: v17.1.0~67^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0fe2e54db774271e4fc18b45aba36b66cbc71779;p=ceph.git cephadm: count number of docker.io occurrences. We have to be super careful adding any new hardcoded regstistry names to the code base. Let's make this an informed decision next time. Signed-off-by: Sebastian Wagner --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index c4c45365a907..730076914f3a 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -56,8 +56,10 @@ commands = [testenv:flake8] basepython = python3 +allowlist_externals = bash deps = flake8 flake8-quotes commands = flake8 --config=tox.ini {posargs:cephadm} + bash -c "test $(grep 'docker.io' cephadm | wc -l) == 10" diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index 44a606076286..20b37d97d65f 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -144,6 +144,7 @@ commands = basepython = python3 deps = flake8 +allowlist_externals = bash modules = alerts balancer @@ -161,6 +162,7 @@ modules = commands = flake8 --config=tox.ini {posargs} \ {posargs:{[testenv:flake8]modules}} + bash -c 'test $(git ls-files cephadm | grep ".py$" | grep -v tests | xargs grep "docker.io" | wc -l) == 12' [testenv:jinjalint] basepython = python3