-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unit Tests, Artifact Publishing & Updated Documentation #33
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
41b5f5e
Added unit test for `Application` class
dmccoystephenson 402669d
Added unit tests for base URI & endpoint path trimming
dmccoystephenson f27691a
Added unit test for signing using HSM
dmccoystephenson faac2e0
Implemented unit tests for `Message` class
dmccoystephenson f22b456
Removed unimplemented `signWithHsm()` method from SignatureController…
dmccoystephenson d5b15c9
Added unit tests for the case where 'base uri' and 'endpoint sign pat…
dmccoystephenson 56371b9
Removed unused variable, renamed variable & modified accessors in Sig…
dmccoystephenson 63b8665
Moved away from deprecated `StringUtils.isEmpty()` method in Signatur…
dmccoystephenson 3ef2239
Created RestTemplateFactory class to make REST calls testable in Sign…
dmccoystephenson 0616ce2
Created more helpers & added unit test for successfully forwarding me…
dmccoystephenson c92f155
Added unit test for error case during forwarding message to external …
dmccoystephenson 1f9ba91
Added success/failure unit tests for sign() method
dmccoystephenson ee81b1a
Corrected 'certficates' typo to 'certificates'
dmccoystephenson 9b822bb
Added dev container & test script for convenience
dmccoystephenson e69a7ee
Revised README
dmccoystephenson 29d8c5a
testing github artifact publishing
Michael7371 93e91fb
updating trigger to only be on tag creation
Michael7371 e81af57
Added a test for the HttpClientFactory class
dmccoystephenson 856ee47
Added test for HttpEntityStringifier class
dmccoystephenson 9b62b05
Added tests for KeyStoreReader class
dmccoystephenson 49afc12
Added a test for SSLContextFactory class
dmccoystephenson 43dc010
Added test-scripts README
dmccoystephenson 7d99026
Merge pull request #10 from CDOT-CV/testing/add-unit-tests
payneBrandon fc2a06c
Merge branch 'dev' into docs/review-documentation-for-accuracy
payneBrandon 439831e
Merge pull request #12 from CDOT-CV/github-actions-artifact-publishing
payneBrandon 79b8e80
Fixed typo in `Mutual TLS Authentication` section of README
dmccoystephenson f3e6afa
Merge pull request #11 from CDOT-CV/docs/review-documentation-for-acc…
dmccoystephenson 626fc77
Changed version to 1.5.0-SNAPSHOT
dmccoystephenson d268434
Added release notes for version 1.5.0
dmccoystephenson 7314e2d
Merge pull request #13 from CDOT-CV/q3-release/version-change-and-rel…
drewjj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/java | ||
{ | ||
"name": "Java", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye", | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"version": "none", | ||
"installMaven": "true", | ||
"installGradle": "false" | ||
} | ||
} | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "java -version", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish Java Package | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'jpo-security-svcs-*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'adopt' | ||
|
||
- name: Remove snapshot from version | ||
run: mvn versions:set -DremoveSnapshot | ||
|
||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
|
||
- name: Publish to GitHub Packages | ||
run: mvn --batch-mode -Dgithub_organization=${{ github.repository_owner }} deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will be the approx. artifact size and where we are using this ? As our ODE GitHub org is on free plan we have artifact storage limit of 500mb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project's JAR file is about 57 MB in size. It is not currently being used, but it is for potential future use. It may be possible to reduce the size of the JAR file in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmccoystephenson seems like for Maven packages and other packages like npm, docker, etc storage limit will be not applied for public repo's. so I think we should be good to use artifacts. However for any private repo's this limits will apply. We have a backlog item for supporting GitHub artifacts setup in future release. Thanks!