Commit graph

28 commits

Author SHA1 Message Date
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
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
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
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
Dale McDiarmid
e9a6f74d09 Fix for issue #369 2017-09-19 20:11:09 +01:00
Dale McDiarmid
53741c33c6 X-pack security fix + activation 2017-08-17 21:44:46 +01:00
Dale McDiarmid
1bc817a378 Support for plugin diffs + improved testing on minor upgrades + fixes 2017-03-16 21:06:17 +00:00
Dale McDiarmid
8d84b57941 Xpack tests + protection against reserved roles and users 2017-01-16 15:17:18 +00:00
Dale McDiarmid
b2dd44e9d5 x-pack test cleanup 2017-01-11 13:05:13 +00:00
Dale McDiarmid
197cf05a0e Shield to Security and other X-Pack clear up 2017-01-11 13:02:23 +00:00
Dale McDiarmid
5fb4350a63 Tests back to kopf + checks to fix java cert issues 2017-01-05 14:34:47 +00:00
Dale McDiarmid
b82f1bdce5 Moving to testing murmur3 for plugins as stable download 2017-01-05 12:15:59 +00:00
Dale McDiarmid
2ea0842a6c Changes to support license 2017-01-04 13:23:22 +00:00
Dale McDiarmid
6768a15b89 Merge branch 'activate-elasticsearch-license' of https://github.com/barryib/ansible-elasticsearch into barryib-activate-elasticsearch-license 2017-01-04 11:00:40 +00:00
Thierno IB. BARRY
61a3ba32c5 add xpack license activation tests 2016-09-21 17:04:31 +02:00
Dale McDiarmid
a95127905b Support for message auth + test 2016-09-19 17:09:27 +01:00
Dale McDiarmid
a8a0676b59 Tests for role mapping 2016-09-19 14:39:36 +01:00
Dale McDiarmid
605baf9a96 More tests 2016-07-24 19:18:04 +01:00
Dale McDiarmid
9eacd3a5e0 Fix for detecting es version changed 2016-07-24 17:39:44 +01:00
Dale McDiarmid
0a269a3d82 Fix for plugin version check 2016-07-24 16:17:39 +01:00
Dale McDiarmid
57fa9e432b Support for all xpack features through generic install + improved tests 2016-07-24 15:25:32 +01:00
Dale McDiarmid
fdf1bda155 Shield config tests + prevent use of xpack in version < 2.0 2016-07-24 12:25:34 +01:00
Dale McDiarmid
9a83511801 Templates with shield tested 2016-07-23 20:23:56 +01:00
Dale McDiarmid
d73e515de3 Test improvements for xpack + httplib2 support 2016-07-23 19:48:50 +01:00