- Notifications
You must be signed in to change notification settings - Fork31
Rewrite bash tests to python#213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| @@ -0,0 +1,5 @@ | |||
| pytest==8.3.5 | |||
| docker==7.1.0 | |||
| zabbix==1.3.1 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
почему-то данная версия не ищется:ERROR: Could not find a version that satisfies the requirement zabbix==1.3.1 (from versions: 1.2.0, 1.2.4, 2.0.2)
| @@ -0,0 +1,8 @@ | |||
| from enum import StrEnum | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
класс StrEnum доступен начиная с python3.11, соответственно, необходимо отразить в README, что для запуска тестов необходим python3.11+ и не забыть это в дальнейшем учесть при добавлении запуска данных тестов в github-actions.
| subprocess.run( | ||
| [ | ||
| "docker-compose", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
насколько мне известно, оригинальныйdocker-compose перешёл в статус deprecated 5 лет назад и в настоящий момент в качестве замены используется вызов плагина docker-compose-plugin какdocker compose (без тире).
тут два варианта:
- в рантайме github-actions добавлять алиас
alias docker-compose="docker compose" - заменить вызов на актуальный без дефиса
В кач-ве первой итерации тесты Баш были переписаны на Python без написания дополнительных проверок.
Поддерживается параметризация версии Postgres, в следующей итерации так же будет добавлена поддержка параметризации типа и версии ОС