Commit graph

121 commits

Author SHA1 Message Date
Michael Russell
d451d27723
Only symlink systemd file for systemd systems 2018-06-18 07:37:51 +02:00
Michael Russell
23e336833a
This file should now be a symbolic link, temporarily removing to let the
other tests run
2018-06-15 17:37:53 +02:00
Michael Russell
2c8ce3bb2d
Add test for upgrading from previous version of oss to current 2018-06-15 17:22:18 +02:00
Michael Russell
4c35794b76
Add jenkins test matrix yml definition
This allows us to control and modify the jenkins matrix job via the pull
request flow instead of needing to sync changes in the jenkins
configuration.
2018-06-15 10:59:00 +02:00
Michael Russell
e9a267ec55
Add authentication back to the plugins check for xpack (got lost during
copy paste refactoring)
2018-06-15 07:40:35 +02:00
Michael Russell
ea6f1c2088
Remove invalid tests for roles.yml, system_key, user_roles and users
All of these were not actually defined in the final play of the testing
role however were leftover by the previous run or default install. The
changes in 6.3 moved the locations of these files to a different
directory causing these tests to fail (as they should be doing!)
2018-06-14 20:22:05 +02:00
Michael Russell
3ab3b1d05c
Add xpack license for issue-test since security is not available in the
trial license
2018-06-14 18:41:41 +02:00
Michael Russell
77d47e3235
Don't use the 'x-pack' subdir now that x-pack is part of core 2018-06-14 16:33:40 +02:00
Michael Russell
d8cf1d1f66
Explicitly set xpack.security.enabled: True
Only run test for checking if X-Pack is a plugin for 6.3 because it is
now installed into core
2018-06-14 15:48:18 +02:00
Michael Russell
06a8c5c41b
Remove es_package_name hard coding since this is dynamically detected now 2018-06-14 15:06:24 +02:00
Michael Russell
bbc5e0603d
Abstract 6.3 changes into a separate task to reduce all of the jinja one
liner complexity

Set ES_PATH_CONF when installing so upgrading from 6.2 to 6.3 works as
expected
2018-06-14 14:44:31 +02:00
Michael Russell
715bd8591e
Use final 6.3.0 release instead of snapshot 2018-06-13 21:34:32 +02:00
Michael Russell
929a860fd3
Specify that these tests are still using the oss package 2018-06-13 10:03:40 +02:00
Michael Russell
6d82cf3142
WIP: 6.3 support 2018-06-13 08:29:45 +02:00
Michael Russell
917fc7fcfc
Look at the results from the http request instead of checking that the
json matches an md5 hash. This was causing flaky tests because the
order of the users in the test doing `curl -s localhost:9200/_xpack/security/user -u
es_admin:changeMeAgain` is not consistent which caused random failures.
Now if it does fail we will actually know the reason why:
```
 security users
    should have the elastic user
    should have the kibana user (FAILED - 1)
    should have the kibana_server user
    should have the logstash user
  logstash_system access check
    should be reported as version 6.2.4

Failures:

  1) Xpack Tests security users should have the kibana user
     Failure/Error: expect(result['kibana']['username']).to eq('kibana4')

       expected: "kibana4"
            got: "kibana"
```

The failure output use to look like:

