/
DatastoreNewIndexCustomPrefix.feature
67 lines (49 loc) · 2.29 KB
/
DatastoreNewIndexCustomPrefix.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
###############################################################################
# Copyright (c) 2018, 2020 Eurotech and/or its affiliates and others
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Eurotech - initial API and implementation
#
###############################################################################
@datastore
@datastoreNewIndexCustomPrefix
@integration
Feature: Datastore tests
Scenario: Set environment variables
Given System property "commons.settings.hotswap" with value "true"
And System property "datastore.index.prefix" with value "custom-prefix"
And System property "kapua.config.url" with value "null"
And System property "broker.ip" with value "192.168.33.10"
And System property "datastore.client.class" with value "org.eclipse.kapua.service.elasticsearch.client.rest.RestDatastoreClient"
Scenario: Start datastore for all scenarios
Given Start Datastore
Scenario: Start event broker for all scenarios
Given Start Event Broker
Scenario: Start broker for all scenarios
Given Start Broker
Scenario: Create index with specific prefix
Create elasticsearch index with specific prefix set by system property.
Index gets created when user publishes data.
Given Server with host "127.0.0.1" on port "9200"
When I delete all indices
And I login as user with name "kapua-sys" and password "kapua-password"
And I select account "kapua-sys"
Given The device "test-device-1"
When I prepare a random message with capture date "2018-01-01T10:21:32.123Z" and save it as "RandomDataMessage"
And I store the message "RandomDataMessage" and remember its ID as "RandomDataMessageId"
And I refresh all indices
When REST GET call at "/_cat/indices/"
Then REST response containing text "green open"
# And REST response containing text "custom-prefix-1-2018-01"
And I delete all indices
Scenario: Stop broker after all scenarios
Given Stop Broker
Scenario: Stop event broker for all scenarios
Given Stop Event Broker
Scenario: Stop datastore after all scenarios
Given Stop Datastore