Skip to content

Commit

Permalink
Get certs from security plugin instead of having them locally checked in
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Nov 5, 2024
1 parent 5aaf114 commit 50d81a3
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 161 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,20 @@ tasks.named('forbiddenApisTest').configure {

ext {
projectSubstitutions = [:]

['esnode.pem', 'esnode-key.pem', 'kirk.pem', 'kirk-key.pem', 'root-ca.pem', 'sample.pem', 'test-kirk.jks'].forEach { file ->
File local = getLayout().getBuildDirectory().file(file).get().getAsFile()
download.run {
src "https://raw.githubusercontent.com/opensearch-project/security/refs/heads/main/bwc-test/src/test/resources/security/" + file
dest local
overwrite false
}
}

processResources {
from(getLayout().getBuildDirectory().file('sample.pem').get().getAsFile())
from(getLayout().getBuildDirectory().file('test-kirk.jks').get().getAsFile())
}
}

allprojects {
Expand Down
28 changes: 0 additions & 28 deletions src/test/resources/security/esnode-key.pem

This file was deleted.

25 changes: 0 additions & 25 deletions src/test/resources/security/esnode.pem

This file was deleted.

28 changes: 0 additions & 28 deletions src/test/resources/security/kirk-key.pem

This file was deleted.

27 changes: 0 additions & 27 deletions src/test/resources/security/kirk.pem

This file was deleted.

28 changes: 0 additions & 28 deletions src/test/resources/security/root-ca.pem

This file was deleted.

25 changes: 0 additions & 25 deletions src/test/resources/security/sample.pem

This file was deleted.

Binary file removed src/test/resources/security/test-kirk.jks
Binary file not shown.

0 comments on commit 50d81a3

Please sign in to comment.