mirror of
https://github.com/fluxcd/flux2.git
synced 2026-07-02 11:55:08 +00:00
Fix using Receiver adapter for ArtifactGenerator
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
parent
94c079c109
commit
9c610bacd2
2 changed files with 6 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ var getArtifactGeneratorCmd = &cobra.Command{
|
|||
ValidArgsFunction: resourceNamesCompletionFunc(swapi.GroupVersion.WithKind(swapi.ArtifactGeneratorKind)),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
get := getCommand{
|
||||
apiType: receiverType,
|
||||
apiType: artifactGeneratorType,
|
||||
list: artifactGeneratorListAdapter{&swapi.ArtifactGeneratorList{}},
|
||||
funcMap: make(typeMap),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -219,6 +219,11 @@ func Test_GetCmdErrors(t *testing.T) {
|
|||
args: "get helmrelease -n " + tmpl["fluxns"],
|
||||
assert: assertError(fmt.Sprintf("no HelmRelease objects found in \"%s\" namespace", tmpl["fluxns"])),
|
||||
},
|
||||
{
|
||||
name: "no artifact generators found in namespace",
|
||||
args: "get artifact generators -n " + tmpl["fluxns"],
|
||||
assert: assertError(fmt.Sprintf("no ArtifactGenerator objects found in \"%s\" namespace", tmpl["fluxns"])),
|
||||
},
|
||||
{
|
||||
name: "malformed status selector",
|
||||
args: "get sources git --status-selector Ready -n " + tmpl["fluxns"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue