Skip to content

Commit 503e285

Browse files
committed
fixup! yes we should inject dependency defs into a bundle
Signed-off-by: Carolyn Van Slyck <[email protected]>
1 parent 100cb24 commit 503e285

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkg/runtime/runtime_manifest_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,23 @@ install:
372372
RequiredExtensions: []string{cnab.ParameterSourcesExtensionKey},
373373
})
374374

375+
rm.bundles = map[string]cnab.ExtendedBundle{
376+
"mysql": cnab.NewBundle(bundle.Bundle{
377+
Outputs: map[string]bundle.Output{
378+
"password": {
379+
Definition: "password",
380+
},
381+
"root-password": {
382+
Definition: "root-password",
383+
},
384+
},
385+
Definitions: map[string]*definition.Schema{
386+
"password": {WriteOnly: makeBoolPtr(true)},
387+
"root-password": {WriteOnly: makeBoolPtr(true)},
388+
},
389+
}),
390+
}
391+
375392
s := rm.Install[0]
376393
err := rm.ResolveStep(ctx, 0, s)
377394
require.NoError(t, err)

0 commit comments

Comments
 (0)