diff --git a/.github/workflows/TestAndCompile.yml b/.github/workflows/TestAndCompile.yml index e5b70b5..819f1d6 100644 --- a/.github/workflows/TestAndCompile.yml +++ b/.github/workflows/TestAndCompile.yml @@ -4,6 +4,9 @@ jobs: build: name: test and compile on ${{ matrix.os }} runs-on: ${{ matrix.os }} + env: + MICRONAUT_HTTP_SERVICES_JUSTSERVE_TOKEN: ${{ secrets.MICRONAUT_HTTP_SERVICES_JUSTSERVE_TOKEN }} + strategy: matrix: os: [macos-latest, windows-latest, ubuntu-latest] @@ -11,9 +14,9 @@ jobs: - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1 with: - java-version: '17' - distribution: 'graalvm' + java-version: '21' + distribution: 'graalvm-community' github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' - name: call gradle to run tests and then compile - run: ./gradlew test cli:nativeCompile \ No newline at end of file + run: ./gradlew test nativeCompile \ No newline at end of file diff --git a/src/test/groovy/org/justserve/client/UserClientSpec.groovy b/src/test/groovy/org/justserve/client/UserClientSpec.groovy index e227bd9..29108df 100644 --- a/src/test/groovy/org/justserve/client/UserClientSpec.groovy +++ b/src/test/groovy/org/justserve/client/UserClientSpec.groovy @@ -14,26 +14,11 @@ class UserClientSpec extends Specification { @Shared UserClient userClient -// def "search users using slimSearch"() { -// when: -// def response = userClient."${methodName}"(new UserSearchRequest("barney", 0, 10)) -// -// then: -// response.status() == HttpStatus.OK -// -// and: -// response.body().getUsers() != null -// -// where: -// methodName | _ -// "userSearchSlim" | _ -// "userSearch" | _ -// } def "get tempPassword for user"() { when: def response = userClient.getTempPassword( - new UserHashRequest("jonathan.zollinger+jimmyhook@gmail.com", null)) + new UserHashRequest("jimmy@justserve.org", null)) then: response.status() == HttpStatus.OK