Skip to content

Commit

Permalink
fixup! yes we should inject dependency defs into a bundle
Browse files Browse the repository at this point in the history
Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
  • Loading branch information
carolynvs committed Feb 12, 2023
1 parent 100cb24 commit 503e285
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/runtime/runtime_manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,23 @@ install:
RequiredExtensions: []string{cnab.ParameterSourcesExtensionKey},
})

rm.bundles = map[string]cnab.ExtendedBundle{
"mysql": cnab.NewBundle(bundle.Bundle{
Outputs: map[string]bundle.Output{
"password": {
Definition: "password",
},
"root-password": {
Definition: "root-password",
},
},
Definitions: map[string]*definition.Schema{
"password": {WriteOnly: makeBoolPtr(true)},
"root-password": {WriteOnly: makeBoolPtr(true)},
},
}),
}

s := rm.Install[0]
err := rm.ResolveStep(ctx, 0, s)
require.NoError(t, err)
Expand Down

0 comments on commit 503e285

Please sign in to comment.