You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/configuration/config-files.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
RHDH deployment uses YAML configuration files for app config, plugins, and secrets.
4
4
5
+
If you are working inside the overlay repository, see [Overlay Configuration Files](/overlay/test-structure/configuration-files) for overlay-specific behavior and CI integration details.
6
+
5
7
## File Structure
6
8
7
9
Create configuration files in `tests/config/`:
@@ -137,6 +139,21 @@ When you deploy RHDH, configurations are merged:
137
139
138
140
Later files override earlier files. You only need to specify what's different from defaults.
139
141
142
+
## Verify the Final Merged Config
143
+
144
+
If you need to confirm the final merged configuration:
145
+
146
+
1. Run a test once so RHDH is deployed.
147
+
2. Inspect the ConfigMaps in the test namespace:
148
+
149
+
```bash
150
+
oc get configmap -n <namespace>
151
+
oc get configmap app-config-rhdh -n <namespace> -o yaml
152
+
oc get configmap dynamic-plugins -n <namespace> -o yaml
153
+
```
154
+
155
+
This shows the exact content after defaults, auth config, and your overrides are merged.
156
+
140
157
## Plugin Metadata Injection
141
158
142
159
During deployment, the package automatically handles plugin configurations from metadata files. The behavior depends on whether your [`dynamic-plugins.yaml`](#dynamic-plugins-yaml) file exists:
@@ -219,6 +236,31 @@ When `GIT_PR_NUMBER` is set (by OpenShift CI), local plugin paths are automatica
219
236
220
237
This allows E2E tests to run against the actual OCI images built for the PR.
221
238
239
+
### Local Reproduction (Optional)
240
+
241
+
If you want to reproduce OCI URL replacement locally, create the required files at the workspace root:
For PR builds, OCI URL generation is required. Deployment will fail if `source.json` or `plugins-list.yaml` doesn't exist, or if version fetching fails.
Copy file name to clipboardExpand all lines: docs/guide/core-concepts/playwright-fixtures.md
+44-3Lines changed: 44 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,9 @@ This import replaces the standard Playwright import and provides additional fixt
25
25
26
26
The `rhdh` fixture is worker-scoped, meaning:
27
27
28
-
- One deployment is shared across all tests in a worker
29
-
-Deployment happens once per worker, not per test
30
-
- All tests in the same worker share the same RHDH instance
28
+
- One deployment object is shared across all tests in a worker
29
+
-You control *when* deployment happens (usually in `test.beforeAll`)
30
+
- All tests in the same worker can share the same RHDH instance
31
31
32
32
```typescript
33
33
test.beforeAll(async ({ rhdh }) => {
@@ -165,6 +165,47 @@ For local development:
165
165
- Namespaces are preserved for debugging
166
166
- Manual cleanup may be required
167
167
168
+
## Best Practices for Projects and Spec Files
169
+
170
+
Each Playwright project name creates a **separate namespace**. The fixture creates one `RHDHDeployment` per worker, and you typically call `rhdh.deploy()` once in `beforeAll`.
171
+
172
+
**Recommended for overlay workspaces:**
173
+
174
+
- Use **one Playwright project** named after the workspace.
175
+
- Keep **one spec file** per workspace unless you have a strong reason to split.
176
+
177
+
This keeps deployment cost low and avoids multiple namespaces unless required.
178
+
179
+
## When You Need Multiple Projects or Spec Files
180
+
181
+
If requirements differ (different auth, configs, or namespaces), you can:
182
+
183
+
1.**Use multiple projects** with different names and config overrides.
184
+
2.**Manually manage deployments** using `RHDHDeployment` for advanced flows.
0 commit comments