Skip to content

Commit

Permalink
Merge pull request rundeck#443 from rundeck/gschueler-patch-2
Browse files Browse the repository at this point in the history
upload integration test reports
  • Loading branch information
gschueler authored May 20, 2022
2 parents 631d6a0 + fc333b3 commit 70fc3d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
run: chmod +x gradlew
- name: Integration Test
run: ./gradlew integrationTest --dependency-verification off
- uses: actions/upload-artifact@v3
if: failure()
with:
name: integration-test-report
path: integration-tests/build/reports/tests/integrationTest
build:

runs-on: ubuntu-latest
Expand All @@ -67,6 +72,11 @@ jobs:
run: ./gradlew build --dependency-verification off
- name: Integration tests
run: ./gradlew integrationTest --dependency-verification off
- uses: actions/upload-artifact@v3
if: failure()
with:
name: integration-test-report
path: integration-tests/build/reports/tests/integrationTest
- name: deb/rpm install test
run: bash scripts/install-test.sh
- name: rpm upgrade test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import spock.lang.Specification

import java.nio.file.Files
import java.nio.file.Path
import java.time.Duration

@Testcontainers
class BasicIntegrationSpec extends Specification {
Expand All @@ -30,14 +31,14 @@ class BasicIntegrationSpec extends Specification {
Transferable.of('admin=letmeinplease,admin'),
'/var/lib/rundeck/etc/tokens.properties',
)
.waitingFor(Wait.forHttp("/api/41/system/info").forStatusCode(403))
.waitingFor(Wait.forHttp("/api/41/system/info").forStatusCode(403).withStartupTimeout(Duration.ofMinutes(5)))
// .waitingFor(
// Wait.forLogMessage(".*rundeckapp.Application - Started Application.*\\n", 1)
// )
.withExposedPorts(4440)

@Shared
Client<RundeckApi> client;
Client<RundeckApi> client

static String PROJ_NAME = 'test'
static String JOBFILE1 = 'jobs/test_job.xml'
Expand Down

0 comments on commit 70fc3d7

Please sign in to comment.