Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Move to new testing suite names
Browse files Browse the repository at this point in the history
This commit is just moving the tests to their new names. The config,
packge and issue test suites have been removed and the tests from these
will be incorporated into the oss and xpack tests.

oss: Standard elasticsearch-oss role with idempotency test

oss-upgrade: Upgrade from previous minor version oss to current minor version oss

oss-to-xpack-upgrade: Upgrade from previous minor version oss to current minor version xpack

xpack: Standard elasticsearch (with xpack) role with idempotency test

xpack-upgrade: Upgrade from previous minor version xpack to current minor version xpack

multi: Tests multiple instances of elasticsearch on a single machine
  • Loading branch information
Crazybus committed Jun 19, 2018
1 parent f61cf5e commit da58c5f
Show file tree
Hide file tree
Showing 23 changed files with 542 additions and 790 deletions.
51 changes: 17 additions & 34 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ platforms:
use_sudo: false
volume:
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
- name: ubuntu-16.04
driver_config:
image: dliappis/ubuntu-devopsci:16.04
Expand All @@ -54,6 +55,7 @@ platforms:
use_sudo: false
volume:
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
run_command: "/sbin/init"
- name: debian-8
driver_config:
Expand All @@ -69,6 +71,7 @@ platforms:
- pip uninstall -y ansible
volume:
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
use_sudo: false
run_command: "/sbin/init"
- name: centos-7
Expand All @@ -85,53 +88,33 @@ platforms:
- pip install jmespath
volume:
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
run_command: "/usr/sbin/init"
privileged: true
use_sudo: false

suites:
- name: standard
- name: oss
provisioner:
idempotency_test: true
playbook: test/integration/standard.yml
run_list:
attributes:
- name: package
run_list:
attributes:
provisioner:
playbook: test/integration/package.yml
- name: config
run_list:
attributes:
playbook: test/integration/oss.yml
- name: oss-upgrade
provisioner:
playbook: test/integration/config.yml
- name: multi
run_list:
attributes:
playbook: test/integration/oss-upgrade.yml
idempotency_test: false
- name: oss-to-xpack-upgrade
provisioner:
playbook: test/integration/multi.yml
idempotency_test: true
playbook: test/integration/oss-to-xpack-upgrade.yml
idempotency_test: false
- name: xpack
run_list:
attributes:
provisioner:
playbook: test/integration/xpack.yml
- name: xpack-standard
run_list:
attributes:
provisioner:
playbook: test/integration/xpack-standard.yml
idempotency_test: true
- name: issue-test
run_list:
attributes:
- name: xpack-upgrade
provisioner:
playbook: test/integration/issue-test.yml
playbook: test/integration/xpack-upgrade.yml
idempotency_test: false
- name: oss-upgrade
run_list:
attributes:
- name: multi
provisioner:
playbook: test/integration/oss-upgrade.yml
idempotency_test: false
playbook: test/integration/multi.yml
idempotency_test: true
163 changes: 0 additions & 163 deletions test/integration/helpers/serverspec/config_spec.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

shared_examples 'standard::init' do |vars|
shared_examples 'oss::init' do |vars|

describe user('elasticsearch') do
it { should exist }
Expand Down
12 changes: 12 additions & 0 deletions test/integration/helpers/serverspec/oss_to_xpack_upgrade_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require 'spec_helper'

shared_examples 'oss_to_xpack_upgrade::init' do |vars|
describe 'version check' do
it 'should be reported as version '+vars['es_version'] do
expect(curl_json('http://localhost:9200', username='elastic', password='changeme')['version']['number']).to eq(vars['es_version'])
end
it 'should be be running the standard (xpack) version' do
expect(curl_json('http://localhost:9200/_xpack', username='elastic', password='changeme')['tagline']).to eq('You know, for X')
end
end
end
112 changes: 0 additions & 112 deletions test/integration/helpers/serverspec/package_spec.rb

This file was deleted.

Loading

0 comments on commit da58c5f

Please sign in to comment.