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
CERT_KUB_BROKER_URL=<broker-cert-url># in the format broker.<namespace> where ns is the ns in where scenescape is installed
33
-
CERT_KUB_WEB_URL=<web-cert-url># in the format web.<namespace> where ns is the ns in where scenescape is installed
44
+
## VS Code Test Extension
45
+
46
+
Add `--backend=kubernetes` to `python.testing.pytestArgs` in
47
+
`.vscode/settings.json`:
48
+
49
+
```json
50
+
{
51
+
"python.testing.pytestArgs": [
52
+
"tests",
53
+
"--backend=kubernetes"
54
+
],
55
+
"python.testing.pytestEnabled": true,
56
+
"python.testing.unittestEnabled": false
57
+
}
34
58
```
35
59
36
-
# How it works
60
+
Then click **Refresh Tests** and run from the Testing sidebar as normal.
61
+
62
+
## How it works
37
63
38
-
The kubernetes `runtest`, which will be run when `make -C tests` is started with `KUBERNETES=1` does the following:
64
+
When `--backend=kubernetes` is passed to pytest the `K8sManager` in
65
+
`tests/utils/k8s.py` performs the following steps:
39
66
40
-
- expects Intel® SceneScape to be running in validation mode on a Kubernetes cluster with `tests.enabled: true`
41
-
- this will start one FRP server (frps) and multiple FRP client (frpc) containers to proxy pod ports
42
-
- require an additional `init-tests` image to copy our test database into our pgserver pod to run tests against
43
-
- uses `kubectl` which uses the kubeconfig defined by the `KUBECONFIG` environment variable to connect to a cluster (local or remote) to manage PVCs and deployments
44
-
- starts multiple [FRP](https://github.com/fatedier/frp) clients as docker containers which proxy most of the useful ports out from Kubernetes back into the docker environment, through one frps server port. These containers proxy the ports from the Kubernetes pods back into the docker test host so our existing test infrastructure does not need to be modified.
67
+
1. Creates a KinD cluster named `pytest-test-cluster` using the config in
68
+
`tests/kubernetes/config/kind_config.yaml`.
69
+
2. Installs the Nginx Ingress Controller and cert-manager.
70
+
3. Tags and loads all SceneScape Docker images (plus external dependencies
71
+
parsed from `helm template` output) into the KinD node.
72
+
4. Runs `make copy-files` in `kubernetes/` to populate the Helm chart files.
73
+
5. Installs the Helm chart with generated values (passwords, proxy settings).
74
+
6. Waits for all core services to become ready (web, scene controller,
0 commit comments