Temporarily start knative serving for testing purpose

This commit is contained in:
Chao Dai 2019-03-22 15:29:50 -07:00
parent 833105333d
commit 75b8fc434b
4 changed files with 11 additions and 7 deletions

View File

@ -24,6 +24,9 @@ function knative_setup() {
initialize $@ initialize $@
# Temporarily added for testing purpose
knative_setup || fail_test
go_test_e2e ./test/e2e || fail_test go_test_e2e ./test/e2e || fail_test
success success

View File

@ -3,11 +3,11 @@ languages:
expectedOutput: "Hello Spring Boot Sample v1!" expectedOutput: "Hello Spring Boot Sample v1!"
preCommands: preCommands:
- exec: "curl" - exec: "curl"
args: "https://start.spring.io/starter.zip -d dependencies=web -d name=helloworld -d artifactId=helloworld -o helloworld.zip" args: "https://start.spring.io/starter.zip -d dependencies=web -d name=helloworld -d artifactId=helloworld -o helloworld-java.zip"
- exec: "unzip" - exec: "unzip"
args: "helloworld.zip -d helloworld-java_tmp" args: "helloworld-java.zip -d helloworld-java_tmp"
- exec: "rm" - exec: "rm"
args: "helloworld.zip" args: "helloworld-java.zip"
copies: copies:
- "/src/main/java/com/example/helloworld/HelloworldApplication.java" - "/src/main/java/com/example/helloworld/HelloworldApplication.java"
- "service.yaml" - "service.yaml"

View File

@ -174,6 +174,7 @@ func checkDeployment(t *testing.T, appName, expectedOutput string) {
// SampleAppTestBase tests individual sample app // SampleAppTestBase tests individual sample app
func SampleAppTestBase(t *testing.T, lc languageConfig, expectedOutput string) { func SampleAppTestBase(t *testing.T, lc languageConfig, expectedOutput string) {
t.Parallel()
imagePath := ImagePath(lc.AppName) imagePath := ImagePath(lc.AppName)
yamlFilePath := path.Join(lc.WorkDir, "service.yaml") yamlFilePath := path.Join(lc.WorkDir, "service.yaml")

View File

@ -271,14 +271,14 @@ function start_latest_knative_serving() {
kubectl apply -f ${KNATIVE_ISTIO_YAML} || return 1 kubectl apply -f ${KNATIVE_ISTIO_YAML} || return 1
wait_until_pods_running istio-system || return 1 wait_until_pods_running istio-system || return 1
kubectl label namespace default istio-injection=enabled || return 1 kubectl label namespace default istio-injection=enabled || return 1
subheader "Installing Knative Build" # subheader "Installing Knative Build"
echo "Installing Build from ${KNATIVE_BUILD_RELEASE}" # echo "Installing Build from ${KNATIVE_BUILD_RELEASE}"
kubectl apply -f ${KNATIVE_BUILD_RELEASE} || return 1 # kubectl apply -f ${KNATIVE_BUILD_RELEASE} || return 1
subheader "Installing Knative Serving" subheader "Installing Knative Serving"
echo "Installing Serving from ${KNATIVE_SERVING_RELEASE}" echo "Installing Serving from ${KNATIVE_SERVING_RELEASE}"
kubectl apply -f ${KNATIVE_SERVING_RELEASE} || return 1 kubectl apply -f ${KNATIVE_SERVING_RELEASE} || return 1
wait_until_pods_running knative-serving || return 1 wait_until_pods_running knative-serving || return 1
wait_until_pods_running knative-build || return 1 # wait_until_pods_running knative-build || return 1
} }
# Install the latest stable Knative/build in the current cluster. # Install the latest stable Knative/build in the current cluster.