diff --git a/.github/workflows/publish-sonatype.yml b/.github/workflows/publish-sonatype.yml index fbc52d2..de1b147 100644 --- a/.github/workflows/publish-sonatype.yml +++ b/.github/workflows/publish-sonatype.yml @@ -29,11 +29,13 @@ jobs: uses: gradle/gradle-build-action@v2 - name: Publish to Sonatype - run: | + run: |- + export -- GPG_SIGNING_KEY_ID + printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD" + GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')" ./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" env: SONATYPE_USERNAME: ${{ secrets.OPENLAYER_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.OPENLAYER_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }} - GPG_SIGNING_KEY_ID: ${{ secrets.OPENLAYER_SONATYPE_GPG_SIGNING_KEY_ID || secrets.GPG_SIGNING_KEY_ID }} GPG_SIGNING_KEY: ${{ secrets.OPENLAYER_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }} GPG_SIGNING_PASSWORD: ${{ secrets.OPENLAYER_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }} \ No newline at end of file diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 7a3754c..b4ed7fd 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -20,6 +20,5 @@ jobs: env: SONATYPE_USERNAME: ${{ secrets.OPENLAYER_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.OPENLAYER_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }} - GPG_SIGNING_KEY_ID: ${{ secrets.OPENLAYER_SONATYPE_GPG_SIGNING_KEY_ID || secrets.GPG_SIGNING_KEY_ID }} GPG_SIGNING_KEY: ${{ secrets.OPENLAYER_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }} GPG_SIGNING_PASSWORD: ${{ secrets.OPENLAYER_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }} diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListParamsTest.kt index 01f9c0f..634ca72 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListParamsTest.kt @@ -14,8 +14,8 @@ class CommitTestResultListParamsTest { CommitTestResultListParams.builder() .projectVersionId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .includeArchived(true) - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .status(CommitTestResultListParams.Status.RUNNING) .type(CommitTestResultListParams.Type.INTEGRITY) .build() @@ -27,15 +27,15 @@ class CommitTestResultListParamsTest { CommitTestResultListParams.builder() .projectVersionId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .includeArchived(true) - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .status(CommitTestResultListParams.Status.RUNNING) .type(CommitTestResultListParams.Type.INTEGRITY) .build() val expected = QueryParams.builder() expected.put("includeArchived", "true") - expected.put("page", "123") - expected.put("perPage", "100") + expected.put("page", "1") + expected.put("perPage", "1") expected.put("status", CommitTestResultListParams.Status.RUNNING.toString()) expected.put("type", CommitTestResultListParams.Type.INTEGRITY.toString()) assertThat(params.getQueryParams()).isEqualTo(expected.build()) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListResponseTest.kt index 13d9736..dd83444 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/CommitTestResultListResponseTest.kt @@ -28,7 +28,7 @@ class CommitTestResultListResponseTest { .goal( CommitTestResultListResponse.Item.Goal.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .commentCount(123L) + .commentCount(0L) .creatorId("589ece63-49a2-41b4-98e1-10547761d4b0") .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -39,10 +39,10 @@ class CommitTestResultListResponseTest { ) ) .name("No duplicate rows") - .number(123L) + .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .subtype("duplicateRowCount") - .suggested(true) + .suggested(false) .thresholds( listOf( CommitTestResultListResponse.Item.Goal.Threshold @@ -56,19 +56,19 @@ class CommitTestResultListResponseTest { .value( CommitTestResultListResponse.Item.Goal.Threshold .Value - .ofNumber(42.23) + .ofNumber(0.0) ) .build() ) ) .type("integrity") - .archived(true) - .delayWindow(42.23) - .evaluationWindow(42.23) - .usesMlModel(true) - .usesProductionData(true) - .usesReferenceDataset(true) - .usesTrainingDataset(true) + .archived(false) + .delayWindow(0.0) + .evaluationWindow(3600.0) + .usesMlModel(false) + .usesProductionData(false) + .usesReferenceDataset(false) + .usesTrainingDataset(false) .usesValidationDataset(true) .build() ) @@ -93,7 +93,7 @@ class CommitTestResultListResponseTest { .goal( CommitTestResultListResponse.Item.Goal.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .commentCount(123L) + .commentCount(0L) .creatorId("589ece63-49a2-41b4-98e1-10547761d4b0") .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -104,10 +104,10 @@ class CommitTestResultListResponseTest { ) ) .name("No duplicate rows") - .number(123L) + .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .subtype("duplicateRowCount") - .suggested(true) + .suggested(false) .thresholds( listOf( CommitTestResultListResponse.Item.Goal.Threshold.builder() @@ -119,19 +119,19 @@ class CommitTestResultListResponseTest { .operator("<=") .value( CommitTestResultListResponse.Item.Goal.Threshold.Value - .ofNumber(42.23) + .ofNumber(0.0) ) .build() ) ) .type("integrity") - .archived(true) - .delayWindow(42.23) - .evaluationWindow(42.23) - .usesMlModel(true) - .usesProductionData(true) - .usesReferenceDataset(true) - .usesTrainingDataset(true) + .archived(false) + .delayWindow(0.0) + .evaluationWindow(3600.0) + .usesMlModel(false) + .usesProductionData(false) + .usesReferenceDataset(false) + .usesTrainingDataset(false) .usesValidationDataset(true) .build() ) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponseTest.kt index e259f06..bdbcbe6 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponseTest.kt @@ -19,7 +19,7 @@ class InferencePipelineRetrieveResponseTest { .dateOfNextEvaluation(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .description("This pipeline is used for production.") - .failingGoalCount(123L) + .failingGoalCount(1L) .links( InferencePipelineRetrieveResponse.Links.builder() .app( @@ -28,11 +28,11 @@ class InferencePipelineRetrieveResponseTest { .build() ) .name("production") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineRetrieveResponse.Status.QUEUED) .statusMessage("Tests successfully evaluated") - .totalGoalCount(123L) + .totalGoalCount(6L) .build() assertThat(inferencePipelineRetrieveResponse).isNotNull assertThat(inferencePipelineRetrieveResponse.id()) @@ -49,7 +49,7 @@ class InferencePipelineRetrieveResponseTest { .isEqualTo(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) assertThat(inferencePipelineRetrieveResponse.description()) .contains("This pipeline is used for production.") - assertThat(inferencePipelineRetrieveResponse.failingGoalCount()).isEqualTo(123L) + assertThat(inferencePipelineRetrieveResponse.failingGoalCount()).isEqualTo(1L) assertThat(inferencePipelineRetrieveResponse.links()) .isEqualTo( InferencePipelineRetrieveResponse.Links.builder() @@ -59,13 +59,13 @@ class InferencePipelineRetrieveResponseTest { .build() ) assertThat(inferencePipelineRetrieveResponse.name()).isEqualTo("production") - assertThat(inferencePipelineRetrieveResponse.passingGoalCount()).isEqualTo(123L) + assertThat(inferencePipelineRetrieveResponse.passingGoalCount()).isEqualTo(5L) assertThat(inferencePipelineRetrieveResponse.projectId()) .isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(inferencePipelineRetrieveResponse.status()) .isEqualTo(InferencePipelineRetrieveResponse.Status.QUEUED) assertThat(inferencePipelineRetrieveResponse.statusMessage()) .contains("Tests successfully evaluated") - assertThat(inferencePipelineRetrieveResponse.totalGoalCount()).isEqualTo(123L) + assertThat(inferencePipelineRetrieveResponse.totalGoalCount()).isEqualTo(6L) } } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParamsTest.kt index e71d307..b008ba0 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParamsTest.kt @@ -13,8 +13,8 @@ class InferencePipelineTestResultListParamsTest { fun createInferencePipelineTestResultListParams() { InferencePipelineTestResultListParams.builder() .inferencePipelineId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .status(InferencePipelineTestResultListParams.Status.RUNNING) .type(InferencePipelineTestResultListParams.Type.INTEGRITY) .build() @@ -25,14 +25,14 @@ class InferencePipelineTestResultListParamsTest { val params = InferencePipelineTestResultListParams.builder() .inferencePipelineId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .status(InferencePipelineTestResultListParams.Status.RUNNING) .type(InferencePipelineTestResultListParams.Type.INTEGRITY) .build() val expected = QueryParams.builder() - expected.put("page", "123") - expected.put("perPage", "100") + expected.put("page", "1") + expected.put("perPage", "1") expected.put("status", InferencePipelineTestResultListParams.Status.RUNNING.toString()) expected.put("type", InferencePipelineTestResultListParams.Type.INTEGRITY.toString()) assertThat(params.getQueryParams()).isEqualTo(expected.build()) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponseTest.kt index 96afb47..fb5a0e0 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponseTest.kt @@ -28,7 +28,7 @@ class InferencePipelineTestResultListResponseTest { .goal( InferencePipelineTestResultListResponse.Item.Goal.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .commentCount(123L) + .commentCount(0L) .creatorId("589ece63-49a2-41b4-98e1-10547761d4b0") .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -39,10 +39,10 @@ class InferencePipelineTestResultListResponseTest { ) ) .name("No duplicate rows") - .number(123L) + .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .subtype("duplicateRowCount") - .suggested(true) + .suggested(false) .thresholds( listOf( InferencePipelineTestResultListResponse.Item.Goal @@ -59,19 +59,19 @@ class InferencePipelineTestResultListResponseTest { .Goal .Threshold .Value - .ofNumber(42.23) + .ofNumber(0.0) ) .build() ) ) .type("integrity") - .archived(true) - .delayWindow(42.23) - .evaluationWindow(42.23) - .usesMlModel(true) - .usesProductionData(true) - .usesReferenceDataset(true) - .usesTrainingDataset(true) + .archived(false) + .delayWindow(0.0) + .evaluationWindow(3600.0) + .usesMlModel(false) + .usesProductionData(false) + .usesReferenceDataset(false) + .usesTrainingDataset(false) .usesValidationDataset(true) .build() ) @@ -96,7 +96,7 @@ class InferencePipelineTestResultListResponseTest { .goal( InferencePipelineTestResultListResponse.Item.Goal.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .commentCount(123L) + .commentCount(0L) .creatorId("589ece63-49a2-41b4-98e1-10547761d4b0") .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -107,10 +107,10 @@ class InferencePipelineTestResultListResponseTest { ) ) .name("No duplicate rows") - .number(123L) + .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .subtype("duplicateRowCount") - .suggested(true) + .suggested(false) .thresholds( listOf( InferencePipelineTestResultListResponse.Item.Goal.Threshold @@ -125,19 +125,19 @@ class InferencePipelineTestResultListResponseTest { InferencePipelineTestResultListResponse.Item.Goal .Threshold .Value - .ofNumber(42.23) + .ofNumber(0.0) ) .build() ) ) .type("integrity") - .archived(true) - .delayWindow(42.23) - .evaluationWindow(42.23) - .usesMlModel(true) - .usesProductionData(true) - .usesReferenceDataset(true) - .usesTrainingDataset(true) + .archived(false) + .delayWindow(0.0) + .evaluationWindow(3600.0) + .usesMlModel(false) + .usesProductionData(false) + .usesReferenceDataset(false) + .usesTrainingDataset(false) .usesValidationDataset(true) .build() ) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponseTest.kt index 35af791..838b046 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponseTest.kt @@ -19,7 +19,7 @@ class InferencePipelineUpdateResponseTest { .dateOfNextEvaluation(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .description("This pipeline is used for production.") - .failingGoalCount(123L) + .failingGoalCount(1L) .links( InferencePipelineUpdateResponse.Links.builder() .app( @@ -28,11 +28,11 @@ class InferencePipelineUpdateResponseTest { .build() ) .name("production") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineUpdateResponse.Status.QUEUED) .statusMessage("Tests successfully evaluated") - .totalGoalCount(123L) + .totalGoalCount(6L) .build() assertThat(inferencePipelineUpdateResponse).isNotNull assertThat(inferencePipelineUpdateResponse.id()) @@ -49,7 +49,7 @@ class InferencePipelineUpdateResponseTest { .isEqualTo(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) assertThat(inferencePipelineUpdateResponse.description()) .contains("This pipeline is used for production.") - assertThat(inferencePipelineUpdateResponse.failingGoalCount()).isEqualTo(123L) + assertThat(inferencePipelineUpdateResponse.failingGoalCount()).isEqualTo(1L) assertThat(inferencePipelineUpdateResponse.links()) .isEqualTo( InferencePipelineUpdateResponse.Links.builder() @@ -59,13 +59,13 @@ class InferencePipelineUpdateResponseTest { .build() ) assertThat(inferencePipelineUpdateResponse.name()).isEqualTo("production") - assertThat(inferencePipelineUpdateResponse.passingGoalCount()).isEqualTo(123L) + assertThat(inferencePipelineUpdateResponse.passingGoalCount()).isEqualTo(5L) assertThat(inferencePipelineUpdateResponse.projectId()) .isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(inferencePipelineUpdateResponse.status()) .isEqualTo(InferencePipelineUpdateResponse.Status.QUEUED) assertThat(inferencePipelineUpdateResponse.statusMessage()) .contains("Tests successfully evaluated") - assertThat(inferencePipelineUpdateResponse.totalGoalCount()).isEqualTo(123L) + assertThat(inferencePipelineUpdateResponse.totalGoalCount()).isEqualTo(6L) } } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateParamsTest.kt index 1fff953..5eefc1e 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateParamsTest.kt @@ -17,7 +17,7 @@ class ProjectCommitCreateParamsTest { ProjectCommitCreateParams.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -25,12 +25,12 @@ class ProjectCommitCreateParamsTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) .storageUri("s3://...") - .archived(true) + .archived(false) .deploymentStatus("Deployed") .build() } @@ -44,7 +44,7 @@ class ProjectCommitCreateParamsTest { ProjectCommitCreateParams.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -52,12 +52,12 @@ class ProjectCommitCreateParamsTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) .storageUri("s3://...") - .archived(true) + .archived(false) .deploymentStatus("Deployed") .build() val body = params.getBody() @@ -67,7 +67,7 @@ class ProjectCommitCreateParamsTest { ProjectCommitCreateParams.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -75,12 +75,12 @@ class ProjectCommitCreateParamsTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) assertThat(body.storageUri()).isEqualTo("s3://...") - assertThat(body.archived()).isEqualTo(true) + assertThat(body.archived()).isEqualTo(false) assertThat(body.deploymentStatus()).isEqualTo("Deployed") } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateResponseTest.kt index 4a36d27..9720a0e 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitCreateResponseTest.kt @@ -17,7 +17,7 @@ class ProjectCommitCreateResponseTest { ProjectCommitCreateResponse.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -25,23 +25,23 @@ class ProjectCommitCreateResponseTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .failingGoalCount(123L) + .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(ProjectCommitCreateResponse.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") - .totalGoalCount(123L) + .totalGoalCount(6L) .trainingDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .archived(true) + .archived(false) .deploymentStatus("Deployed") .links( ProjectCommitCreateResponse.Links.builder() @@ -59,7 +59,7 @@ class ProjectCommitCreateResponseTest { ProjectCommitCreateResponse.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -67,7 +67,7 @@ class ProjectCommitCreateResponseTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) @@ -75,10 +75,10 @@ class ProjectCommitCreateResponseTest { .contains(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) assertThat(projectCommitCreateResponse.dateCreated()) .isEqualTo(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - assertThat(projectCommitCreateResponse.failingGoalCount()).isEqualTo(123L) + assertThat(projectCommitCreateResponse.failingGoalCount()).isEqualTo(1L) assertThat(projectCommitCreateResponse.mlModelId()) .contains("3fa85f64-5717-4562-b3fc-2c963f66afa6") - assertThat(projectCommitCreateResponse.passingGoalCount()).isEqualTo(123L) + assertThat(projectCommitCreateResponse.passingGoalCount()).isEqualTo(5L) assertThat(projectCommitCreateResponse.projectId()) .isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(projectCommitCreateResponse.status()) @@ -86,12 +86,12 @@ class ProjectCommitCreateResponseTest { assertThat(projectCommitCreateResponse.statusMessage()) .contains("Commit successfully processed.") assertThat(projectCommitCreateResponse.storageUri()).isEqualTo("s3://...") - assertThat(projectCommitCreateResponse.totalGoalCount()).isEqualTo(123L) + assertThat(projectCommitCreateResponse.totalGoalCount()).isEqualTo(6L) assertThat(projectCommitCreateResponse.trainingDatasetId()) .contains("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(projectCommitCreateResponse.validationDatasetId()) .contains("3fa85f64-5717-4562-b3fc-2c963f66afa6") - assertThat(projectCommitCreateResponse.archived()).contains(true) + assertThat(projectCommitCreateResponse.archived()).contains(false) assertThat(projectCommitCreateResponse.deploymentStatus()).contains("Deployed") assertThat(projectCommitCreateResponse.links()) .contains( diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListParamsTest.kt index 1b5e9c5..0a33199 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListParamsTest.kt @@ -13,8 +13,8 @@ class ProjectCommitListParamsTest { fun createProjectCommitListParams() { ProjectCommitListParams.builder() .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .build() } @@ -23,12 +23,12 @@ class ProjectCommitListParamsTest { val params = ProjectCommitListParams.builder() .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .build() val expected = QueryParams.builder() - expected.put("page", "123") - expected.put("perPage", "100") + expected.put("page", "1") + expected.put("perPage", "1") assertThat(params.getQueryParams()).isEqualTo(expected.build()) } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListResponseTest.kt index d76d210..a7aff62 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCommitListResponseTest.kt @@ -20,7 +20,7 @@ class ProjectCommitListResponseTest { ProjectCommitListResponse.Item.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -28,23 +28,23 @@ class ProjectCommitListResponseTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .failingGoalCount(123L) + .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(ProjectCommitListResponse.Item.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") - .totalGoalCount(123L) + .totalGoalCount(6L) .trainingDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .archived(true) + .archived(false) .deploymentStatus("Deployed") .links( ProjectCommitListResponse.Item.Links.builder() @@ -66,7 +66,7 @@ class ProjectCommitListResponseTest { ProjectCommitListResponse.Item.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -74,23 +74,23 @@ class ProjectCommitListResponseTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .failingGoalCount(123L) + .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(ProjectCommitListResponse.Item.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") - .totalGoalCount(123L) + .totalGoalCount(6L) .trainingDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") - .archived(true) + .archived(false) .deploymentStatus("Deployed") .links( ProjectCommitListResponse.Item.Links.builder() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCreateResponseTest.kt index 1fc43bb..86144f7 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCreateResponseTest.kt @@ -16,9 +16,9 @@ class ProjectCreateResponseTest { .creatorId("589ece63-49a2-41b4-98e1-10547761d4b0") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .developmentGoalCount(123L) - .goalCount(123L) - .inferencePipelineCount(123L) + .developmentGoalCount(5L) + .goalCount(10L) + .inferencePipelineCount(1L) .links( ProjectCreateResponse.Links.builder() .app( @@ -26,11 +26,11 @@ class ProjectCreateResponseTest { ) .build() ) - .monitoringGoalCount(123L) + .monitoringGoalCount(5L) .name("My Project") .source(ProjectCreateResponse.Source.WEB) .taskType(ProjectCreateResponse.TaskType.LLM_BASE) - .versionCount(123L) + .versionCount(2L) .workspaceId("055fddb1-261f-4654-8598-f6347ee46a09") .description("My project description.") .gitRepo( @@ -39,7 +39,7 @@ class ProjectCreateResponseTest { .dateConnected(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .dateUpdated(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .gitAccountId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .gitId(123L) + .gitId(0L) .name("name") .private_(true) .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") @@ -58,9 +58,9 @@ class ProjectCreateResponseTest { .isEqualTo(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) assertThat(projectCreateResponse.dateUpdated()) .isEqualTo(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - assertThat(projectCreateResponse.developmentGoalCount()).isEqualTo(123L) - assertThat(projectCreateResponse.goalCount()).isEqualTo(123L) - assertThat(projectCreateResponse.inferencePipelineCount()).isEqualTo(123L) + assertThat(projectCreateResponse.developmentGoalCount()).isEqualTo(5L) + assertThat(projectCreateResponse.goalCount()).isEqualTo(10L) + assertThat(projectCreateResponse.inferencePipelineCount()).isEqualTo(1L) assertThat(projectCreateResponse.links()) .isEqualTo( ProjectCreateResponse.Links.builder() @@ -69,12 +69,12 @@ class ProjectCreateResponseTest { ) .build() ) - assertThat(projectCreateResponse.monitoringGoalCount()).isEqualTo(123L) + assertThat(projectCreateResponse.monitoringGoalCount()).isEqualTo(5L) assertThat(projectCreateResponse.name()).isEqualTo("My Project") assertThat(projectCreateResponse.source()).contains(ProjectCreateResponse.Source.WEB) assertThat(projectCreateResponse.taskType()) .isEqualTo(ProjectCreateResponse.TaskType.LLM_BASE) - assertThat(projectCreateResponse.versionCount()).isEqualTo(123L) + assertThat(projectCreateResponse.versionCount()).isEqualTo(2L) assertThat(projectCreateResponse.workspaceId()) .contains("055fddb1-261f-4654-8598-f6347ee46a09") assertThat(projectCreateResponse.description()).contains("My project description.") @@ -85,7 +85,7 @@ class ProjectCreateResponseTest { .dateConnected(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .dateUpdated(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .gitAccountId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .gitId(123L) + .gitId(0L) .name("name") .private_(true) .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponseTest.kt index 2398c71..7159c5d 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponseTest.kt @@ -19,7 +19,7 @@ class ProjectInferencePipelineCreateResponseTest { .dateOfNextEvaluation(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .description("This pipeline is used for production.") - .failingGoalCount(123L) + .failingGoalCount(1L) .links( ProjectInferencePipelineCreateResponse.Links.builder() .app( @@ -28,11 +28,11 @@ class ProjectInferencePipelineCreateResponseTest { .build() ) .name("production") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(ProjectInferencePipelineCreateResponse.Status.QUEUED) .statusMessage("Tests successfully evaluated") - .totalGoalCount(123L) + .totalGoalCount(6L) .build() assertThat(projectInferencePipelineCreateResponse).isNotNull assertThat(projectInferencePipelineCreateResponse.id()) @@ -49,7 +49,7 @@ class ProjectInferencePipelineCreateResponseTest { .isEqualTo(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) assertThat(projectInferencePipelineCreateResponse.description()) .contains("This pipeline is used for production.") - assertThat(projectInferencePipelineCreateResponse.failingGoalCount()).isEqualTo(123L) + assertThat(projectInferencePipelineCreateResponse.failingGoalCount()).isEqualTo(1L) assertThat(projectInferencePipelineCreateResponse.links()) .isEqualTo( ProjectInferencePipelineCreateResponse.Links.builder() @@ -59,13 +59,13 @@ class ProjectInferencePipelineCreateResponseTest { .build() ) assertThat(projectInferencePipelineCreateResponse.name()).isEqualTo("production") - assertThat(projectInferencePipelineCreateResponse.passingGoalCount()).isEqualTo(123L) + assertThat(projectInferencePipelineCreateResponse.passingGoalCount()).isEqualTo(5L) assertThat(projectInferencePipelineCreateResponse.projectId()) .isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(projectInferencePipelineCreateResponse.status()) .isEqualTo(ProjectInferencePipelineCreateResponse.Status.QUEUED) assertThat(projectInferencePipelineCreateResponse.statusMessage()) .contains("Tests successfully evaluated") - assertThat(projectInferencePipelineCreateResponse.totalGoalCount()).isEqualTo(123L) + assertThat(projectInferencePipelineCreateResponse.totalGoalCount()).isEqualTo(6L) } } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParamsTest.kt index 0197e06..70da9b9 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParamsTest.kt @@ -14,8 +14,8 @@ class ProjectInferencePipelineListParamsTest { ProjectInferencePipelineListParams.builder() .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .name("name") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .build() } @@ -25,13 +25,13 @@ class ProjectInferencePipelineListParamsTest { ProjectInferencePipelineListParams.builder() .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .name("name") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .build() val expected = QueryParams.builder() expected.put("name", "name") - expected.put("page", "123") - expected.put("perPage", "100") + expected.put("page", "1") + expected.put("perPage", "1") assertThat(params.getQueryParams()).isEqualTo(expected.build()) } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponseTest.kt index 17d8e00..2dc728b 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponseTest.kt @@ -24,7 +24,7 @@ class ProjectInferencePipelineListResponseTest { .dateOfNextEvaluation(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .description("This pipeline is used for production.") - .failingGoalCount(123L) + .failingGoalCount(1L) .links( ProjectInferencePipelineListResponse.Item.Links.builder() .app( @@ -33,11 +33,11 @@ class ProjectInferencePipelineListResponseTest { .build() ) .name("production") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(ProjectInferencePipelineListResponse.Item.Status.QUEUED) .statusMessage("Tests successfully evaluated") - .totalGoalCount(123L) + .totalGoalCount(6L) .build() ) ) @@ -53,7 +53,7 @@ class ProjectInferencePipelineListResponseTest { .dateOfNextEvaluation(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .description("This pipeline is used for production.") - .failingGoalCount(123L) + .failingGoalCount(1L) .links( ProjectInferencePipelineListResponse.Item.Links.builder() .app( @@ -62,11 +62,11 @@ class ProjectInferencePipelineListResponseTest { .build() ) .name("production") - .passingGoalCount(123L) + .passingGoalCount(5L) .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(ProjectInferencePipelineListResponse.Item.Status.QUEUED) .statusMessage("Tests successfully evaluated") - .totalGoalCount(123L) + .totalGoalCount(6L) .build() ) } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListParamsTest.kt index 93c9049..5c74c20 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListParamsTest.kt @@ -13,8 +13,8 @@ class ProjectListParamsTest { fun createProjectListParams() { ProjectListParams.builder() .name("name") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .taskType(ProjectListParams.TaskType.LLM_BASE) .build() } @@ -24,14 +24,14 @@ class ProjectListParamsTest { val params = ProjectListParams.builder() .name("name") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .taskType(ProjectListParams.TaskType.LLM_BASE) .build() val expected = QueryParams.builder() expected.put("name", "name") - expected.put("page", "123") - expected.put("perPage", "100") + expected.put("page", "1") + expected.put("perPage", "1") expected.put("taskType", ProjectListParams.TaskType.LLM_BASE.toString()) assertThat(params.getQueryParams()).isEqualTo(expected.build()) } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListResponseTest.kt index dd977ce..26ef957 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectListResponseTest.kt @@ -19,9 +19,9 @@ class ProjectListResponseTest { .creatorId("589ece63-49a2-41b4-98e1-10547761d4b0") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .developmentGoalCount(123L) - .goalCount(123L) - .inferencePipelineCount(123L) + .developmentGoalCount(5L) + .goalCount(10L) + .inferencePipelineCount(1L) .links( ProjectListResponse.Item.Links.builder() .app( @@ -29,11 +29,11 @@ class ProjectListResponseTest { ) .build() ) - .monitoringGoalCount(123L) + .monitoringGoalCount(5L) .name("My Project") .source(ProjectListResponse.Item.Source.WEB) .taskType(ProjectListResponse.Item.TaskType.LLM_BASE) - .versionCount(123L) + .versionCount(2L) .workspaceId("055fddb1-261f-4654-8598-f6347ee46a09") .description("My project description.") .gitRepo( @@ -42,7 +42,7 @@ class ProjectListResponseTest { .dateConnected(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .dateUpdated(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .gitAccountId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .gitId(123L) + .gitId(0L) .name("name") .private_(true) .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") @@ -64,9 +64,9 @@ class ProjectListResponseTest { .creatorId("589ece63-49a2-41b4-98e1-10547761d4b0") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .developmentGoalCount(123L) - .goalCount(123L) - .inferencePipelineCount(123L) + .developmentGoalCount(5L) + .goalCount(10L) + .inferencePipelineCount(1L) .links( ProjectListResponse.Item.Links.builder() .app( @@ -74,11 +74,11 @@ class ProjectListResponseTest { ) .build() ) - .monitoringGoalCount(123L) + .monitoringGoalCount(5L) .name("My Project") .source(ProjectListResponse.Item.Source.WEB) .taskType(ProjectListResponse.Item.TaskType.LLM_BASE) - .versionCount(123L) + .versionCount(2L) .workspaceId("055fddb1-261f-4654-8598-f6347ee46a09") .description("My project description.") .gitRepo( @@ -87,7 +87,7 @@ class ProjectListResponseTest { .dateConnected(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .dateUpdated(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) .gitAccountId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .gitId(123L) + .gitId(0L) .name("name") .private_(true) .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt index a87bdef..dd6703a 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt @@ -43,8 +43,8 @@ class ProjectServiceTest { projectService.list( ProjectListParams.builder() .name("name") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .taskType(ProjectListParams.TaskType.LLM_BASE) .build() ) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt index 1f87370..4a0d339 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt @@ -24,8 +24,8 @@ class TestResultServiceTest { CommitTestResultListParams.builder() .projectVersionId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .includeArchived(true) - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .status(CommitTestResultListParams.Status.RUNNING) .type(CommitTestResultListParams.Type.INTEGRITY) .build() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencePipelines/TestResultServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencePipelines/TestResultServiceTest.kt index 67a11f1..fed01f2 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencePipelines/TestResultServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencePipelines/TestResultServiceTest.kt @@ -23,8 +23,8 @@ class TestResultServiceTest { testResultService.list( InferencePipelineTestResultListParams.builder() .inferencePipelineId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .status(InferencePipelineTestResultListParams.Status.RUNNING) .type(InferencePipelineTestResultListParams.Type.INTEGRITY) .build() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt index cbede51..cbedd4d 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt @@ -28,7 +28,7 @@ class CommitServiceTest { ProjectCommitCreateParams.Commit.builder() .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .authorId("589ece63-49a2-41b4-98e1-10547761d4b0") - .fileSize(123L) + .fileSize(1024L) .message("Updated the prompt.") .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .storageUri("s3://...") @@ -36,12 +36,12 @@ class CommitServiceTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .gitCommitRef("main") - .gitCommitSha(123L) + .gitCommitSha(0L) .gitCommitUrl("gitCommitUrl") .build() ) .storageUri("s3://...") - .archived(true) + .archived(false) .deploymentStatus("Deployed") .build() ) @@ -61,8 +61,8 @@ class CommitServiceTest { commitService.list( ProjectCommitListParams.builder() .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .build() ) println(projectCommitListResponse) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt index ed1ee7c..96bcef8 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt @@ -44,8 +44,8 @@ class InferencePipelineServiceTest { ProjectInferencePipelineListParams.builder() .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .name("name") - .page(123L) - .perPage(100L) + .page(1L) + .perPage(1L) .build() ) println(projectInferencePipelineListResponse)