airshipctl/cmd/plan/validate_test.go
Ruslan Aliev 6076891f31 Introduce plan validate command
This patch implements CLI command to invoke plan validation.
Appropriate functionality was already added to pkg previously.

Change-Id: I038b49c8de0af65f38b62950b27b31d95a6301a9
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #19
Relates-To: #497
Closes: #497
2021-03-27 12:59:30 -05:00

36 lines
931 B
Go
Executable File

/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package plan_test
import (
"testing"
"opendev.org/airship/airshipctl/cmd/plan"
"opendev.org/airship/airshipctl/testutil"
)
func TestNewValidateCommand(t *testing.T) {
tests := []*testutil.CmdTest{
{
Name: "plan-validate-with-help",
CmdLine: "--help",
Cmd: plan.NewValidateCommand(nil),
},
}
for _, testcase := range tests {
testutil.RunTest(t, testcase)
}
}