-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path30_ip_location_database.yml
76 lines (69 loc) · 1.74 KB
/
30_ip_location_database.yml
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
68
69
70
71
72
73
74
75
76
---
requires:
stack: true
serverless: false
---
"IP location Database":
- do:
ingest.put_ip_location_database:
id: "my_database_1"
body: >
{
"name": "GeoIP2-City",
"maxmind": {
"account_id": "1234"
}
}
- match: { acknowledged: true }
- do:
ingest.put_ip_location_database:
id: "my_database_1"
body: >
{
"name": "GeoIP2-Country",
"maxmind": {
"account_id": "4321"
}
}
- match: { acknowledged: true }
- do:
catch: /illegal_argument_exception/
ingest.put_ip_location_database:
id: "_web_TXlDdXN0b21HZW9MaXRlMi1DaXR5Lm1tZGI="
body: >
{
"name": "GeoIP2-City",
"web": {
}
}
- do:
ingest.put_ip_location_database:
id: "my_database_2"
body: >
{
"name": "GeoIP2-City",
"maxmind": {
"account_id": "1234"
}
}
- match: { acknowledged: true }
- do:
ingest.get_ip_location_database:
id: "my_database_1"
- length: { databases: 1 }
- match: { databases.0.id: "my_database_1" }
- gte: { databases.0.modified_date_millis: 0 }
- match: { databases.0.database.name: "GeoIP2-Country" }
- match: { databases.0.database.maxmind.account_id: "4321" }
- do:
ingest.get_ip_location_database:
id: "my_database_1,my_database_2"
- length: { databases: 2 }
- do:
ingest.delete_ip_location_database:
id: "my_database_1"
- match: { acknowledged: true }
- do:
ingest.delete_ip_location_database:
id: "my_database_2"
- match: { acknowledged: true }