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.

Relates #26229
  • Loading branch information
jasontedor authored Aug 16, 2017
1 parent ca6eaf9 commit 7fb9105
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 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,13 @@ 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
[ -d /var/run/elasticsearch ]
systemctl stop elasticsearch.service
}

0 comments on commit 7fb9105

Please sign in to comment.