mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-18 23:38:11 +00:00
32 lines
1023 B
Go
32 lines
1023 B
Go
package e2e
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/oam-dev/kubevela/e2e"
|
|
|
|
"github.com/onsi/ginkgo"
|
|
)
|
|
|
|
var (
|
|
envName = "env-application"
|
|
workloadType = "webservice"
|
|
applicationName = "app-basic"
|
|
traitAlias = "scale"
|
|
)
|
|
|
|
var _ = ginkgo.Describe("Application", func() {
|
|
e2e.EnvInitContext("env init", envName)
|
|
e2e.EnvShowContext("env show", envName)
|
|
e2e.EnvSetContext("env set", envName)
|
|
e2e.WorkloadRunContext("run", fmt.Sprintf("vela comp run -t %s %s -p 80 --image nginx:1.9.4",
|
|
workloadType, applicationName))
|
|
e2e.ComponentListContext("comp ls", applicationName, "")
|
|
e2e.TraitManualScalerAttachContext("vela attach trait", traitAlias, applicationName)
|
|
//e2e.ComponentListContext("app ls", applicationName, traitAlias)
|
|
e2e.ApplicationShowContext("app show", applicationName, workloadType)
|
|
e2e.ApplicationStatusContext("app status", applicationName, workloadType)
|
|
e2e.ApplicationCompStatusContext("comp status", applicationName, workloadType)
|
|
e2e.WorkloadDeleteContext("delete", applicationName)
|
|
})
|