-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (58 loc) · 1.76 KB
/
test.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
name: CI
on:
push:
pull_request:
jobs:
test-no-plugins:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: ./ # Use the action
with:
opensearch-version: 3.0.0
security-enabled: false
- name: Checks that OpenSearch is healthy
run: curl http://localhost:9200/_cat/plugins -v
shell: bash
test-no-plugins-port-9201:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: ./ # Use the action
with:
opensearch-version: 3.0.0
security-enabled: false
port: 9201
- name: Checks that OpenSearch is healthy
run: curl http://localhost:9201/_cat/plugins -v
shell: bash
test-with-security:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Download security plugin
uses: suisei-cn/[email protected]
with:
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-security&v=3.0.0.0-SNAPSHOT&p=zip
filename: security.zip
- uses: ./ # Use the action
with:
opensearch-version: 3.0.0
security-enabled: true
plugins: "file:${{ github.workspace }}/security.zip"
admin-password: "myStrongPassword123!"
- name: Checks that OpenSearch is healthy
run: curl https://localhost:9200/_cat/plugins -u 'admin:myStrongPassword123!' -k -v
shell: bash