[agent-deploy] - cmii new app deploy
This commit is contained in:
@@ -175,6 +175,21 @@ func TestPipelineCommandExecutor2(t *testing.T) {
|
||||
// Add more test cases as needed...
|
||||
}
|
||||
|
||||
func TestHardCodeCommandExecutor(t *testing.T) {
|
||||
|
||||
// 20.04 default
|
||||
specificDockerVersion := "5:20.10.20~3-0~ubuntu-focal"
|
||||
// apt-cache madison docker-ce | grep 20.10.20 | awk '{print$3}'
|
||||
|
||||
// get by method
|
||||
ok, log4 := HardCodeCommandExecutor("apt-cache madison docker-ce | grep 20.10.20 | awk '{print$3}'")
|
||||
if ok {
|
||||
specificDockerVersion = strings.TrimSpace(log4[0])
|
||||
}
|
||||
|
||||
fmt.Println(specificDockerVersion)
|
||||
}
|
||||
|
||||
func TestSimple(t *testing.T) {
|
||||
|
||||
for i := 0; i < 10; i++ {
|
||||
|
||||
Reference in New Issue
Block a user