@@ -10,14 +10,11 @@ import kotlinx.coroutines.flow.flow
1010import kotlinx.coroutines.test.runTest
1111import kotlinx.serialization.Serializable
1212import org.junit.jupiter.api.Disabled
13- import org.junit.jupiter.api.condition.EnabledOnOs
14- import org.junit.jupiter.api.condition.OS
1513import org.junit.jupiter.api.extension.ExtendWith
1614import kotlin.test.Test
1715import kotlin.test.assertTrue
1816import kotlin.time.Duration.Companion.seconds
1917
20- @EnabledOnOs(OS .LINUX , OS .MAC )
2118@ExtendWith(OllamaTestFixtureExtension ::class )
2219class OllamaClientIntegrationTest {
2320 companion object {
@@ -28,7 +25,7 @@ class OllamaClientIntegrationTest {
2825 }
2926
3027 @Test
31- fun `integration_test execute simple prompt` () = runTest(timeout = 600 .seconds) {
28+ fun `ollama_test execute simple prompt` () = runTest(timeout = 600 .seconds) {
3229 val prompt = Prompt .build(" test" ) {
3330 system(" You are a helpful assistant." )
3431 user(" What is the capital of France?" )
@@ -41,7 +38,7 @@ class OllamaClientIntegrationTest {
4138 }
4239
4340 @Test
44- fun `integration_test execute tools with required parameters` () = runTest(timeout = 600 .seconds) {
41+ fun `ollama_test execute tools with required parameters` () = runTest(timeout = 600 .seconds) {
4542 val searchTool = ToolDescriptor (
4643 name = " search" ,
4744 description = " Search for information" ,
@@ -70,7 +67,7 @@ class OllamaClientIntegrationTest {
7067 }
7168
7269 @Test
73- fun `integration_test execute tools with required and optional parameters` () = runTest(timeout = 600 .seconds) {
70+ fun `ollama_test execute tools with required and optional parameters` () = runTest(timeout = 600 .seconds) {
7471 val searchTool = ToolDescriptor (
7572 name = " search" ,
7673 description = " Search for information" ,
@@ -101,7 +98,7 @@ class OllamaClientIntegrationTest {
10198 }
10299
103100 @Test
104- fun `integration_test execute tools with optional parameters` () = runTest(timeout = 600 .seconds) {
101+ fun `ollama_test execute tools with optional parameters` () = runTest(timeout = 600 .seconds) {
105102 val searchTool = ToolDescriptor (
106103 name = " search" ,
107104 description = " Search for information" ,
@@ -131,7 +128,7 @@ class OllamaClientIntegrationTest {
131128 }
132129
133130 @Test
134- fun `integration_test execute tools with no parameters` () = runTest(timeout = 600 .seconds) {
131+ fun `ollama_test execute tools with no parameters` () = runTest(timeout = 600 .seconds) {
135132 val getTimeTool = ToolDescriptor (
136133 name = " getTime" ,
137134 description = " Get the current time"
@@ -148,7 +145,7 @@ class OllamaClientIntegrationTest {
148145 }
149146
150147 @Test
151- fun `integration_test execute tools with int parameter` () = runTest(timeout = 600 .seconds) {
148+ fun `ollama_test execute tools with int parameter` () = runTest(timeout = 600 .seconds) {
152149 val setLimitTool = ToolDescriptor (
153150 name = " setLimit" ,
154151 description = " Set the limit" ,
@@ -172,7 +169,7 @@ class OllamaClientIntegrationTest {
172169 }
173170
174171 @Test
175- fun `integration_test execute tools with float parameter` () = runTest(timeout = 600 .seconds) {
172+ fun `ollama_test execute tools with float parameter` () = runTest(timeout = 600 .seconds) {
176173 val printValueTool = ToolDescriptor (
177174 name = " printValue" ,
178175 description = " Print the value" ,
@@ -196,7 +193,7 @@ class OllamaClientIntegrationTest {
196193 }
197194
198195 @Test
199- fun `integration_test execute tools with string parameter` () = runTest(timeout = 600 .seconds) {
196+ fun `ollama_test execute tools with string parameter` () = runTest(timeout = 600 .seconds) {
200197 val setNameTool = ToolDescriptor (
201198 name = " setName" ,
202199 description = " Set the name" ,
@@ -220,7 +217,7 @@ class OllamaClientIntegrationTest {
220217 }
221218
222219 @Test
223- fun `integration_test execute tools with enum parameter` () = runTest(timeout = 600 .seconds) {
220+ fun `ollama_test execute tools with enum parameter` () = runTest(timeout = 600 .seconds) {
224221 val setColor = ToolDescriptor (
225222 name = " setColor" ,
226223 description = " Set the color" ,
@@ -249,7 +246,7 @@ class OllamaClientIntegrationTest {
249246 }
250247
251248 @Test
252- fun `integration_test execute tools with serializable enum parameter` () = runTest(timeout = 600 .seconds) {
249+ fun `ollama_test execute tools with serializable enum parameter` () = runTest(timeout = 600 .seconds) {
253250 val calculatorTool = ToolDescriptor (
254251 name = " calculator" ,
255252 description = " A simple calculator that can add, subtract, multiply, and divide two numbers." ,
@@ -283,7 +280,7 @@ class OllamaClientIntegrationTest {
283280 }
284281
285282 @Test
286- fun `integration_test execute tools with list of strings parameter` () = runTest(timeout = 600 .seconds) {
283+ fun `ollama_test execute tools with list of strings parameter` () = runTest(timeout = 600 .seconds) {
287284 val setTags = ToolDescriptor (
288285 name = " setTags" ,
289286 description = " Set the tags" ,
@@ -307,7 +304,7 @@ class OllamaClientIntegrationTest {
307304 }
308305
309306 @Test
310- fun `integration_test execute tools with list of integers parameter` () = runTest(timeout = 600 .seconds) {
307+ fun `ollama_test execute tools with list of integers parameter` () = runTest(timeout = 600 .seconds) {
311308 val setValues = ToolDescriptor (
312309 name = " setValues" ,
313310 description = " Set the values" ,
@@ -331,7 +328,7 @@ class OllamaClientIntegrationTest {
331328 }
332329
333330 @Test
334- fun `integration_test execute tools with list of floats parameter` () = runTest(timeout = 600 .seconds) {
331+ fun `ollama_test execute tools with list of floats parameter` () = runTest(timeout = 600 .seconds) {
335332 val setValues = ToolDescriptor (
336333 name = " setValues" ,
337334 description = " Set the values" ,
@@ -364,7 +361,7 @@ class OllamaClientIntegrationTest {
364361 }
365362
366363 @Test
367- fun `integration_test execute tools with list of enums parameter` () = runTest(timeout = 600 .seconds) {
364+ fun `ollama_test execute tools with list of enums parameter` () = runTest(timeout = 600 .seconds) {
368365 val setTags = ToolDescriptor (
369366 name = " setTags" ,
370367 description = " Set the tags" ,
@@ -388,7 +385,7 @@ class OllamaClientIntegrationTest {
388385 }
389386
390387 @Test
391- fun `integration_test execute tools with list of lists parameter` () = runTest(timeout = 600 .seconds) {
388+ fun `ollama_test execute tools with list of lists parameter` () = runTest(timeout = 600 .seconds) {
392389 val setTags = ToolDescriptor (
393390 name = " setTags" ,
394391 description = " Set the tags" ,
@@ -413,7 +410,7 @@ class OllamaClientIntegrationTest {
413410 }
414411
415412 @Test
416- fun integration_testStreamingApiWithLargeText () = runTest(timeout = 600 .seconds) {
413+ fun ollama_testStreamingApiWithLargeText () = runTest(timeout = 600 .seconds) {
417414 val prompt = Prompt .build(" test" ) {
418415 system(" You are a helpful assistant." )
419416 user(" Write a detailed essay about the history of artificial intelligence, including its origins, major milestones, key figures, and current state. Please make it at least 1000 words." )
@@ -577,7 +574,7 @@ class OllamaClientIntegrationTest {
577574
578575 @Disabled(" JBAI-14221" )
579576 @Test
580- fun `integration_test execute streaming API with structured data` () = runTest(timeout = 600 .seconds) {
577+ fun `ollama_test execute streaming API with structured data` () = runTest(timeout = 600 .seconds) {
581578 val countries = mutableListOf<Country >()
582579 val countryDefinition = markdownCountryDefinition()
583580
0 commit comments