Skip to content

Commit

Permalink
Add packaging test for systemd runtime directive
Browse files Browse the repository at this point in the history
We previously added a RuntimeDirectory directive to the systemd service
file for Elasticsearch. This commit adds a packaging test for the
situation that this directive was intended to address.
  • Loading branch information
jasontedor committed Aug 16, 2017
1 parent 01f6851 commit f588b56
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qa/vagrant/src/test/resources/packaging/tests/60_systemd.bats
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,12 @@ setup() {
[ "$max_address_space" == "unlimited" ]
systemctl stop elasticsearch.service
}

@test "[SYSTEMD] test runtime directory" {
clean_before_test
install_package
sudo rm -rf /var/run/elasticsearch
systemctl start elasticsearch.service
wait_for_elasticsearch_status
systemctl stop elasticsearch.service
}

0 comments on commit f588b56

Please sign in to comment.