Skip to content

Commit

Permalink
Fix yamllint
Browse files Browse the repository at this point in the history
Signed-off-by: Zelin Hao <[email protected]>
  • Loading branch information
zelinh committed Jan 25, 2025
1 parent 6d37572 commit 3a1e68e
Show file tree
Hide file tree
Showing 10 changed files with 680 additions and 210 deletions.
Original file line number Diff line number Diff line change
@@ -1,53 +1,52 @@
# yamllint disable
---
info:
title: OpenSearch Core smoke tests
title: OpenSearch Index-Management plugin smoke tests
version: 2.x
name: index-management
paths:
/_plugins/_ism/policies/policy_1:
PUT:
parameters: [
{
"policy": {
"description": "ingesting logs",
"default_state": "ingest",
"states": [
'policy': {
'description': 'ingesting logs',
'default_state': 'ingest',
'states': [
{
"name": "ingest",
"actions": [
'name': 'ingest',
'actions': [
{
"rollover": {
"min_doc_count": 5
'rollover': {
'min_doc_count': 5
}
}
],
"transitions": [
'transitions': [
{
"state_name": "search"
'state_name': 'search'
}
]
},
{
"name": "search",
"actions": [ ],
"transitions": [
'name': 'search',
'actions': [],
'transitions': [
{
"state_name": "delete",
"conditions": {
"min_index_age": "5m"
'state_name': 'delete',
'conditions': {
'min_index_age': '5m'
}
}
]
},
{
"name": "delete",
"actions": [
'name': 'delete',
'actions': [
{
"delete": { }
'delete': {}
}
],
"transitions": [ ]
'transitions': []
}
]
}
Expand All @@ -63,7 +62,7 @@ paths:
POST:
parameters: [
{
"policy_id": "policy_1"
'policy_id': 'policy_1'
}
]
/_plugins/_ism/explain/ism-index:
Expand Down
88 changes: 69 additions & 19 deletions src/test_workflow/smoke_test/smoke_tests_spec/2.x/k-NN.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# yamllint disable
---
info:
title: OpenSearch Core smoke tests
title: OpenSearch k-NN plugin smoke tests
version: 2.x
name: k-NN
paths:
Expand All @@ -12,15 +11,15 @@ paths:
PUT:
parameters: [
{
"settings": {
"number_of_shards": 3,
"number_of_replicas": 0
'settings': {
'number_of_shards': 3,
'number_of_replicas': 0
},
"mappings": {
"properties": {
"train-field": {
"type": "knn_vector",
"dimension": 4
'mappings': {
'properties': {
'train-field': {
'type': 'knn_vector',
'dimension': 4
}
}
}
Expand All @@ -29,13 +28,64 @@ paths:
/_bulk:
POST:
parameters: [
{ "index": { "_index": "train-index", "_id": "1" } },
{ "train-field": [ 1.5, 5.5, 4.5, 6.4 ] },
{ "index": { "_index": "train-index", "_id": "2" } },
{ "train-field": [ 2.5, 3.5, 5.6, 6.7 ] },
{ "index": { "_index": "train-index", "_id": "3" } },
{ "train-field": [ 4.5, 5.5, 6.7, 3.7 ] },
{ "index": { "_index": "train-index", "_id": "4" } },
{ "train-field": [ 1.5, 5.5, 4.5, 6.4 ] }
{
'index':
{
'_index':
'train-index',
'_id':
'1'
}
},
{
'train-field':
[
1.5, 5.5, 4.5, 6.4
]
},
{
'index':
{
'_index':
'train-index',
'_id':
'2'
}
},
{
'train-field':
[
2.5, 3.5, 5.6, 6.7
]
},
{
'index':
{
'_index':
'train-index',
'_id':
'3'
}
},
{
'train-field':
[
4.5, 5.5, 6.7, 3.7
]
},
{
'index':
{
'_index':
'train-index',
'_id':
'4'
}
},
{
'train-field':
[
1.5, 5.5, 4.5, 6.4
]
}
]

73 changes: 60 additions & 13 deletions src/test_workflow/smoke_test/smoke_tests_spec/2.x/opensearch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# yamllint disable
---
info:
title: OpenSearch Core smoke tests
Expand All @@ -11,29 +10,77 @@ paths:
/_bulk:
POST:
header: {
"Content-Type": "application/x-ndjson"
'Content-Type': 'application/x-ndjson'
}
parameters: [
{ "delete": { "_index": "movies", "_id": "tt2229499" } },
{ "index": { "_index": "movies", "_id": "tt1979320" } },
{ "title": "Rush", "year": 2013 },
{ "create": { "_index": "movies", "_id": "tt1392214" } },
{ "title": "Prisoners", "year": 2013 },
{ "update": { "_index": "movies", "_id": "tt0816711" } },
{ "doc" : { "title": "World War Z" } }
{
'delete':
{
'_index':
'movies',
'_id':
'tt2229499'
}
},
{
'index':
{
'_index':
'movies',
'_id':
'tt1979320'
}
},
{
'title':
'Rush',
'year':
2013
},
{
'create':
{
'_index':
'movies',
'_id':
'tt1392214'
}
},
{
'title':
'Prisoners',
'year':
2013
},
{
'update':
{
'_index':
'movies',
'_id':
'tt0816711'
}
},
{
'doc':
{
'title':
'World War Z'
}
}
]
/_cat/indices:
GET:
parameters: []
GET:
parameters: []
/_cat/plugins:
GET:
parameters: []
/_search:
GET:
parameters: [
{
"query": {
"match_all": { }
'query': {
'match_all': {}
}
}
]
Loading

0 comments on commit 3a1e68e

Please sign in to comment.