Skip to content

Commit b71dbda

Browse files
authored
adding ad remote index tests (#1755)
* adding ad remote index tests Signed-off-by: Amit Galitzky <[email protected]> * dynamically establish remote cluster name Signed-off-by: Amit Galitzky <[email protected]> * update tests to first type in combo box so option is visible Signed-off-by: Amit Galitzky <[email protected]> * skip if transport port not set to 9301 Signed-off-by: Amit Galitzky <[email protected]> * add transport port dynamically when changing setting Signed-off-by: Amit Galitzky <[email protected]> * adding transport port to opensearch-start Signed-off-by: Amit Galitzky <[email protected]> * adding cluster name and changing index selection Signed-off-by: Amit Galitzky <[email protected]> * remove cluster name Signed-off-by: Amit Galitzky <[email protected]> * added more logging capabilities Signed-off-by: Amit Galitzky <[email protected]> * changing request to handle security enabled Signed-off-by: Amit Galitzky <[email protected]> * comment out curl request Signed-off-by: Amit Galitzky <[email protected]> * changing test to check previous button and use correct password Signed-off-by: Amit Galitzky <[email protected]> * change remote datasource pw Signed-off-by: Amit Galitzky <[email protected]> --------- Signed-off-by: Amit Galitzky <[email protected]>
1 parent e2af805 commit b71dbda

File tree

7 files changed

+466
-4
lines changed

7 files changed

+466
-4
lines changed

.github/actions/start-opensearch/action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ inputs:
2323
required: false
2424

2525
port:
26-
description: 'Port to run OpenSearch. Leave empty to use the default config (9200)'
26+
description: 'HTTP port to run OpenSearch. Leave empty to use the default config (9200)'
2727
required: false
2828
default: '9200'
2929

30+
transport_port:
31+
description: 'Transport port to run OpenSearch transport layer. Leave empty to use the default config (9300-9400)'
32+
required: false
33+
default: '9300-9400'
34+
3035
runs:
3136
using: "composite"
3237
steps:
@@ -128,11 +133,12 @@ runs:
128133
shell: bash
129134
working-directory: ${{ inputs.port }}
130135

131-
- name: Use more space
136+
- name: Use more space and update ports
132137
run: |
133138
echo '' >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
134139
echo "cluster.routing.allocation.disk.threshold_enabled: false" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
135140
echo "http.port: ${{ inputs.port }}" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
141+
echo "transport.port: ${{ inputs.transport_port }}" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
136142
shell: bash
137143
working-directory: ${{ inputs.port }}
138144

.github/workflows/release-e2e-workflow-template.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ jobs:
8181
opensearch-version: ${{ env.VERSION }}
8282
security-enabled: false
8383
port: 9201
84+
transport_port: 9301
8485
- uses: ./.github/actions/start-opensearch
8586
if: ${{ inputs.multi-opensearch-enabled }}
8687
with:
8788
opensearch-version: ${{ env.VERSION }}
8889
security-enabled: true
89-
admin-password: admin
90+
admin-password: myStrongPassword123!
9091
port: 9202
92+
transport_port: 9302
9193
- name: Get OpenSearch-Dashboards
9294
run: |
9395
wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz

cypress.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"remoteDataSourceNoAuthUrl": "http://localhost:9201",
1515
"remoteDataSourceBasicAuthUrl": "https://localhost:9202",
1616
"remoteDataSourceBasicAuthUsername": "admin",
17-
"remoteDataSourceBasicAuthPassword": "admin",
17+
"remoteDataSourceBasicAuthPassword": "myStrongPassword123!",
1818
"SECURITY_ENABLED": false,
1919
"AGGREGATION_VIEW": false,
2020
"MULTITENANCY_ENABLED": true,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{"index":{"_id": "id-1"}}
2+
{ "value": 1, "secondVal": 1, "timestamp": "2020-01-01"}
3+
{"index":{"_id": "id-2"}}
4+
{ "value": 2, "secondVal": 2, "timestamp": "2020-01-02"}
5+
{"index":{"_id": "id-3"}}
6+
{ "value": 3, "secondVal": 3, "timestamp": "2020-01-03"}

0 commit comments

Comments
 (0)