don't run app deploy tests and spread out unit tests to 4 containers. closes #1787

This commit is contained in:
Michael Hobbs committed 2015-12-21 10:18:16 -08:00
1 parent 2955150dfe
commit 76ad65b715
20 files changed
+192 -148

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/env bats
load test_helper
setup() {
create_app
}
teardown() {
destroy_app
}
@test "(events) check conffiles" {
run bash -c "test -f /etc/logrotate.d/dokku"
echo "output: "$output
echo "status: "$status
assert_success
run bash -c "test -f /etc/rsyslog.d/99-dokku.conf"
echo "output: "$output
echo "status: "$status
assert_success
run bash -c "stat -c '%U:%G:%a' /var/log/dokku/"
echo "output: "$output
echo "status: "$status
assert_output "syslog:dokku:775"
run bash -c "stat -c '%U:%G:%a' /var/log/dokku/events.log"
echo "output: "$output
echo "status: "$status
assert_output "syslog:dokku:664"
}
@test "(events) log commands" {
run dokku events:on
deploy_app
run dokku events
echo "output: "$output
echo "status: "$status
assert_success
run dokku events:off
}