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

tests/hotfix/Remove parsing .env in conftest #838

Merged
merged 1 commit into from
May 23, 2023

Conversation

danmyway
Copy link
Member

  • we do not have any .env file in the repository, the line is redundant

Tested on CentOS-8.4 with tier0 set:
http://artifacts.osci.redhat.com/testing-farm/8a854bf5-2487-494b-9dfd-0cfe2c53a8a0/

* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>
@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (0047214) 94.05% compared to head (ee393f4) 94.05%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #838   +/-   ##
=======================================
  Coverage   94.05%   94.05%           
=======================================
  Files          40       40           
  Lines        3837     3837           
  Branches      679      679           
=======================================
  Hits         3609     3609           
  Misses        163      163           
  Partials       65       65           
Flag Coverage Δ
centos-linux-7 89.10% <ø> (ø)
centos-linux-8 89.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bocekm
Copy link
Member

bocekm commented May 22, 2023

@r0x0d r0x0d added the skip/changelog If it should be excluded from changelog or Release notes. Such as infra, reverted PRs, etc. label May 22, 2023
@danmyway danmyway merged commit 4425866 into oamg:main May 23, 2023
Venefilyn pushed a commit that referenced this pull request Jun 19, 2023
* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>
Andrew-ang9 pushed a commit to Andrew-ang9/convert2rhel that referenced this pull request Aug 16, 2023
* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>
Andrew-ang9 pushed a commit to Andrew-ang9/convert2rhel that referenced this pull request Aug 16, 2023
* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>
Andrew-ang9 pushed a commit to Andrew-ang9/convert2rhel that referenced this pull request Sep 26, 2023
* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>
Andrew-ang9 pushed a commit to Andrew-ang9/convert2rhel that referenced this pull request Nov 1, 2023
tests/hotfix/Remove parsing .env in conftest (oamg#838)

* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fixed the log message

* I belive that there is still an issue with the log message as I think
  the assert for the action is fails because of that, I am currently
  lookign into that though

Changed the action level description message

refactored the if statment

* this if statment now takes in account what envar is being used and
  will display the correct message acordingly

reverted the if statment back to the correct format

fix for the unit tests

* This is a temporary fix for the uint test I had to seperate one tests
  from the is_loaded_kernel_latest_skip_warnings as it wasn't passing
  with the log message test. For some unknown reason the envar is only
  set in all of the tests.
Andrew-ang9 pushed a commit to Andrew-ang9/convert2rhel that referenced this pull request Dec 12, 2023
tests/hotfix/Remove parsing .env in conftest (oamg#838)

* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fixed the log message

* I belive that there is still an issue with the log message as I think
  the assert for the action is fails because of that, I am currently
  lookign into that though

Changed the action level description message

refactored the if statment

* this if statment now takes in account what envar is being used and
  will display the correct message acordingly

reverted the if statment back to the correct format

fix for the unit tests

* This is a temporary fix for the uint test I had to seperate one tests
  from the is_loaded_kernel_latest_skip_warnings as it wasn't passing
  with the log message test. For some unknown reason the envar is only
  set in all of the tests.
Andrew-ang9 pushed a commit to Andrew-ang9/convert2rhel that referenced this pull request Jan 2, 2024
tests/hotfix/Remove parsing .env in conftest (oamg#838)

* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fixed the log message

* I belive that there is still an issue with the log message as I think
  the assert for the action is fails because of that, I am currently
  lookign into that though

Changed the action level description message

refactored the if statment

* this if statment now takes in account what envar is being used and
  will display the correct message acordingly

reverted the if statment back to the correct format

fix for the unit tests

* This is a temporary fix for the uint test I had to seperate one tests
  from the is_loaded_kernel_latest_skip_warnings as it wasn't passing
  with the log message test. For some unknown reason the envar is only
  set in all of the tests.
Andrew-ang9 pushed a commit to Andrew-ang9/convert2rhel that referenced this pull request Jan 15, 2024
tests/hotfix/Remove parsing .env in conftest (oamg#838)

* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fixed the log message

* I belive that there is still an issue with the log message as I think
  the assert for the action is fails because of that, I am currently
  lookign into that though

Changed the action level description message

refactored the if statment

* this if statment now takes in account what envar is being used and
  will display the correct message acordingly

reverted the if statment back to the correct format

fix for the unit tests

* This is a temporary fix for the uint test I had to seperate one tests
  from the is_loaded_kernel_latest_skip_warnings as it wasn't passing
  with the log message test. For some unknown reason the envar is only
  set in all of the tests.
Venefilyn pushed a commit that referenced this pull request Jan 24, 2024
* Rewrite is_loaded_kernel_latest() log messages

tests/hotfix/Remove parsing .env in conftest (#838)

* we do not have any .env file in the repository, the line is redundant

Signed-off-by: Daniel Diblik <[email protected]>

Modify tests

* use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Revised checks.py and checks_test.py

* After Rebasing some of the code changed, and added in code not from
  this PR.
* In checks.py the log message was edited and the rest of the code.
* In checks_test.py edited is_loaded_kernel_latet_unsupported_skip, and
  added is_loaded_kernel_latet_unsupported_skip_env_var
* Use `CONVERT2RHEL_SKIP_KERNEL_CURRENCY_CHECK` instead of deprecated `CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK`

Signed-off-by: Daniel Diblik <[email protected]>

Use the deprecated envar in latest_kernel_check_skip

Signed-off-by: Daniel Diblik <[email protected]>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fixed the log message

* I belive that there is still an issue with the log message as I think
  the assert for the action is fails because of that, I am currently
  lookign into that though

Changed the action level description message

refactored the if statment

* this if statment now takes in account what envar is being used and
  will display the correct message acordingly

reverted the if statment back to the correct format

fix for the unit tests

* This is a temporary fix for the uint test I had to seperate one tests
  from the is_loaded_kernel_latest_skip_warnings as it wasn't passing
  with the log message test. For some unknown reason the envar is only
  set in all of the tests.

* Removed duplicate code

* Wip needs one more test to pass unit testing

* Changed the id and what log for the unit test

---------

Co-authored-by: Daniel Diblik <[email protected]>
@danmyway danmyway deleted the tests/hotfix-could-not-any-env-file branch September 3, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog If it should be excluded from changelog or Release notes. Such as infra, reverted PRs, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants