Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-2021] integration tests lightkube registry #17

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

juditnovak
Copy link
Contributor

@juditnovak juditnovak commented Jun 13, 2023

NOTE: Not against main but against #16

@juditnovak juditnovak changed the base branch from main to DPE-2095_integration_tests_to_pytest June 13, 2023 23:17
@juditnovak juditnovak requested a review from deusebio June 13, 2023 23:26
@juditnovak juditnovak marked this pull request as ready for review June 13, 2023 23:32
@juditnovak juditnovak force-pushed the DPE-2021_integration_tests_lightkube_registry branch from b6acd90 to 0d662d4 Compare June 15, 2023 22:49
@juditnovak juditnovak force-pushed the DPE-2095_integration_tests_to_pytest branch 2 times, most recently from fd81bf1 to cbf7d15 Compare June 16, 2023 00:26
@juditnovak juditnovak force-pushed the DPE-2021_integration_tests_lightkube_registry branch 2 times, most recently from 4430373 to 7bc7d7b Compare June 16, 2023 00:48
Copy link
Contributor

@deusebio deusebio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deusebio deusebio self-requested a review June 16, 2023 10:17
@juditnovak juditnovak force-pushed the DPE-2095_integration_tests_to_pytest branch from cbf7d15 to 8ee05e2 Compare June 16, 2023 15:02
Base automatically changed from DPE-2095_integration_tests_to_pytest to main June 16, 2023 15:15
juditnovak added a commit that referenced this pull request Jun 16, 2023
Blindly moving from unittest to pytest, as a pre-stage to complete
[DPE-2021](https://warthogs.atlassian.net/browse/DPE-2021).
Related, dependent PR is
#17

Stateful, "cleaning up after myself" tests not used anymore.
Instead we have reliable fixtures always ensuring a clean state (in
terms of namespaces).
(Note: So far I see no desperate need to clean up the `default`
namespace, but can be added if needed)

Furthermore `tests/__init__.py` is cleaned up (none of the content was
needed there).

[DPE-2021]:
https://warthogs.atlassian.net/browse/DPE-2021?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

While it may be difficult to review changes, note that test coverage is
equal to[ the last one before this
PR](https://github.com/canonical/spark-k8s-toolkit-py/actions/runs/5253123178):

```
---------- coverage: platform linux, python 3.9.16-final-0 -----------
Name                                      Stmts   Miss  Cover
-------------------------------------------------------------
spark8t/__init__.py                           0      0   100%
spark8t/cli/__init__.py                       3      3     0%
spark8t/cli/params.py                        29     29     0%
spark8t/cli/pyspark.py                       15     15     0%
spark8t/cli/service_account_registry.py      76     76     0%
spark8t/cli/spark_shell.py                   15     15     0%
spark8t/cli/spark_submit.py                  15     15     0%
spark8t/domain.py                           161     27    83%
spark8t/exceptions.py                        10      1    90%
spark8t/literals.py                           3      0   100%
spark8t/services.py                         527    202    62%
spark8t/utils.py                             93     27    71%
-------------------------------------------------------------
TOTAL                                       947    410    57%

================== 12 passed, 2 warnings in 138.45s (0:02:18) ==================
  integration: OK (144.86=setup[1.35]+cmd[3.22,0.59,139.71] seconds)
  congratulations :) (144.99 seconds)
```

[New
execution](https://github.com/canonical/spark-k8s-toolkit-py/actions/runs/5261122237)
```
---------- coverage: platform linux, python 3.9.17-final-0 -----------
Name                                      Stmts   Miss  Cover
-------------------------------------------------------------
spark8t/__init__.py                           0      0   100%
spark8t/cli/__init__.py                       3      3     0%
spark8t/cli/params.py                        29     29     0%
spark8t/cli/pyspark.py                       15     15     0%
spark8t/cli/service_account_registry.py      76     76     0%
spark8t/cli/spark_shell.py                   15     15     0%
spark8t/cli/spark_submit.py                  15     15     0%
spark8t/domain.py                           161     27    83%
spark8t/exceptions.py                        10      1    90%
spark8t/literals.py                           3      0   100%
spark8t/services.py                         527    202    62%
spark8t/utils.py                             93     27    71%
-------------------------------------------------------------
TOTAL                                       947    410    57%

================== 12 passed, 2 warnings in 133.44s (0:02:13) ==================
  integration: OK (142.51=setup[1.63]+cmd[3.67,1.18,136.03] seconds)
  congratulations :) (142.66 seconds)
```
@juditnovak juditnovak force-pushed the DPE-2021_integration_tests_lightkube_registry branch from 7bc7d7b to e100c88 Compare June 16, 2023 15:28
@juditnovak juditnovak merged commit e9bc626 into main Jun 16, 2023
4 checks passed
@juditnovak juditnovak deleted the DPE-2021_integration_tests_lightkube_registry branch June 16, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants