|
44 | 44 | end |
45 | 45 | end |
46 | 46 | describe 'xpack checks' do |
47 | | - if vars['es_enable_xpack'] |
48 | | - it 'should be be running the xpack version' do |
| 47 | + if not vars['oss_version'] |
| 48 | + it 'should be be running the basic version' do |
49 | 49 | expect(curl_json("#{es_api_url}/_xpack", username=username, password=password)['tagline']).to eq('You know, for X') |
50 | 50 | end |
51 | 51 | it 'xpack should be activated' do |
52 | 52 | expect(curl_json("#{es_api_url}/_license", username=username, password=password)['license']['status']).to eq('active') |
53 | 53 | end |
54 | | - if vars.key?('es_xpack_features') |
55 | | - curl_json("#{es_api_url}/_xpack", username=username, password=password)['features'].each do |feature,values| |
56 | | - enabled = vars['es_xpack_features'].include? feature |
57 | | - status = if enabled then 'enabled' else 'disabled' end |
58 | | - it "the xpack feature '#{feature}' to be #{status}" do |
59 | | - expect(values['enabled'] = enabled) |
60 | | - end |
61 | | - end |
62 | | - else |
63 | | - features.each do |feature, status| |
64 | | - feature_available = curl_json("#{es_api_url}/_xpack", username=username, password=password)['features'][feature]['available'] |
65 | | - if feature_available == "true" |
66 | | - status = "available" |
67 | | - else |
68 | | - status = "unavailable" |
69 | | - end |
70 | | - it "the xpack feature '#{feature}' to be #{status}" do |
71 | | - expect(feature_available = status['available']) |
72 | | - end |
73 | | - feature_enabled = curl_json("#{es_api_url}/_xpack", username=username, password=password)['features'][feature]['enabled'] |
74 | | - if feature_enabled == "true" |
75 | | - status = "enabled" |
76 | | - else |
77 | | - status = "disabled" |
78 | | - end |
79 | | - it "the xpack feature '#{feature}' to be #{status}" do |
80 | | - expect(feature_available = status['enabled']) |
81 | | - end |
82 | | - end |
83 | | - end |
84 | 54 | end |
85 | 55 | end |
86 | 56 | describe user(vars['es_user']) do |
|
0 commit comments