-
Notifications
You must be signed in to change notification settings - Fork 125
Testing httpd-2.4 container by PyTest #234
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
Conversation
Pull Request validationFailed🔴 Review - Missing review from a member (1 required) Success🟢 CI - All checks have passed |
The working solution can be seen here sclorg/httpd-container#234 Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
See the output from local testing: |
0b2286b to
c011dbf
Compare
The working solution can be seen here sclorg/httpd-container#234 Signed-off-by: Petr "Stone" Hracek <[email protected]>
c011dbf to
cf881c4
Compare
|
[test-pytest] |
Testing Farm results
|
|
[test] |
|
[test-pytest] |
a05d74a to
8643b65
Compare
5e407b0 to
3dc41cd
Compare
0ed2766 to
25ed922
Compare
|
[test-pytest] |
|
[test-pytest] |
|
/auto-merge |
Co-authored-by: Karolina Surma <[email protected]>
frenzymadness
left a comment
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.
First round done by me. I have checked mostly the test_container_httpd so far.
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
frenzymadness
left a comment
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.
Some more ideas from me. Feel free to ping me if you'd like to talk about some of the design ideas further.
Remove fixtures. They are not needed. Signed-off-by: Petr "Stone" Hracek <[email protected]>
In case of podman exec failed, then return is False instead of silence failure Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
[test-pytest] |
frenzymadness
left a comment
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.
Next round of review. Thanks for your patience.
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
The whole suite was added to test_container_httpd_s2i.py. Also building new image is called by new function. Now each class use this function. Check of SSL should pass with proper response. Signed-off-by: Petr "Stone" Hracek <[email protected]>
Signed-off-by: Petr "Stone" Hracek <[email protected]>
like IMAGE_NAME, OS, VERSION and import them in PyTest suite Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
let's try for another round of tests [test-pytest] |
|
/auto-merge |
frenzymadness
left a comment
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.
Thank you for your patience and all the changes you've made to make this testsuite better. I think we are good to merge it.
test/test_container_httpd.py
Outdated
| if not check_variables(): | ||
| sys.exit(1) | ||
|
|
||
|
|
||
| TEST_DIR = Path(__file__).parent.absolute() | ||
| VERSION = os.getenv("VERSION") | ||
| OS = os.getenv("OS").lower() | ||
| IMAGE_NAME = os.getenv("IMAGE_NAME") |
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.
As I already mentioned elsewhere, you can de-duplicate this part by moving it to a new module settings.py and importing back only the required variables into this module.
For example: OS and VERSION are both unused here.
No description provided.