From e77d05ec94b528edec980d5df4bf0fadcbfd3da0 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Fri, 3 Jan 2020 18:02:28 +0000 Subject: [PATCH] Test e2e Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- .travis.yml | 1 + Makefile | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7b63dba..c655013 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ go: script: - make dist - make prepare-test +- make test-e2e deploy: provider: releases diff --git a/Makefile b/Makefile index a10791b..b4106ba 100644 --- a/Makefile +++ b/Makefile @@ -28,3 +28,13 @@ prepare-test: sudo systemctl status containerd --no-pager sudo systemctl status faas-containerd --no-pager sudo systemctl status faasd --no-pager + curl -SLfs https://cli.openfaas.com | sudo sh + +.PHONY: test-e2e +test-e2e: + sudo cat $(HOME)/go/src/github.com/alexellis/faasd/basic-auth-password | faas-cli login --password-stdin + faas-cli store deploy figlet + faas-cli list -v + uname | faas-cli invoke figlet + faas-cli delete figlet + faas-cli list -v \ No newline at end of file