mirror of https://github.com/knative/docs.git
Temporarily start knative serving for testing purpose
This commit is contained in:
parent
833105333d
commit
75b8fc434b
|
@ -24,6 +24,9 @@ function knative_setup() {
|
|||
|
||||
initialize $@
|
||||
|
||||
# Temporarily added for testing purpose
|
||||
knative_setup || fail_test
|
||||
|
||||
go_test_e2e ./test/e2e || fail_test
|
||||
|
||||
success
|
||||
|
|
|
@ -3,11 +3,11 @@ languages:
|
|||
expectedOutput: "Hello Spring Boot Sample v1!"
|
||||
preCommands:
|
||||
- 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"
|
||||
args: "helloworld.zip -d helloworld-java_tmp"
|
||||
args: "helloworld-java.zip -d helloworld-java_tmp"
|
||||
- exec: "rm"
|
||||
args: "helloworld.zip"
|
||||
args: "helloworld-java.zip"
|
||||
copies:
|
||||
- "/src/main/java/com/example/helloworld/HelloworldApplication.java"
|
||||
- "service.yaml"
|
||||
|
|
|
@ -174,6 +174,7 @@ func checkDeployment(t *testing.T, appName, expectedOutput string) {
|
|||
|
||||
// SampleAppTestBase tests individual sample app
|
||||
func SampleAppTestBase(t *testing.T, lc languageConfig, expectedOutput string) {
|
||||
t.Parallel()
|
||||
imagePath := ImagePath(lc.AppName)
|
||||
yamlFilePath := path.Join(lc.WorkDir, "service.yaml")
|
||||
|
||||
|
|
|
@ -271,14 +271,14 @@ function start_latest_knative_serving() {
|
|||
kubectl apply -f ${KNATIVE_ISTIO_YAML} || return 1
|
||||
wait_until_pods_running istio-system || return 1
|
||||
kubectl label namespace default istio-injection=enabled || return 1
|
||||
subheader "Installing Knative Build"
|
||||
echo "Installing Build from ${KNATIVE_BUILD_RELEASE}"
|
||||
kubectl apply -f ${KNATIVE_BUILD_RELEASE} || return 1
|
||||
# subheader "Installing Knative Build"
|
||||
# echo "Installing Build from ${KNATIVE_BUILD_RELEASE}"
|
||||
# kubectl apply -f ${KNATIVE_BUILD_RELEASE} || return 1
|
||||
subheader "Installing Knative Serving"
|
||||
echo "Installing Serving from ${KNATIVE_SERVING_RELEASE}"
|
||||
kubectl apply -f ${KNATIVE_SERVING_RELEASE} || 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.
|
||||
|
|
Loading…
Reference in New Issue