MCPcopy Index your code
hub / github.com/databus23/helm-diff / TestManifests

Function TestManifests

diff/diff_test.go:171–587  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

169}
170
171func TestManifests(t *testing.T) {
172 ansi.DisableColors(true)
173
174 specBeta := map[string]*manifest.MappingResult{
175 "default, nginx, Deployment (apps)": {
176 Name: "default, nginx, Deployment (apps)",
177 Kind: "Deployment",
178 Content: `
179apiVersion: apps/v1beta1
180kind: Deployment
181metadata:
182 name: nginx
183`,
184 },
185 }
186
187 specRelease := map[string]*manifest.MappingResult{
188 "default, nginx, Deployment (apps)": {
189 Name: "default, nginx, Deployment (apps)",
190 Kind: "Deployment",
191 Content: `
192apiVersion: apps/v1
193kind: Deployment
194metadata:
195 name: nginx
196`,
197 },
198 }
199
200 specReleaseSpec := map[string]*manifest.MappingResult{
201 "default, nginx, Deployment (apps)": {
202 Name: "default, nginx, Deployment (apps)",
203 Kind: "Deployment",
204 Content: `
205apiVersion: apps/v1
206kind: Deployment
207metadata:
208 name: nginx
209spec:
210 replicas: 3
211`,
212 },
213 }
214
215 specReleaseRenamed := map[string]*manifest.MappingResult{
216 "default, nginx-renamed, Deployment (apps)": {
217 Name: "default, nginx-renamed, Deployment (apps)",
218 Kind: "Deployment",
219 Content: `
220apiVersion: apps/v1
221kind: Deployment
222metadata:
223 name: nginx-renamed
224spec:
225 replicas: 3
226`,
227 },
228 }

Callers

nothing calls this directly

Calls 2

ManifestsFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected