From 69e3c874ab5170031f2b97dfda7dfb10a8cae30e Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 31 May 2016 18:53:29 +0200 Subject: [PATCH] Add test to prevent future regressions License: MIT Signed-off-by: Jakub Sztandera --- .../t0500-issues-and-regressions-offline.sh | 11 ++++++++++ .../t0501-issues-and-regressions-online.sh | 20 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 test/sharness/t0500-issues-and-regressions-offline.sh create mode 100755 test/sharness/t0501-issues-and-regressions-online.sh diff --git a/test/sharness/t0500-issues-and-regressions-offline.sh b/test/sharness/t0500-issues-and-regressions-offline.sh new file mode 100755 index 000000000000..596448d7211e --- /dev/null +++ b/test/sharness/t0500-issues-and-regressions-offline.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +test_description="Tests for various fxed issues and regressions." + +. lib/test-lib.sh + +test_init_ipfs + +# Tests go here + +test_done diff --git a/test/sharness/t0501-issues-and-regressions-online.sh b/test/sharness/t0501-issues-and-regressions-online.sh new file mode 100755 index 000000000000..cdd58cef3c97 --- /dev/null +++ b/test/sharness/t0501-issues-and-regressions-online.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +test_description="Tests for various fxed issues and regressions." + +. lib/test-lib.sh + +test_init_ipfs + +test_launch_ipfs_daemon + +# Tests go here + +test_expect_sucess "commands command with flag flags works via HTTP API" ' + curl "http://$API_ADDR/api/v0/commands?flags" | grep "verbose" +' + +test_kill_ipfs_daemon + +test_done +