Add tests that packages depend on bash

This commit adds bats tests that the RPM and Debian packages depend on
bash.

Relates #18292
This commit is contained in:
Jason Tedor 2016-05-12 09:04:24 -04:00
parent 9d5537d874
commit 9ce96f5792
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,10 @@ setup() {
export_elasticsearch_paths
}
@test "[DEB] package depends on bash" {
dpkg -I elasticsearch-$(cat version).deb | grep "Depends:.*bash.*"
}
##################################
# Install DEB package
##################################

View File

@ -39,6 +39,10 @@ setup() {
export_elasticsearch_paths
}
@test "[RPM] package depends on bash" {
rpm -qpR elasticsearch-$(cat version).rpm | grep '/bin/bash'
}
##################################
# Install RPM package
##################################