MCPcopy Create free account
hub / github.com/docker/cli / TestValidateSecretConfigNames

Function TestValidateSecretConfigNames

cli/compose/schema/schema_test.go:241–258  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

239}
240
241func TestValidateSecretConfigNames(t *testing.T) {
242 config := dict{
243 "version": "3.5",
244 "configs": dict{
245 "bar": dict{
246 "name": "foobar",
247 },
248 },
249 "secrets": dict{
250 "baz": dict{
251 "name": "foobaz",
252 },
253 },
254 }
255
256 err := Validate(config, "3.5")
257 assert.NilError(t, err)
258}
259
260func TestValidateInvalidVersion(t *testing.T) {
261 config := dict{

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…