Skip to content

Conversation

@phracek
Copy link
Member

@phracek phracek commented Nov 27, 2024

No description provided.

@phracek phracek marked this pull request as draft November 27, 2024 12:02
@github-actions
Copy link

github-actions bot commented Nov 27, 2024

Pull Request validation

Failed

🔴 Review - Missing review from a member (1 required)

Success

🟢 CI - All checks have passed

phracek added a commit to sclorg/container-ci-suite that referenced this pull request Nov 28, 2024
The working solution can be seen here sclorg/httpd-container#234

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek
Copy link
Member Author

phracek commented Nov 28, 2024

See the output from local testing:

====================================================================== short test summary info =======================================================================
PASSED test/container/test_httpd.py::TestHttpdAppContainer::test_default_path
PASSED test/container/test_httpd.py::TestHttpdAppContainer::test_run_as_root
PASSED test/container/test_httpd.py::TestHttpdAppContainer::test_run_s2i_usage
PASSED test/container/test_httpd_s2i.py::TestHttpdS2IPreInitContainer::test_run_pre_init_test[/root/httpd-container/2.4/test/container/../pre-init-test-app]
PASSED test/container/test_httpd_s2i.py::TestHttpdS2ISampleAppContainer::test_self_cert_test[/root/httpd-container/2.4/test/container/../sample-test-app]
========================================================================= 5 passed in 25.05s =========================================================================

@phracek phracek force-pushed the container_pytests branch 2 times, most recently from 0b2286b to c011dbf Compare December 3, 2024 14:09
phracek added a commit to sclorg/container-ci-suite that referenced this pull request Dec 3, 2024
The working solution can be seen here sclorg/httpd-container#234

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek phracek force-pushed the container_pytests branch from c011dbf to cf881c4 Compare August 26, 2025 15:26
@phracek phracek marked this pull request as ready for review August 26, 2025 15:27
@phracek
Copy link
Member Author

phracek commented Aug 26, 2025

[test-pytest]

@github-actions
Copy link

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
CentOS Stream 10 - 2.4-microCentOS-Stream-10x86_64❌ error26.08.2025 15:56:075min 42stest pipeline

@github-actions
Copy link

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
CentOS Stream 10 - 2.4CentOS-Stream-10x86_64❌ error26.08.2025 15:56:055min 55stest pipeline

@github-actions
Copy link

github-actions bot commented Aug 26, 2025

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Fedora - 2.4-microFedora-latestx86_64✅ passed01.09.2025 14:00:3154min 55stest pipeline
Fedora - 2.4Fedora-latestx86_64✅ passed01.09.2025 14:00:3314min 15stest pipeline
CentOS Stream 9 - 2.4-microCentOS-Stream-9x86_64✅ passed01.09.2025 14:00:3255min 38stest pipeline
CentOS Stream 9 - 2.4CentOS-Stream-9x86_64✅ passed01.09.2025 14:00:3355min 29stest pipeline
RHEL8 - PyTest - 2.4RHEL-8.10.0-Nightlyx86_64✅ passed29.09.2025 11:17:2521min 44stest pipeline
RHEL9 - PyTest - 2.4RHEL-9.6.0-Nightlyx86_64✅ passed29.09.2025 11:17:2724min 48stest pipeline
RHEL10 - PyTest - 2.4RHEL-10-Nightlyx86_64✅ passed29.09.2025 11:17:2619min 35stest pipeline
CentOS Stream 10 - 2.4CentOS-Stream-10x86_64✅ passed01.09.2025 14:00:3354min 45stest pipeline
CentOS Stream 10 - 2.4-microCentOS-Stream-10x86_64✅ passed27.08.2025 15:09:455min 26stest pipeline
RHEL10 - 2.4RHEL-10-Nightlyx86_64✅ passed01.09.2025 14:00:3012min 40stest pipeline
RHEL8 - 2.4RHEL-8.10.0-Nightlyx86_64✅ passed01.09.2025 14:00:3216min 53stest pipeline
RHEL9 - 2.4RHEL-9.6.0-Nightlyx86_64✅ passed01.09.2025 14:00:3016min 59stest pipeline
Fedora - PyTest - 2.4Fedora-latestx86_64✅ passed29.09.2025 11:17:247min 50stest pipeline
CentOS Stream 10 - PyTest - 2.4CentOS-Stream-10x86_64✅ passed29.09.2025 11:17:278min 48stest pipeline
CentOS Stream 9 - PyTest - 2.4CentOS-Stream-9x86_64✅ passed29.09.2025 11:17:2510min 39stest pipeline
Fedora - PyTest - 2.4-microFedora-latestx86_64✅ passed29.09.2025 11:17:267min 44stest pipeline
CentOS Stream 9 - PyTest - 2.4-microCentOS-Stream-9x86_64✅ passed29.09.2025 11:17:2610min 26stest pipeline
CentOS Stream 10 - PyTest - 2.4-microCentOS-Stream-10x86_64✅ passed29.09.2025 11:17:249min 18stest pipeline

@phracek
Copy link
Member Author

phracek commented Aug 27, 2025

[test]

@phracek
Copy link
Member Author

phracek commented Aug 27, 2025

[test-pytest]

@phracek phracek force-pushed the container_pytests branch from a05d74a to 8643b65 Compare August 27, 2025 08:05
@phracek phracek force-pushed the container_pytests branch from 5e407b0 to 3dc41cd Compare August 28, 2025 06:18
@phracek phracek force-pushed the container_pytests branch 2 times, most recently from 0ed2766 to 25ed922 Compare August 28, 2025 06:26
@phracek
Copy link
Member Author

phracek commented Aug 28, 2025

[test-pytest]

@phracek
Copy link
Member Author

phracek commented Aug 29, 2025

[test-pytest]

@phracek
Copy link
Member Author

phracek commented Sep 1, 2025

/auto-merge

Co-authored-by: Karolina Surma <[email protected]>
Copy link
Member

@frenzymadness frenzymadness left a 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.

phracek and others added 2 commits September 23, 2025 16:03
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
Co-authored-by: Lumír 'Frenzy' Balhar <[email protected]>
Copy link
Member

@frenzymadness frenzymadness left a 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]>
@phracek
Copy link
Member Author

phracek commented Sep 25, 2025

[test-pytest]

@phracek phracek changed the title First PoC for testing httpd-2.4 container by PyTest Testing httpd-2.4 container by PyTest Sep 25, 2025
Copy link
Member

@frenzymadness frenzymadness left a 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.

phracek and others added 3 commits September 26, 2025 15:22
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]>
phracek and others added 5 commits September 26, 2025 15:23
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]>
@phracek
Copy link
Member Author

phracek commented Sep 29, 2025

let's try for another round of tests

[test-pytest]

@phracek
Copy link
Member Author

phracek commented Sep 30, 2025

/auto-merge

Copy link
Member

@frenzymadness frenzymadness left a 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.

Comment on lines 14 to 21
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")
Copy link
Member

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.

@phracek phracek merged commit 4643c8d into master Oct 1, 2025
10 checks passed
@phracek phracek deleted the container_pytests branch October 1, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants