github.com/kiegroup/kie-tools/packages/kn-plugin-workflow@v0.32.0/it-tests/deploy_test.go (about) 1 //go:build it_tests 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 package it_tests 23 24 import ( 25 "testing" 26 27 "github.com/kiegroup/kie-tools/packages/kn-plugin-workflow/pkg/command" 28 ) 29 30 type cfgTestInputDeploy struct { 31 input command.DeployUndeployCmdConfig 32 } 33 34 var cfgTestInputDeploy_Success = []cfgTestInputDeploy{ 35 {input: command.DeployUndeployCmdConfig{}}, 36 } 37 38 func transformDeployCmdCfgToArgs(cfg command.DeployUndeployCmdConfig) []string { 39 args := []string{"deploy"} 40 return args 41 } 42 43 func TestDeployProjectSuccess(t *testing.T) { 44 ////TODO: implement deploy test 45 // for testIndex, test := range cfgTestInputDeploy_Success { 46 // t.Run(fmt.Sprintf("Test deploy project success index: %d", testIndex), func(t *testing.T) { 47 // // Run `deploy` command 48 // out, err := ExecuteKnWorkflow(transformDeployCmdCfgToArgs(test.input)...) 49 // require.NoErrorf(t, err, "Expected nil error, got: %v", err) 50 // fmt.Println(out) 51 // require.Equal(t, command.DeployCommandOutput, out) 52 // }) 53 // } 54 }