mirror of
https://github.com/langchain-ai/langsmith-java.git
synced 2026-08-24 22:01:31 -04:00
chore(internal): remove mock server code
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
package com.langchain.smith
|
||||
|
||||
import java.lang.RuntimeException
|
||||
import java.net.URL
|
||||
import org.junit.jupiter.api.extension.BeforeAllCallback
|
||||
import org.junit.jupiter.api.extension.ConditionEvaluationResult
|
||||
import org.junit.jupiter.api.extension.ExecutionCondition
|
||||
import org.junit.jupiter.api.extension.ExtensionContext
|
||||
|
||||
class TestServerExtension : BeforeAllCallback, ExecutionCondition {
|
||||
|
||||
override fun beforeAll(context: ExtensionContext?) {
|
||||
try {
|
||||
URL(BASE_URL).openConnection().connect()
|
||||
} catch (e: Exception) {
|
||||
throw RuntimeException(
|
||||
"""
|
||||
The test suite will not run without a mock server running against your OpenAPI spec.
|
||||
|
||||
You can set the environment variable `SKIP_MOCK_TESTS` to `true` to skip running any tests
|
||||
that require the mock server.
|
||||
|
||||
To fix run `./scripts/mock` in a separate terminal.
|
||||
"""
|
||||
.trimIndent(),
|
||||
e,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override fun evaluateExecutionCondition(context: ExtensionContext): ConditionEvaluationResult {
|
||||
return if (System.getenv(SKIP_TESTS_ENV).toBoolean()) {
|
||||
ConditionEvaluationResult.disabled(
|
||||
"Environment variable $SKIP_TESTS_ENV is set to true"
|
||||
)
|
||||
} else {
|
||||
ConditionEvaluationResult.enabled(
|
||||
"Environment variable $SKIP_TESTS_ENV is not set to true"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
val BASE_URL = System.getenv("TEST_API_BASE_URL") ?: "http://localhost:4010"
|
||||
|
||||
const val SKIP_TESTS_ENV: String = "SKIP_MOCK_TESTS"
|
||||
}
|
||||
}
|
||||
-16
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.annotationqueues.AnnotationQueueAnnotationQueuesParams
|
||||
@@ -16,9 +15,7 @@ import com.langchain.smith.models.annotationqueues.AnnotationQueueUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class AnnotationQueueServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -26,7 +23,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -45,7 +41,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -97,7 +92,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -116,7 +110,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun annotationQueues() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -171,7 +164,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun createRunStatus() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -196,7 +188,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun export() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -221,7 +212,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun populate() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -245,7 +235,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun retrieveAnnotationQueues() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -263,7 +252,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun retrieveQueues() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -282,7 +270,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun retrieveRun() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -307,7 +294,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun retrieveSize() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -326,7 +312,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun retrieveTotalArchived() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -351,7 +336,6 @@ internal class AnnotationQueueServiceAsyncTest {
|
||||
fun retrieveTotalSize() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-6
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.commits.CommitCreateParams
|
||||
@@ -10,9 +9,7 @@ import com.langchain.smith.models.commits.CommitListParams
|
||||
import com.langchain.smith.models.commits.CommitRetrieveParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class CommitServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -20,7 +17,6 @@ internal class CommitServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -47,7 +43,6 @@ internal class CommitServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -75,7 +70,6 @@ internal class CommitServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-16
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.DataType
|
||||
@@ -20,9 +19,7 @@ import com.langchain.smith.models.datasets.DatasetUploadParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class DatasetServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -30,7 +27,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -81,7 +77,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -99,7 +94,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -173,7 +167,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -191,7 +184,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -209,7 +201,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun clone() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -236,7 +227,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun retrieveCsv() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -260,7 +250,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun retrieveJsonl() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -284,7 +273,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun retrieveOpenAI() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -308,7 +296,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun retrieveOpenAIFt() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -332,7 +319,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun retrieveVersion() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -357,7 +343,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun updateTags() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -382,7 +367,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun upload() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-11
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.examples.AttachmentsOperations
|
||||
@@ -15,9 +14,7 @@ import com.langchain.smith.models.examples.ExampleUploadFromCsvParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ExampleServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -25,7 +22,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -70,7 +66,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -95,7 +90,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -146,7 +140,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -164,7 +157,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -182,7 +174,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun deleteAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -205,7 +196,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun retrieveCount() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -233,7 +223,6 @@ internal class ExampleServiceAsyncTest {
|
||||
fun uploadFromCsv() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.feedback.AppFeedbackSource
|
||||
@@ -12,9 +11,7 @@ import com.langchain.smith.models.feedback.FeedbackUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class FeedbackServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -22,7 +19,6 @@ internal class FeedbackServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -91,7 +87,6 @@ internal class FeedbackServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -115,7 +110,6 @@ internal class FeedbackServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -159,7 +153,6 @@ internal class FeedbackServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -177,7 +170,6 @@ internal class FeedbackServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class PublicServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class PublicServiceAsyncTest {
|
||||
fun retrieveFeedbacks() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.repos.RepoCreateParams
|
||||
import com.langchain.smith.models.repos.RepoDeleteParams
|
||||
@@ -10,9 +9,7 @@ import com.langchain.smith.models.repos.RepoRetrieveParams
|
||||
import com.langchain.smith.models.repos.RepoUpdateParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RepoServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -20,7 +17,6 @@ internal class RepoServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -47,7 +43,6 @@ internal class RepoServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -68,7 +63,6 @@ internal class RepoServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -97,7 +91,6 @@ internal class RepoServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -115,7 +108,6 @@ internal class RepoServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.runs.Run
|
||||
@@ -11,9 +10,7 @@ import com.langchain.smith.models.runs.RunQueryParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RunServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -21,7 +18,6 @@ internal class RunServiceAsyncTest {
|
||||
fun ingestBatch() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -149,7 +145,6 @@ internal class RunServiceAsyncTest {
|
||||
fun query() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-9
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.sessions.CustomChartsSectionRequest
|
||||
@@ -15,9 +14,7 @@ import com.langchain.smith.models.sessions.TimedeltaInput
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class SessionServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -25,7 +22,6 @@ internal class SessionServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -61,7 +57,6 @@ internal class SessionServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -87,7 +82,6 @@ internal class SessionServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -120,7 +114,6 @@ internal class SessionServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -138,7 +131,6 @@ internal class SessionServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -156,7 +148,6 @@ internal class SessionServiceAsyncTest {
|
||||
fun dashboard() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.async
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class SettingServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class SettingServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.async.annotationqueues
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class InfoServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class InfoServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async.annotationqueues
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.annotationqueues.runs.RunCreateParams
|
||||
import com.langchain.smith.models.annotationqueues.runs.RunDeleteAllParams
|
||||
@@ -12,9 +11,7 @@ import com.langchain.smith.models.annotationqueues.runs.RunUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RunServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -22,7 +19,6 @@ internal class RunServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -46,7 +42,6 @@ internal class RunServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -72,7 +67,6 @@ internal class RunServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -99,7 +93,6 @@ internal class RunServiceAsyncTest {
|
||||
fun deleteAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -125,7 +118,6 @@ internal class RunServiceAsyncTest {
|
||||
fun deleteQueue() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-6
@@ -2,16 +2,13 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.comparative.ComparativeCreateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ComparativeServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -19,7 +16,6 @@ internal class ComparativeServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -53,7 +49,6 @@ internal class ComparativeServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -71,7 +66,6 @@ internal class ComparativeServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.datasets.experiments.ExperimentGroupedParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ExperimentServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class ExperimentServiceAsyncTest {
|
||||
fun grouped() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.group.GroupRunsParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class GroupServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class GroupServiceAsyncTest {
|
||||
fun runs() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,14 +2,11 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.datasets.index.IndexCreateParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class IndexServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -17,7 +14,6 @@ internal class IndexServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -41,7 +37,6 @@ internal class IndexServiceAsyncTest {
|
||||
fun sync() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.playgroundexperiment.PlaygroundExperimentBatchParams
|
||||
@@ -11,9 +10,7 @@ import com.langchain.smith.models.datasets.playgroundexperiment.RunnableConfig
|
||||
import com.langchain.smith.models.datasets.playgroundexperiment.RunnerContextEnum
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class PlaygroundExperimentServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -21,7 +18,6 @@ internal class PlaygroundExperimentServiceAsyncTest {
|
||||
fun batch() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -91,7 +87,6 @@ internal class PlaygroundExperimentServiceAsyncTest {
|
||||
fun stream() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.runs.QueryFeedbackDelta
|
||||
@@ -12,9 +11,7 @@ import com.langchain.smith.models.datasets.runs.SortParamsForRunsComparisonView
|
||||
import kotlin.jvm.optionals.getOrNull
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RunServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -22,7 +19,6 @@ internal class RunServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -65,7 +61,6 @@ internal class RunServiceAsyncTest {
|
||||
fun delta() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-6
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.datasets.share.ShareCreateParams
|
||||
import kotlin.jvm.optionals.getOrNull
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ShareServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class ShareServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -42,7 +38,6 @@ internal class ShareServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -62,7 +57,6 @@ internal class ShareServiceAsyncTest {
|
||||
fun deleteAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,16 +2,13 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.datasets.splits.SplitCreateParams
|
||||
import com.langchain.smith.models.datasets.splits.SplitRetrieveParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class SplitServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -19,7 +16,6 @@ internal class SplitServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -44,7 +40,6 @@ internal class SplitServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.async.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.datasets.versions.VersionRetrieveDiffParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class VersionServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class VersionServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -36,7 +32,6 @@ internal class VersionServiceAsyncTest {
|
||||
fun retrieveDiff() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async.examples
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.examples.AttachmentsOperations
|
||||
@@ -10,9 +9,7 @@ import com.langchain.smith.models.examples.bulk.BulkCreateParams
|
||||
import com.langchain.smith.models.examples.bulk.BulkPatchAllParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class BulkServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -20,7 +17,6 @@ internal class BulkServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -67,7 +63,6 @@ internal class BulkServiceAsyncTest {
|
||||
fun patchAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.async.examples
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ValidateServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class ValidateServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -34,7 +30,6 @@ internal class ValidateServiceAsyncTest {
|
||||
fun bulk() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,14 +2,11 @@
|
||||
|
||||
package com.langchain.smith.services.async.feedback
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.feedback.configs.ConfigDeleteParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ConfigServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -17,7 +14,6 @@ internal class ConfigServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-7
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async.feedback
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.feedback.tokens.FeedbackIngestTokenCreateSchema
|
||||
@@ -13,9 +12,7 @@ import com.langchain.smith.models.sessions.TimedeltaInput
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class TokenServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -23,7 +20,6 @@ internal class TokenServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -62,7 +58,6 @@ internal class TokenServiceAsyncTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -89,7 +84,6 @@ internal class TokenServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -125,7 +119,6 @@ internal class TokenServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,16 +2,13 @@
|
||||
|
||||
package com.langchain.smith.services.async.public_
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.models.datasets.SortByDatasetColumn
|
||||
import com.langchain.smith.models.public_.datasets.DatasetListParams
|
||||
import com.langchain.smith.models.public_.datasets.DatasetRetrieveSessionsBulkParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class DatasetServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -19,7 +16,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -46,7 +42,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun listComparative() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -64,7 +59,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun listFeedback() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -82,7 +76,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun listSessions() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -100,7 +93,6 @@ internal class DatasetServiceAsyncTest {
|
||||
fun retrieveSessionsBulk() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.async.sessions
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClientAsync
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.sessions.insights.CreateRunClusteringJobRequest
|
||||
@@ -14,9 +13,7 @@ import com.langchain.smith.models.sessions.insights.InsightUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class InsightServiceAsyncTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -24,7 +21,6 @@ internal class InsightServiceAsyncTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -79,7 +75,6 @@ internal class InsightServiceAsyncTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -104,7 +99,6 @@ internal class InsightServiceAsyncTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -128,7 +122,6 @@ internal class InsightServiceAsyncTest {
|
||||
fun retrieveJob() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -152,7 +145,6 @@ internal class InsightServiceAsyncTest {
|
||||
fun retrieveRuns() {
|
||||
val client =
|
||||
LangsmithOkHttpClientAsync.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-16
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.annotationqueues.AnnotationQueueAnnotationQueuesParams
|
||||
@@ -16,9 +15,7 @@ import com.langchain.smith.models.annotationqueues.AnnotationQueueUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class AnnotationQueueServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -26,7 +23,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -44,7 +40,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -95,7 +90,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -112,7 +106,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun annotationQueues() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -166,7 +159,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun createRunStatus() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -190,7 +182,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun export() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -214,7 +205,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun populate() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -237,7 +227,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun retrieveAnnotationQueues() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -254,7 +243,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun retrieveQueues() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -272,7 +260,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun retrieveRun() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -296,7 +283,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun retrieveSize() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -314,7 +300,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun retrieveTotalArchived() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -338,7 +323,6 @@ internal class AnnotationQueueServiceTest {
|
||||
fun retrieveTotalSize() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-6
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.commits.CommitCreateParams
|
||||
@@ -10,9 +9,7 @@ import com.langchain.smith.models.commits.CommitListParams
|
||||
import com.langchain.smith.models.commits.CommitRetrieveParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class CommitServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -20,7 +17,6 @@ internal class CommitServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -46,7 +42,6 @@ internal class CommitServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -73,7 +68,6 @@ internal class CommitServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-16
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.DataType
|
||||
@@ -20,9 +19,7 @@ import com.langchain.smith.models.datasets.DatasetUploadParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class DatasetServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -30,7 +27,6 @@ internal class DatasetServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -80,7 +76,6 @@ internal class DatasetServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -97,7 +92,6 @@ internal class DatasetServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -170,7 +164,6 @@ internal class DatasetServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -187,7 +180,6 @@ internal class DatasetServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -204,7 +196,6 @@ internal class DatasetServiceTest {
|
||||
fun clone() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -230,7 +221,6 @@ internal class DatasetServiceTest {
|
||||
fun retrieveCsv() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -253,7 +243,6 @@ internal class DatasetServiceTest {
|
||||
fun retrieveJsonl() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -276,7 +265,6 @@ internal class DatasetServiceTest {
|
||||
fun retrieveOpenAI() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -299,7 +287,6 @@ internal class DatasetServiceTest {
|
||||
fun retrieveOpenAIFt() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -322,7 +309,6 @@ internal class DatasetServiceTest {
|
||||
fun retrieveVersion() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -346,7 +332,6 @@ internal class DatasetServiceTest {
|
||||
fun updateTags() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -370,7 +355,6 @@ internal class DatasetServiceTest {
|
||||
fun upload() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-11
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.examples.AttachmentsOperations
|
||||
@@ -15,9 +14,7 @@ import com.langchain.smith.models.examples.ExampleUploadFromCsvParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ExampleServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -25,7 +22,6 @@ internal class ExampleServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -69,7 +65,6 @@ internal class ExampleServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -93,7 +88,6 @@ internal class ExampleServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -143,7 +137,6 @@ internal class ExampleServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -160,7 +153,6 @@ internal class ExampleServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -177,7 +169,6 @@ internal class ExampleServiceTest {
|
||||
fun deleteAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -199,7 +190,6 @@ internal class ExampleServiceTest {
|
||||
fun retrieveCount() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -224,7 +214,6 @@ internal class ExampleServiceTest {
|
||||
fun uploadFromCsv() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.feedback.AppFeedbackSource
|
||||
@@ -12,9 +11,7 @@ import com.langchain.smith.models.feedback.FeedbackUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class FeedbackServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -22,7 +19,6 @@ internal class FeedbackServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -90,7 +86,6 @@ internal class FeedbackServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -113,7 +108,6 @@ internal class FeedbackServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -156,7 +150,6 @@ internal class FeedbackServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -173,7 +166,6 @@ internal class FeedbackServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class PublicServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class PublicServiceTest {
|
||||
fun retrieveFeedbacks() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.repos.RepoCreateParams
|
||||
import com.langchain.smith.models.repos.RepoDeleteParams
|
||||
@@ -10,9 +9,7 @@ import com.langchain.smith.models.repos.RepoRetrieveParams
|
||||
import com.langchain.smith.models.repos.RepoUpdateParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RepoServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -20,7 +17,6 @@ internal class RepoServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -46,7 +42,6 @@ internal class RepoServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -64,7 +59,6 @@ internal class RepoServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -92,7 +86,6 @@ internal class RepoServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -109,7 +102,6 @@ internal class RepoServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.runs.Run
|
||||
@@ -11,9 +10,7 @@ import com.langchain.smith.models.runs.RunQueryParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RunServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -21,7 +18,6 @@ internal class RunServiceTest {
|
||||
fun ingestBatch() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -148,7 +144,6 @@ internal class RunServiceTest {
|
||||
fun query() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-9
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.sessions.CustomChartsSectionRequest
|
||||
@@ -15,9 +14,7 @@ import com.langchain.smith.models.sessions.TimedeltaInput
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class SessionServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -25,7 +22,6 @@ internal class SessionServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -60,7 +56,6 @@ internal class SessionServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -85,7 +80,6 @@ internal class SessionServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -117,7 +111,6 @@ internal class SessionServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -134,7 +127,6 @@ internal class SessionServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -151,7 +143,6 @@ internal class SessionServiceTest {
|
||||
fun dashboard() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.blocking
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class SettingServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class SettingServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.annotationqueues
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class InfoServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class InfoServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.annotationqueues
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.annotationqueues.runs.RunCreateParams
|
||||
import com.langchain.smith.models.annotationqueues.runs.RunDeleteAllParams
|
||||
@@ -12,9 +11,7 @@ import com.langchain.smith.models.annotationqueues.runs.RunUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RunServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -22,7 +19,6 @@ internal class RunServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -45,7 +41,6 @@ internal class RunServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -70,7 +65,6 @@ internal class RunServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -96,7 +90,6 @@ internal class RunServiceTest {
|
||||
fun deleteAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -121,7 +114,6 @@ internal class RunServiceTest {
|
||||
fun deleteQueue() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-6
@@ -2,16 +2,13 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.comparative.ComparativeCreateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ComparativeServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -19,7 +16,6 @@ internal class ComparativeServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -52,7 +48,6 @@ internal class ComparativeServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -69,7 +64,6 @@ internal class ComparativeServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.datasets.experiments.ExperimentGroupedParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ExperimentServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class ExperimentServiceTest {
|
||||
fun grouped() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.group.GroupRunsParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class GroupServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class GroupServiceTest {
|
||||
fun runs() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,14 +2,11 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.datasets.index.IndexCreateParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class IndexServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -17,7 +14,6 @@ internal class IndexServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -40,7 +36,6 @@ internal class IndexServiceTest {
|
||||
fun sync() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.playgroundexperiment.PlaygroundExperimentBatchParams
|
||||
@@ -11,9 +10,7 @@ import com.langchain.smith.models.datasets.playgroundexperiment.RunnableConfig
|
||||
import com.langchain.smith.models.datasets.playgroundexperiment.RunnerContextEnum
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class PlaygroundExperimentServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -21,7 +18,6 @@ internal class PlaygroundExperimentServiceTest {
|
||||
fun batch() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -90,7 +86,6 @@ internal class PlaygroundExperimentServiceTest {
|
||||
fun stream() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.datasets.runs.QueryFeedbackDelta
|
||||
@@ -12,9 +11,7 @@ import com.langchain.smith.models.datasets.runs.SortParamsForRunsComparisonView
|
||||
import kotlin.jvm.optionals.getOrNull
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class RunServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -22,7 +19,6 @@ internal class RunServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -64,7 +60,6 @@ internal class RunServiceTest {
|
||||
fun delta() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-6
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.datasets.share.ShareCreateParams
|
||||
import kotlin.jvm.optionals.getOrNull
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ShareServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class ShareServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -41,7 +37,6 @@ internal class ShareServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -59,7 +54,6 @@ internal class ShareServiceTest {
|
||||
fun deleteAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,16 +2,13 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.datasets.splits.SplitCreateParams
|
||||
import com.langchain.smith.models.datasets.splits.SplitRetrieveParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class SplitServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -19,7 +16,6 @@ internal class SplitServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -41,7 +37,6 @@ internal class SplitServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,15 +2,12 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.datasets
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.datasets.versions.VersionRetrieveDiffParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class VersionServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -18,7 +15,6 @@ internal class VersionServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -35,7 +31,6 @@ internal class VersionServiceTest {
|
||||
fun retrieveDiff() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.examples
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.examples.AttachmentsOperations
|
||||
@@ -10,9 +9,7 @@ import com.langchain.smith.models.examples.bulk.BulkCreateParams
|
||||
import com.langchain.smith.models.examples.bulk.BulkPatchAllParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class BulkServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -20,7 +17,6 @@ internal class BulkServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -66,7 +62,6 @@ internal class BulkServiceTest {
|
||||
fun patchAll() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-5
@@ -2,13 +2,10 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.examples
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ValidateServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -16,7 +13,6 @@ internal class ValidateServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -33,7 +29,6 @@ internal class ValidateServiceTest {
|
||||
fun bulk() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-4
@@ -2,14 +2,11 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.feedback
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.feedback.configs.ConfigDeleteParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class ConfigServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -17,7 +14,6 @@ internal class ConfigServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-7
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.feedback
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.feedback.tokens.FeedbackIngestTokenCreateSchema
|
||||
@@ -13,9 +12,7 @@ import com.langchain.smith.models.sessions.TimedeltaInput
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class TokenServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -23,7 +20,6 @@ internal class TokenServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -61,7 +57,6 @@ internal class TokenServiceTest {
|
||||
fun retrieve() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -87,7 +82,6 @@ internal class TokenServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -122,7 +116,6 @@ internal class TokenServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,16 +2,13 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.public_
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.models.datasets.SortByDatasetColumn
|
||||
import com.langchain.smith.models.public_.datasets.DatasetListParams
|
||||
import com.langchain.smith.models.public_.datasets.DatasetRetrieveSessionsBulkParams
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class DatasetServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -19,7 +16,6 @@ internal class DatasetServiceTest {
|
||||
fun list() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -45,7 +41,6 @@ internal class DatasetServiceTest {
|
||||
fun listComparative() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -62,7 +57,6 @@ internal class DatasetServiceTest {
|
||||
fun listFeedback() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -79,7 +73,6 @@ internal class DatasetServiceTest {
|
||||
fun listSessions() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -96,7 +89,6 @@ internal class DatasetServiceTest {
|
||||
fun retrieveSessionsBulk() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
-8
@@ -2,7 +2,6 @@
|
||||
|
||||
package com.langchain.smith.services.blocking.sessions
|
||||
|
||||
import com.langchain.smith.TestServerExtension
|
||||
import com.langchain.smith.client.okhttp.LangsmithOkHttpClient
|
||||
import com.langchain.smith.core.JsonValue
|
||||
import com.langchain.smith.models.sessions.insights.CreateRunClusteringJobRequest
|
||||
@@ -14,9 +13,7 @@ import com.langchain.smith.models.sessions.insights.InsightUpdateParams
|
||||
import java.time.OffsetDateTime
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(TestServerExtension::class)
|
||||
internal class InsightServiceTest {
|
||||
|
||||
@Disabled("Prism tests are disabled")
|
||||
@@ -24,7 +21,6 @@ internal class InsightServiceTest {
|
||||
fun create() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -78,7 +74,6 @@ internal class InsightServiceTest {
|
||||
fun update() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -102,7 +97,6 @@ internal class InsightServiceTest {
|
||||
fun delete() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -125,7 +119,6 @@ internal class InsightServiceTest {
|
||||
fun retrieveJob() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
@@ -148,7 +141,6 @@ internal class InsightServiceTest {
|
||||
fun retrieveRuns() {
|
||||
val client =
|
||||
LangsmithOkHttpClient.builder()
|
||||
.baseUrl(TestServerExtension.BASE_URL)
|
||||
.apiKey("My API Key")
|
||||
.tenantId("My Tenant ID")
|
||||
.organizationId("My Organization ID")
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [[ -n "$1" && "$1" != '--'* ]]; then
|
||||
URL="$1"
|
||||
shift
|
||||
else
|
||||
URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)"
|
||||
fi
|
||||
|
||||
# Check if the URL is empty
|
||||
if [ -z "$URL" ]; then
|
||||
echo "Error: No OpenAPI spec path/url provided or found in .stats.yml"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "==> Starting mock server with URL ${URL}"
|
||||
|
||||
# Run prism mock on the given spec
|
||||
if [ "$1" == "--daemon" ]; then
|
||||
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
|
||||
|
||||
# Wait for server to come online
|
||||
echo -n "Waiting for server"
|
||||
while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do
|
||||
echo -n "."
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
if grep -q "✖ fatal" ".prism.log"; then
|
||||
cat .prism.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo
|
||||
else
|
||||
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
|
||||
fi
|
||||
@@ -4,53 +4,7 @@ set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[0;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
function prism_is_running() {
|
||||
curl --silent "http://localhost:4010" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
kill_server_on_port() {
|
||||
pids=$(lsof -t -i tcp:"$1" || echo "")
|
||||
if [ "$pids" != "" ]; then
|
||||
kill "$pids"
|
||||
echo "Stopped $pids."
|
||||
fi
|
||||
}
|
||||
|
||||
function is_overriding_api_base_url() {
|
||||
[ -n "$TEST_API_BASE_URL" ]
|
||||
}
|
||||
|
||||
if ! is_overriding_api_base_url && ! prism_is_running ; then
|
||||
# When we exit this script, make sure to kill the background mock server process
|
||||
trap 'kill_server_on_port 4010' EXIT
|
||||
|
||||
# Start the dev server
|
||||
./scripts/mock --daemon
|
||||
fi
|
||||
|
||||
if is_overriding_api_base_url ; then
|
||||
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
|
||||
echo
|
||||
elif ! prism_is_running ; then
|
||||
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
|
||||
echo -e "running against your OpenAPI spec."
|
||||
echo
|
||||
echo -e "To run the server, pass in the path or url of your OpenAPI"
|
||||
echo -e "spec to the prism command:"
|
||||
echo
|
||||
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
|
||||
echo
|
||||
|
||||
exit 1
|
||||
else
|
||||
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
|
||||
echo
|
||||
fi
|
||||
|
||||
echo "==> Running tests"
|
||||
./gradlew test "$@"
|
||||
|
||||
Reference in New Issue
Block a user