Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Enable security for bwc tests #3257

Merged
merged 29 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ed796a9
[2.x] Run BWC Tests with security plugin enabled
cwperks Aug 25, 2023
a65a901
Add certs with IPv6 loopback address ::1
cwperks Aug 25, 2023
96f590b
Move to bwc-test
cwperks Aug 25, 2023
422a26c
Rest client settings
cwperks Aug 25, 2023
9c2bdf1
Override getProtocol
cwperks Aug 25, 2023
1011f94
Bump to 2.11 for testing
cwperks Aug 25, 2023
a35e0ad
Fake 3.0.0
cwperks Aug 25, 2023
f4be930
2.10 to 2.10
cwperks Aug 25, 2023
4ad5900
Add dependency on common-utils
cwperks Aug 25, 2023
6cafd2a
Import HttpHost
cwperks Aug 25, 2023
1411492
Import IOException
cwperks Aug 25, 2023
ec58df3
Add kirk keystore
cwperks Aug 25, 2023
fbdacc3
Add debug statement
cwperks Aug 25, 2023
f956a9c
Add network.publish_host
cwperks Aug 28, 2023
b44f462
Add securityconfig
cwperks Aug 28, 2023
62fc4a1
Update path
cwperks Aug 28, 2023
c04201c
Show bwc tests working with security plugin enabled
cwperks Aug 28, 2023
c9ed63e
Remove added period by mistake
cwperks Aug 28, 2023
d5255cd
Run spotlessApply
cwperks Aug 28, 2023
dc4ed62
Try w/o config files
cwperks Aug 29, 2023
5362e89
Merge branch 'enable-security-for-bwc-tests-without-config' into enab…
cwperks Aug 29, 2023
6c022df
Use demo certificates
cwperks Aug 29, 2023
b7bf55f
Remove commented out settings
cwperks Aug 29, 2023
c84d017
Use demo certs
cwperks Aug 29, 2023
7458267
Add more inputs to run-bwc-suite
cwperks Aug 29, 2023
675ca43
Remove use-https param
cwperks Aug 29, 2023
0b82a16
Remove commented out code
cwperks Aug 29, 2023
2545807
Fix description
cwperks Aug 29, 2023
7fb2ef2
Add WhoAmI test
cwperks Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/actions/run-bwc-suite/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ inputs:
description: 'The name of the artifacts for this run, e.g. "BWC-2.1-to-2.4-results"'
required: true

use-https:
description: 'Use HTTPS for wait for cluster health check in testClusters'
required: true
cwperks marked this conversation as resolved.
Show resolved Hide resolved

username:
description: 'Username to user for wait for cluster health check in testClusters'
required: true

password:
description: 'Password to use for cluster health check in testClusters'
required: true

runs:
using: "composite"
steps:
Expand All @@ -35,9 +47,9 @@ runs:
arguments: |
bwcTestSuite
-Dtests.security.manager=false
-Dtests.opensearch.secure=true
-Dtests.opensearch.username=admin
-Dtests.opensearch.password=admin
-Dtests.opensearch.secure=${{ inputs.use-https }}
-Dtests.opensearch.username=${{ inputs.username }}
-Dtests.opensearch.password=${{ inputs.password }}
-Dbwc.version.previous=${{ steps.build-previous.outputs.built-version }}
-Dbwc.version.next=${{ steps.build-next.outputs.built-version }} -i
build-root-directory: bwc-test
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ jobs:
plugin-previous-branch: "2.9"
plugin-next-branch: "current_branch"
report-artifact-name: bwc-${{ matrix.platform }}-jdk${{ matrix.jdk }}
use-https: true
username: admin
password: admin

code-ql:
runs-on: ubuntu-latest
Expand Down