Skip to content

Commit

Permalink
[AD-1043] [JDBC] Bug: Build not working in manual workflow action. (#468
Browse files Browse the repository at this point in the history
)

* [Diagnosis] attempt to diagnose test failure

* [Diagnosis] attempt to diagnose test failure

* Commit Code Coverage Badge

* [AD-1043] Mark tests so they only run when integration testing.

* Commit Code Coverage Badge

* [AD-1043] Attempt to resolve "Commit Code Coverage Badge" when running mavenFilesPreparation

* [AD-1043] Add upload of raw-test-results.

* [AD-1043] attempt to resolve bug.

* Commit Code Coverage Badge

Co-authored-by: birschick-bq <[email protected]>
  • Loading branch information
Bruce Irschick and birschick-bq authored Dec 21, 2022
1 parent 7c95231 commit 74523f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/badges/branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ jobs:
with:
name: output
path: output
- name: Upload Raw Test Results
uses: actions/upload-artifact@v1
if: always()
with:
name: raw-test-results
path: build/test-results/test/
- name: Publish Summary Test Results
uses: EnricoMi/[email protected]
if: always()
Expand All @@ -141,6 +147,7 @@ jobs:
generate-branches-badge: true
- name: Commit Coverage Badge
uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ ! github.event.inputs.mavenFilesPreparation }}
with:
commit_options: '--allow-empty --no-verify'
commit_message: Commit Code Coverage Badge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void testConstructorDestructor() throws Exception {
}

@Test
@Tag("remote-integration")
void testInvalidConnectionProperties() throws Exception {
final DocumentDbConnectionProperties properties = getConnectionProperties();
properties.setSshUser("");
Expand Down Expand Up @@ -116,6 +117,7 @@ void testInvalidSshUserAuthFail() throws Exception {
}

@Test
@Tag("remote-integration")
void testInvalidSshPrivateKeyFileNotFound() throws Exception {
final DocumentDbConnectionProperties properties = getConnectionProperties();
properties.setSshPrivateKeyFile("unknown");
Expand All @@ -128,6 +130,7 @@ void testInvalidSshPrivateKeyFileNotFound() throws Exception {
}

@Test
@Tag("remote-integration")
void testInvalidSshKnownHostsFileNotFound() throws Exception {
final DocumentDbConnectionProperties properties = getConnectionProperties();
properties.setSshStrictHostKeyChecking("true");
Expand Down

0 comments on commit 74523f9

Please sign in to comment.