Commit bdf5869
RHAIENG-4029: add tier-2 integration test for agentic RAG agent (#101)
* feat(agentic_rag): add tier-2 integration deployment test
Add integration test that builds, deploys, and health-checks the
LangGraph Agentic RAG agent on OpenShift. Unlike tier-1 agents, this
test validates RAG-specific env vars (EMBEDDING_MODEL, VECTOR_STORE_ID,
EMBEDDING_DIMENSION, VECTOR_STORE_PROVIDER) are present before
attempting deployment, and writes them to .env so the Helm deploy
target passes them through to the pod.
Also fixes the `make test` target to ignore the integration directory,
preventing import errors when running unit tests locally.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add env var comment and redact VECTOR_STORE_ID in integration logs
Clarify why agent.yaml-optional vars are required in the integration
test, and extend _REDACT_PATTERNS to cover VECTOR_STORE_ID which may
contain connection strings with credentials.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address CodeRabbit review feedback
Validate EMBEDDING_DIMENSION as int before writing to .env, and add
quoted-format redaction pattern for VECTOR_STORE_ID to cover Helm
--set usage in deployment logs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: address teammate review feedback
- Move helpers (_write_env_file, INTERNAL_REGISTRY) and fixtures
(agent_dir, agent_name, deployed_agent) to conftest.py so the test
file contains only test functions (andrewdonheiser)
- Add broad `except Exception` fallback in deployed_agent fixture so
unexpected errors surface clearly in CI (andrewdonheiser)
- Wrap EMBEDDING_DIMENSION int() cast with try/except and pytest.fail
for a clear error message (tarun-etikala)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address CodeRabbit review feedback
- Use module import for shared fixtures to avoid F811 lint collision
with fixture argument names
- Move yield outside exception handlers so test assertion failures
aren't masked as "deployment errors"
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: sort imports to satisfy ruff I001
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 84444c9 commit bdf5869
5 files changed
Lines changed: 119 additions & 1 deletion
File tree
- agents/langgraph/agentic_rag
- tests/integration
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
Whitespace-only changes.
Lines changed: 97 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments