Skip to content

Commit

Permalink
Add E2E tests for Release version of Agones
Browse files Browse the repository at this point in the history
Run E2E tests with FeatureGates disabled.
  • Loading branch information
aLekSer committed May 14, 2020
1 parent 52ee5fc commit baff8dd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
7 changes: 5 additions & 2 deletions build/e2e-image/e2e.sh
Expand Up @@ -13,9 +13,12 @@
# 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.

FEATURES=$1
echo $FEATURES
set -e
echo "installing current release"
DOCKER_RUN= make install
DOCKER_RUN= make install FEATURE_GATES=$FEATURES
echo "starting e2e test"
DOCKER_RUN= make test-e2e ARGS=-parallel=64
DOCKER_RUN= make test-e2e ARGS=-parallel=64 FEATURE_GATES=$FEATURES
echo "completed e2e test"
4 changes: 2 additions & 2 deletions build/e2e-image/entrypoint.sh
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -e

FEATURES=$1
export SHELL="/bin/bash"
export KUBECONFIG="/root/.kube/config"
mkdir -p /go/src/agones.dev/ /root/.kube/
Expand All @@ -30,6 +30,6 @@ kubectl port-forward statefulset/consul 8500:8500 &
echo "Waiting consul port-forward to launch on 8500..."
timeout 60 bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' 127.0.0.1 8500
echo "consul port-forward launched. Starting e2e tests..."
consul lock -child-exit-code=true -timeout 30m -try 30m -verbose LockE2E /root/e2e.sh
consul lock -child-exit-code=true -timeout 30m -try 30m -verbose LockE2E '/root/e2e.sh $FEATURES'
killall -q kubectl || true
echo "successfully killed kubectl proxy"
14 changes: 13 additions & 1 deletion cloudbuild.yaml
Expand Up @@ -227,14 +227,26 @@ steps:
- GO111MODULE=on

#
# Run the e2e tests
# Run the e2e tests with FeatureGates
#

- name: 'e2e-runner'
args: ['PlayerTracking=true&ContainerPortAllocation=true']
waitFor:
- push-images
- build-e2e

#
# Run the e2e tests without FeatureGates
#

- name: 'e2e-runner-release'
args: ['']
waitFor:
- e2e-runner
- push-images
- build-e2e

#
# SDK conformance tests
#
Expand Down

0 comments on commit baff8dd

Please sign in to comment.