Skip to content

Commit ea52deb

Browse files
committed
Added some tests.
1 parent a3acc3e commit ea52deb

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

charts/eoapi/tests/stac_browser_tests.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,61 @@ tests:
5151
- equal:
5252
path: metadata.annotations.annotation2
5353
value: world
54+
- it: "stac browser deployment with auth enabled"
55+
set:
56+
raster.enabled: false
57+
stac.enabled: true
58+
vector.enabled: false
59+
multidim.enabled: false
60+
browser.enabled: true
61+
stac-auth-proxy.enabled: true
62+
ingress.host: "localhost"
63+
stac.ingress.path: "/stac"
64+
mockOidcServer.ingress.path: "/mock-oidc"
65+
browser.oidcClientId: "test-client"
66+
gitSha: "ABC123"
67+
template: templates/services/browser/deployment.yaml
68+
asserts:
69+
- isKind:
70+
of: Deployment
71+
- contains:
72+
path: spec.template.spec.containers[0].env
73+
content:
74+
name: SB_catalogUrl
75+
value: "http://localhost/stac"
76+
- contains:
77+
path: spec.template.spec.containers[0].env
78+
content:
79+
name: SB_authConfig
80+
value: |
81+
{
82+
"type": "openIdConnect",
83+
"openIdConnectUrl": "http://localhost/mock-oidc/.well-known/openid-configuration",
84+
"oidcOptions": {
85+
"client_id": "test-client"
86+
}
87+
}
88+
- it: "stac browser deployment without auth"
89+
set:
90+
raster.enabled: false
91+
stac.enabled: true
92+
vector.enabled: false
93+
multidim.enabled: false
94+
browser.enabled: true
95+
stac-auth-proxy.enabled: false
96+
ingress.host: "localhost"
97+
stac.ingress.path: "/stac"
98+
gitSha: "ABC123"
99+
template: templates/services/browser/deployment.yaml
100+
asserts:
101+
- isKind:
102+
of: Deployment
103+
- contains:
104+
path: spec.template.spec.containers[0].env
105+
content:
106+
name: SB_catalogUrl
107+
value: "http://localhost/stac"
108+
- notContains:
109+
path: spec.template.spec.containers[0].env
110+
content:
111+
name: SB_authConfig

0 commit comments

Comments
 (0)