This is an automated email from the ASF dual-hosted git repository. joezou pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
commit dbba7d116895ff35650f8e81801cd7b4e2767568 Author: Joe Zou <yixian....@gmail.com> AuthorDate: Thu Oct 22 23:10:01 2020 +0800 add test for filter/custom_filter/dubbo --- .travis.yml | 1 + filter/custom_filter/dubbo/.travis.yml | 16 +++++++++++ .../dubbo/go-client/integration_testing.sh | 31 ++++++++++++++++++++++ .../dubbo/go-server/integration_testing.sh | 31 ++++++++++++++++++++++ 4 files changed, 79 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3118b34..6c851d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,4 @@ import: - direct/dubbo/.travis.yml - async/.travis.yml - metric/dubbo/.travis.yml + - filter/custom_filter/dubbo/.travis.yml diff --git a/filter/custom_filter/dubbo/.travis.yml b/filter/custom_filter/dubbo/.travis.yml new file mode 100644 index 0000000..dc569b1 --- /dev/null +++ b/filter/custom_filter/dubbo/.travis.yml @@ -0,0 +1,16 @@ +stages: + - Test filter/custom_filter/dubbo +jobs: + include: + - stage: Test filter/custom_filter/dubbo + script: + - PROJECT_HOME=$(pwd) + - CASE_HOME=/filter/custom_filter/dubbo + - GO_SERVER=/go-server + - GO_CLIENT=/go-client + - docker run -d --network host zookeeper + - echo "zookeeper listen in [:]2181" + - cd ${PROJECT_HOME}${CASE_HOME}${GO_SERVER} + - ./integration_testing.sh ${PROJECT_HOME} ${GO_SERVER} true + - cd ${PROJECT_HOME}${CASE_HOME}${GO_CLIENT} + - ./integration_testing.sh ${PROJECT_HOME} ${GO_CLIENT} diff --git a/filter/custom_filter/dubbo/go-client/integration_testing.sh b/filter/custom_filter/dubbo/go-client/integration_testing.sh new file mode 100755 index 0000000..49f7b49 --- /dev/null +++ b/filter/custom_filter/dubbo/go-client/integration_testing.sh @@ -0,0 +1,31 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#!/bin/bash + +set -e +set -x + +rm -rf assembly +cp -r $1/.integration/testing/$2/assembly . +assembly/linux/dev.sh +cd target/*/*/ +# is async +if [[ $3 ]]; then + nohup bin/load.sh start > a.out& +else + bin/load.sh start +fi \ No newline at end of file diff --git a/filter/custom_filter/dubbo/go-server/integration_testing.sh b/filter/custom_filter/dubbo/go-server/integration_testing.sh new file mode 100755 index 0000000..49f7b49 --- /dev/null +++ b/filter/custom_filter/dubbo/go-server/integration_testing.sh @@ -0,0 +1,31 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#!/bin/bash + +set -e +set -x + +rm -rf assembly +cp -r $1/.integration/testing/$2/assembly . +assembly/linux/dev.sh +cd target/*/*/ +# is async +if [[ $3 ]]; then + nohup bin/load.sh start > a.out& +else + bin/load.sh start +fi \ No newline at end of file