Add packaging test for systemd runtime directive

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
This commit is contained in:
Jason Tedor 2017-08-16 04:35:02 -04:00 committed by GitHub
parent ca6eaf9831
commit 7fb910599a
1 changed files with 10 additions and 0 deletions

View File

@ -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
}