From 6d2e027eb728c8294fdd7c3692e9853b3ca2603b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 21 Feb 2019 20:34:08 +0100 Subject: Merging upstream version 1.12.1. Signed-off-by: Daniel Baumann --- tests/lifecycle.bats | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 tests/lifecycle.bats (limited to 'tests/lifecycle.bats') diff --git a/tests/lifecycle.bats b/tests/lifecycle.bats deleted file mode 100755 index 8efdf4478..000000000 --- a/tests/lifecycle.bats +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bats - -INSTALLATION="$BATS_TMPDIR/installation" -ENV="${INSTALLATION}/netdata/etc/netdata/.environment" - -setup() { - if [ ! -f .gitignore ]; then - echo "Run as ./tests/lifecycle/$(basename "$0") from top level directory of git repository" - exit 1 - fi -} - -@test "install netdata" { - ./netdata-installer.sh --dont-wait --dont-start-it --auto-update --install "${INSTALLATION}" -} - -@test "update netdata" { - export ENVIRONMENT_FILE="${ENV}" - /etc/cron.daily/netdata-updater - ! grep "new_installation" "${ENV}" -} - -@test "uninstall netdata" { - ./packaging/installer/netdata-uninstaller.sh --yes --force --env "${ENV}" - [ ! -f "${INSTALLATION}/netdata/usr/sbin/netdata" ] - [ ! -f "/etc/cron.daily/netdata-updater" ] -} -- cgit v1.2.3