Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion internal/flags/assets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ func TestAssetImportCommon(t *testing.T) {
}

func TestAssetExportCommon(t *testing.T) {
checkFlags(t, &AssetExportCommon{}, []string{"path"})
checkFlags(t, &AssetExportCommon{}, []string{"path", "repository", "reference", "private-key-file", "message"})
}

func TestAssetDumpCommon(t *testing.T) {
checkFlags(t, &AssetDumpCommon{}, []string{"path", "repository", "reference", "private-key-file", "message"})
}

func TestAssetLoadCommon(t *testing.T) {
checkFlags(t, &AssetLoadCommon{}, []string{"repository", "reference", "private-key-file"})
}

func TestAssetCopyCommon(t *testing.T) {
Expand Down
11 changes: 11 additions & 0 deletions internal/flags/devicegroups_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2024 Itential Inc. All Rights Reserved
// Unauthorized copying of this file, via any medium is strictly prohibited
// Proprietary and confidential

package flags

import "testing"

func TestDeviceGroupCreateOptions(t *testing.T) {
checkFlags(t, &DeviceGroupCreateOptions{}, []string{"description"})
}
12 changes: 12 additions & 0 deletions internal/flags/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ import "testing"
func TestModelCreateOptions(t *testing.T) {
checkFlags(t, &ModelCreateOptions{}, []string{"description", "schema", "replace"})
}

func TestModelDeleteOptions(t *testing.T) {
checkFlags(t, &ModelDeleteOptions{}, []string{"all", "delete-instances"})
}

func TestModelExportOptions(t *testing.T) {
checkFlags(t, &ModelExportOptions{}, []string{"expand"})
}

func TestModelImportOptions(t *testing.T) {
checkFlags(t, &ModelImportOptions{}, []string{"all", "skip-checks"})
}