mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 21:05:23 +00:00
parent
ac951e86d1
commit
8d3df330ff
@ -63,16 +63,10 @@ setup() {
|
||||
dpkg -s 'elasticsearch'
|
||||
}
|
||||
|
||||
##################################
|
||||
# Check that the package is correctly installed
|
||||
##################################
|
||||
@test "[DEB] verify package installation" {
|
||||
verify_package_installation
|
||||
}
|
||||
|
||||
##################################
|
||||
# Check that Elasticsearch is working
|
||||
##################################
|
||||
@test "[DEB] test elasticsearch" {
|
||||
start_elasticsearch_service
|
||||
|
||||
@ -152,3 +146,24 @@ setup() {
|
||||
run dpkg -s 'elasticsearch'
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "[DEB] reinstall package" {
|
||||
dpkg -i elasticsearch-$(cat version).deb
|
||||
}
|
||||
|
||||
@test "[DEB] package is installed by reinstall" {
|
||||
dpkg -s 'elasticsearch'
|
||||
}
|
||||
|
||||
@test "[DEB] verify package reinstallation" {
|
||||
verify_package_installation
|
||||
}
|
||||
|
||||
@test "[DEB] repurge package" {
|
||||
dpkg --purge 'elasticsearch'
|
||||
}
|
||||
|
||||
@test "[DEB] package has been completly removed again" {
|
||||
run dpkg -s 'elasticsearch'
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
@ -62,25 +62,16 @@ setup() {
|
||||
rpm -qe 'elasticsearch'
|
||||
}
|
||||
|
||||
##################################
|
||||
# Check that the package is correctly installed
|
||||
##################################
|
||||
@test "[RPM] verify package installation" {
|
||||
verify_package_installation
|
||||
}
|
||||
|
||||
##################################
|
||||
# Check that Elasticsearch is working
|
||||
##################################
|
||||
@test "[RPM] test elasticsearch" {
|
||||
start_elasticsearch_service
|
||||
|
||||
run_elasticsearch_tests
|
||||
}
|
||||
|
||||
##################################
|
||||
# Uninstall RPM package
|
||||
##################################
|
||||
@test "[RPM] remove package" {
|
||||
rpm -e 'elasticsearch'
|
||||
}
|
||||
@ -117,3 +108,25 @@ setup() {
|
||||
|
||||
assert_file_not_exist "/etc/sysconfig/elasticsearch"
|
||||
}
|
||||
|
||||
|
||||
@test "[RPM] reinstall package" {
|
||||
rpm -i elasticsearch-$(cat version).rpm
|
||||
}
|
||||
|
||||
@test "[RPM] package is installed by reinstall" {
|
||||
rpm -qe 'elasticsearch'
|
||||
}
|
||||
|
||||
@test "[RPM] verify package reinstallation" {
|
||||
verify_package_installation
|
||||
}
|
||||
|
||||
@test "[RPM] reremove package" {
|
||||
rpm -e 'elasticsearch'
|
||||
}
|
||||
|
||||
@test "[RPM] package has been removed again" {
|
||||
run rpm -qe 'elasticsearch'
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user