```
Failures:

  1) Xpack Tests Command "curl -s localhost:9200/_xpack/security/user -u es_admin:changeMeAgain | md5sum | grep b6a1293c343e745a508c74778c9be8bb" exit_status should eq 0
     Failure/Error: its(:exit_status) { should eq 0 }

       expected: 0
            got: 1

       (compared using ==)
       /bin/sh -c curl\ -s\ localhost:9200/_xpack/security/user\ -u\ es_admin:changeMeAgain\ \|\ md5sum\ \|\ grep\ b6a1293c343e745a508c74778c9be8bb
```
2018-05-17 08:39:13 +02:00
Michael Russell
38982ba6ad
Only change name to x-pack-core for 6.2 and above 2018-02-22 11:14:25 +01:00
Michael Russell
d9d54917bd
X-pack plugin has been renamed to x-pack-core 2018-02-22 10:01:16 +01:00
Michael Russell
fe0fc4b430
Bump default version to 6.2.2 and 5.6.8 2018-02-21 21:09:15 +01:00
Michael Russell
fecf5164c8
Test the returned results rather than an md5 hash of the json. These
tests were breaking on 6.x because certain fields have been
moved/changed
2018-02-01 11:59:32 +01:00
Michael Russell
bfced19152
Fix paths that came in from mass copy paste errors 2018-01-31 14:39:55 +01:00
Michael Russell
c30c263aa3
Set older version for 5.x and 6.x to test that upgrading works as
expected
2018-01-31 14:39:20 +01:00
Michael Russell
29f2c6a17e
Use default es_version supplied by playbook 2018-01-31 14:39:07 +01:00
Michael Russell
9eae7e3a3d
Standard xpack doesn't have es_plugins defined so just test the x-pack
plugin
2018-01-31 12:59:13 +01:00
Michael Russell
3bbd6f3e07
Dynamically generate xpack url based on the version 2018-01-31 12:09:15 +01:00
Michael Russell
b0083ae293
Fix path config to match the node name 2018-01-31 12:07:32 +01:00
Michael Russell
043c1bff69
6.x should not have path.conf present 2018-01-31 08:17:44 +01:00
Michael Russell
94b059080b
Update tests to work with dynamic es_versions 2018-01-31 08:14:24 +01:00
Michael Russell
db1079ee4d
Rename integration tests to remove hardcoded 5.x version 2018-01-22 16:00:13 +01:00
Dale McDiarmid
7ab416c782 Move fil realm reserved user check earlier, Move template and license after naitve realm 2017-09-20 22:58:17 +01:00
Dale McDiarmid
e9a6f74d09 Fix for issue #369 2017-09-19 20:11:09 +01:00
Dale McDiarmid
0676799d1c Fix for issue 368 2017-09-19 12:21:46 +01:00
Dale McDiarmid
5e1873ca68 Simpler restart handling + issue-test for recreation of problems 2017-08-20 10:30:39 -04:00
Dale McDiarmid
06cf45e739 Test Fix 2017-08-18 23:19:01 +01:00
Dale McDiarmid
15420e9211 X-Pack tests 2017-08-18 20:21:24 +01:00
Dale McDiarmid
00faa9115a Added comment in readme for support of es_xpack_custom_url 2017-08-18 20:01:31 +01:00
Dale McDiarmid
330d8d1392 Standard tests 2017-08-18 19:38:10 +01:00
Dale McDiarmid
ed8ab11227 Simple test for LimitNPROC 2017-08-18 16:32:00 +01:00
Dale McDiarmid
53741c33c6 X-pack security fix + activation 2017-08-17 21:44:46 +01:00
Dale McDiarmid
16117f431f Test for custom log4j file 2017-08-17 18:52:02 +01:00
Dale McDiarmid
7d97b35d63 Remove x-pack limited - readd later 2017-08-17 10:00:30 +01:00
Dale McDiarmid
87e32dc241 Reworking of templates 2017-08-16 12:41:10 +01:00
Dale McDiarmid
0e2a0a5e99 Updated init, systemd, jvm.options and tests 2017-08-16 11:05:40 +01:00
Dale McDiarmid
88c272e2b2 New x-pack test 2017-08-15 18:42:13 +01:00
Dale McDiarmid
911b2df9ac Test for plugin on standard 2017-08-15 14:31:56 +01:00
Jared Carey
cb85735fb6 Update package.yml 2017-03-17 11:46:07 -06:00
Dale McDiarmid
01992fdb77 Fixes for mlock all test 2017-03-17 00:20:50 +00:00
Dale McDiarmid
af30f882dd Fixes for multi + config tests 2017-03-16 23:59:13 +00:00
Dale McDiarmid
c8d0173fb8 fixing spelling mistake in test 2017-03-16 22:23:20 +00:00
Dale McDiarmid
1bc817a378 Support for plugin diffs + improved testing on minor upgrades + fixes 2017-03-16 21:06:17 +00:00
Dale McDiarmid
c294110a6b Documentation updates for plugins and multi node usage 2017-01-18 11:40:19 +00:00