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 c1cf998
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
7 changes: 5 additions & 2 deletions build/e2e-image/e2e.sh
Original file line number Diff line number Diff line change
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"
6 changes: 4 additions & 2 deletions build/e2e-image/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -e

FEATURES=$1
echo $FEATURES
export SHELL="/bin/bash"
export KUBECONFIG="/root/.kube/config"
mkdir -p /go/src/agones.dev/ /root/.kube/
Expand All @@ -30,6 +31,7 @@ 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
echo "consul lock -child-exit-code=true -timeout 30m -try 30m -verbose LockE2E '/root/e2e.sh "$FEATURES""
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"
16 changes: 15 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,28 @@ steps:
- GO111MODULE=on

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

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

#
# Run the e2e tests without FeatureGates
#

- name: 'e2e-runner'
args: ['']
id: e2e-stable
waitFor:
- e2e-feature-gates
- push-images
- build-e2e

#
# SDK conformance tests
#
Expand Down

0 comments on commit c1cf998

Please sign in to comment.