@@ -7,6 +7,11 @@ import {
77} from '@testdata/model-api' ;
88
99test . describe ( 'Anaconda AI CLI Commands @anaconda-ai' , ( ) => {
10+ test ( 'anaconda ai version command' , async ( { anacondaAiCli } ) => {
11+ const result = await anacondaAiCli . runAnacondaAiVersionCommand ( ) ;
12+ anacondaAiCli . verifyAnacondaAiVersionCommand ( result ) ;
13+ } ) ;
14+
1015 test ( 'anaconda ai --help' , async ( { anacondaAiCli } ) => {
1116 const result = await anacondaAiCli . runAnacondaAiHelpCommand ( ) ;
1217 anacondaAiCli . verifyAnacondaAiHelpCommand ( result ) ;
@@ -31,10 +36,7 @@ test.describe('Anaconda AI CLI Commands @anaconda-ai', () => {
3136 } ) ;
3237
3338 test ( 'anaconda ai download invalid model command' , async ( { anacondaAiCli } ) => {
34- const result = await anacondaAiCli . runDownloadModelCommand (
35- INVALID_MODEL_NAME ,
36- INVALID_MODEL_QUANTIZATION ,
37- ) ;
39+ const result = await anacondaAiCli . runDownloadModelCommand ( INVALID_MODEL_NAME , INVALID_MODEL_QUANTIZATION ) ;
3840 anacondaAiCli . verifyInvalidDownloadModelCommand ( result ) ;
3941 } ) ;
4042
@@ -44,57 +46,59 @@ test.describe('Anaconda AI CLI Commands @anaconda-ai', () => {
4446 } ) ;
4547
4648 test ( 'anaconda ai server lifecycle: launch, verify, stop, and delete a model server' , async ( { anacondaAiCli } ) => {
47- await test . step ( 'step 1: launch model server and verify it is running' , async ( ) => {
49+ await test . step ( '1: launch model server and verify it is running' , async ( ) => {
4850 const launchResult = await anacondaAiCli . runLaunchModelCommand (
4951 DOWNLOAD_TEST_MODEL_NAME ,
5052 DOWNLOAD_TEST_MODEL_QUANTIZATION ,
5153 ) ;
5254 anacondaAiCli . verifyLaunchModelCommand ( launchResult , DOWNLOAD_TEST_MODEL_NAME , DOWNLOAD_TEST_MODEL_QUANTIZATION ) ;
5355 } ) ;
5456
55- await test . step ( 'step 2: verify server appears in servers list with status "running"' , async ( ) => {
57+ await test . step ( '2: verify server appears in servers list with status "running"' , async ( ) => {
5658 const serversResult = await anacondaAiCli . runAnacondaAiServersListCommand ( ) ;
57- anacondaAiCli . verifyRunningServerInList ( serversResult , DOWNLOAD_TEST_MODEL_NAME , DOWNLOAD_TEST_MODEL_QUANTIZATION ) ;
59+ anacondaAiCli . verifyRunningServerInList (
60+ serversResult ,
61+ DOWNLOAD_TEST_MODEL_NAME ,
62+ DOWNLOAD_TEST_MODEL_QUANTIZATION ,
63+ ) ;
5864 } ) ;
5965
60- await test . step ( 'step 3: launching the same server again returns AnacondaAIException' , async ( ) => {
66+ await test . step ( '3: launching the same server again returns AnacondaAIException' , async ( ) => {
6167 const duplicateResult = await anacondaAiCli . runLaunchModelCommand (
6268 DOWNLOAD_TEST_MODEL_NAME ,
6369 DOWNLOAD_TEST_MODEL_QUANTIZATION ,
6470 ) ;
6571 anacondaAiCli . verifyDuplicateLaunchModelCommand ( duplicateResult ) ;
6672 } ) ;
6773
68- await test . step ( 'step 4: stop the model server and verify it is stopped' , async ( ) => {
74+ await test . step ( '4: stop the model server and verify it is stopped' , async ( ) => {
6975 const stopResult = await anacondaAiCli . runStopModelCommand (
7076 DOWNLOAD_TEST_MODEL_NAME ,
7177 DOWNLOAD_TEST_MODEL_QUANTIZATION ,
7278 ) ;
7379 anacondaAiCli . verifyStopModelCommand ( stopResult , DOWNLOAD_TEST_MODEL_NAME , DOWNLOAD_TEST_MODEL_QUANTIZATION ) ;
7480 } ) ;
7581
76- await test . step ( 'step 5: delete the model server and verify it is removed' , async ( ) => {
82+ await test . step ( '5: delete the model server and verify it is removed' , async ( ) => {
7783 const deleteResult = await anacondaAiCli . runStopAndRemoveModelCommand (
7884 DOWNLOAD_TEST_MODEL_NAME ,
7985 DOWNLOAD_TEST_MODEL_QUANTIZATION ,
8086 ) ;
81- anacondaAiCli . verifyStopAndRemoveModelCommand ( deleteResult , DOWNLOAD_TEST_MODEL_NAME , DOWNLOAD_TEST_MODEL_QUANTIZATION ) ;
87+ anacondaAiCli . verifyStopAndRemoveModelCommand (
88+ deleteResult ,
89+ DOWNLOAD_TEST_MODEL_NAME ,
90+ DOWNLOAD_TEST_MODEL_QUANTIZATION ,
91+ ) ;
8292 } ) ;
8393 } ) ;
8494
8595 test ( 'anaconda ai launch - invalid format returns ValueError' , async ( { anacondaAiCli } ) => {
86- const result = await anacondaAiCli . runLaunchModelCommand (
87- INVALID_MODEL_NAME ,
88- INVALID_MODEL_QUANTIZATION ,
89- ) ;
96+ const result = await anacondaAiCli . runLaunchModelCommand ( INVALID_MODEL_NAME , INVALID_MODEL_QUANTIZATION ) ;
9097 anacondaAiCli . verifyLaunchModelInvalidFormatCommand ( result ) ;
9198 } ) ;
9299
93100 test ( 'anaconda ai launch - unknown model returns ModelNotFound' , async ( { anacondaAiCli } ) => {
94- const result = await anacondaAiCli . runLaunchModelCommand (
95- INVALID_MODEL_NAME ,
96- DOWNLOAD_TEST_MODEL_QUANTIZATION ,
97- ) ;
101+ const result = await anacondaAiCli . runLaunchModelCommand ( INVALID_MODEL_NAME , DOWNLOAD_TEST_MODEL_QUANTIZATION ) ;
98102 anacondaAiCli . verifyLaunchModelNotFoundCommand ( result ) ;
99103 } ) ;
100104} ) ;
0 commit comments