Skip to content

Commit

Permalink
Add Discover Table Tests
Browse files Browse the repository at this point in the history
Signed-off-by: Suchit Sahoo <[email protected]>
  • Loading branch information
LDrago27 committed Apr 15, 2024
1 parent 6e3cc01 commit 4906567
Show file tree
Hide file tree
Showing 6 changed files with 1,220 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"type": "doc",
"value": {
"id": "0",
"index": "nestedindex",
"source": {
"products": [{
"base_price": 31.14,
"discount_percentage": 5,
"quantity": 1,
"manufacturer": "Virora"
}, {
"base_price": 35.69,
"discount_percentage": 10,
"quantity": 3,
"manufacturer": "Oceanavigations"
}],
"timestamp": "2015-09-21T06:09:20.045Z"
}
}
}

{
"type": "doc",
"value": {
"id": "1",
"index": "nestedindex",
"source": {
"products": [{
"base_price": 28.99,
"discount_percentage": 0,
"quantity": 1,
"manufacturer": "Tigress Enterprises"
}, {
"base_price": 32.99,
"discount_percentage": 0,
"quantity": 1,
"manufacturer": "Oceanavigations"
}],
"timestamp": "2015-09-21T21:13:02.070Z"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"type": "index",
"value": {
"index": "nestedindex",
"mappings": {
"properties": {
"products": {
"type": "nested",
"properties": {
"base_price": {
"type": "float"
},
"discount_percentage": {
"type": "long"
},
"manufacturer": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"quantity": {
"type": "long"
}
}
},
"timestamp": {
"type": "date"
}
}
},
"settings": {
"index": {
"replication": {
"type": "DOCUMENT"
},
"number_of_shards": "1",
"number_of_replicas": "1"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ const indexSet = [

describe('discover app', { scrollBehavior: false }, () => {
before(() => {
if (Cypress.env('SECURITY_ENABLED')) {
/**
* Security plugin is using private tenant as default.
* So here we'd need to set global tenant as default manually.
*/
cy.changeDefaultTenant({
multitenancy_enabled: true,
private_tenant_enabled: true,
default_tenant: 'global',
});
}
CURRENT_TENANT.newTenant = 'global';
// import logstash functional
testFixtureHandler.importJSONDocIfNeeded(
Expand Down
Loading

0 comments on commit 4906567

Please sign in to comment.