Skip to content

Add pytest suite for e2e testing in dev/stage environments#1428

Merged
bsquizz merged 23 commits intoRedHatInsights:masterfrom
JuanmaBM:full-cicd
Feb 17, 2026
Merged

Add pytest suite for e2e testing in dev/stage environments#1428
bsquizz merged 23 commits intoRedHatInsights:masterfrom
JuanmaBM:full-cicd

Conversation

@JuanmaBM
Copy link
Copy Markdown
Contributor

This PR adds a CICD process that executes a job that deploys several Clowder resources and then executes a set of pytest tests to verify the E2E behaviour of Clowder.

@JuanmaBM JuanmaBM requested review from bsquizz and maknop October 30, 2025 14:16
@JuanmaBM JuanmaBM self-assigned this Oct 30, 2025
Comment thread ci/full-cicd/job.yaml Outdated
@bsquizz bsquizz force-pushed the full-cicd branch 2 times, most recently from c2c5e7f to b754c62 Compare January 28, 2026 05:45
@bsquizz bsquizz changed the title Clowder E2E job Add pytest suite for e2e testing in dev/stage environments Feb 12, 2026
JuanmaBM and others added 20 commits February 12, 2026 16:27
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
…environment as well

Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Signed-off-by: Juanma Barea <juanmabareamartinez@gmail.com>
Reorganized ci/full-cicd tests into tests/rh_clowder_ci as a proper
pip-installable Python package with the following improvements:

- Converted bash deployment scripts to pytest module-scoped fixture
- Replaced subprocess 'oc' calls with ocviapy library (get_json, oc,
  process_template, apply_config, get_api_resources)
- Used wait_for library for robust retry logic
- Converted test resources to OpenShift Template with NAMESPACE parameter
- Implemented intelligent resource cleanup that dynamically determines
  namespaced vs cluster-scoped resources for proper teardown
- Added proper Python package structure with pyproject.toml
- Configured ruff for code linting and formatting
- Added Python-specific .gitignore for build artifacts

The new package can be installed with: pip install -e tests/rh_clowder_ci

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add pytest logging configuration to enable timestamped console and file
output. Replace print statements with logger.info() calls for better
integration with pytest and configurable log levels.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@bsquizz bsquizz merged commit b319d04 into RedHatInsights:master Feb 17, 2026
6 of 7 checks passed
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.

2 participants