@@ -24,7 +24,7 @@ describe('HuggingFace Token Dockerfile Template - Unit Tests', () => {
2424 setupTestHooks ( 'HuggingFace Token Dockerfile Template Unit Tests' ) ;
2525
2626 describe ( 'ENV Directive Placement' , ( ) => {
27- it ( 'should place ENV HF_TOKEN after OPTION_MODEL and before COPY' , async function ( ) {
27+ it ( 'should place ENV HF_TOKEN after VLLM_MODEL and before COPY' , async function ( ) {
2828 this . timeout ( 5000 ) ;
2929
3030 console . log ( '\n 🧪 Testing ENV directive placement in Dockerfile' ) ;
@@ -51,17 +51,17 @@ describe('HuggingFace Token Dockerfile Template - Unit Tests', () => {
5151 const dockerfileContent = fs . readFileSync ( dockerfilePath , 'utf8' ) ;
5252
5353 // Find positions of key directives
54- const optionModelPos = dockerfileContent . indexOf ( 'ENV OPTION_MODEL =' ) ;
54+ const vllmModelPos = dockerfileContent . indexOf ( 'ENV VLLM_MODEL =' ) ;
5555 const hfTokenPos = dockerfileContent . indexOf ( 'ENV HF_TOKEN=' ) ;
5656 const copyPos = dockerfileContent . indexOf ( 'COPY code/serve' ) ;
5757
5858 // Verify all directives exist
59- assert . ok ( optionModelPos !== - 1 , 'ENV OPTION_MODEL should exist' ) ;
59+ assert . ok ( vllmModelPos !== - 1 , 'ENV VLLM_MODEL should exist' ) ;
6060 assert . ok ( hfTokenPos !== - 1 , 'ENV HF_TOKEN should exist' ) ;
6161 assert . ok ( copyPos !== - 1 , 'COPY command should exist' ) ;
6262
63- // Verify correct order: OPTION_MODEL < HF_TOKEN < COPY
64- assert . ok ( optionModelPos < hfTokenPos , 'ENV OPTION_MODEL should come before ENV HF_TOKEN' ) ;
63+ // Verify correct order: VLLM_MODEL < HF_TOKEN < COPY
64+ assert . ok ( vllmModelPos < hfTokenPos , 'ENV VLLM_MODEL should come before ENV HF_TOKEN' ) ;
6565 assert . ok ( hfTokenPos < copyPos , 'ENV HF_TOKEN should come before COPY command' ) ;
6666
6767 console . log ( ' ✅ ENV directive placement correct' ) ;
@@ -87,7 +87,7 @@ describe('HuggingFace Token Dockerfile Template - Unit Tests', () => {
8787 assert . fileContent ( 'Dockerfile' , / E N V H F _ T O K E N = / ) ;
8888
8989 // Verify it's in the transformers section (after FROM)
90- assert . fileContent ( 'Dockerfile' , / F R O M .* \n [ \s \S ] * E N V O P T I O N _ M O D E L = [ \s \S ] * E N V H F _ T O K E N = / ) ;
90+ assert . fileContent ( 'Dockerfile' , / F R O M .* \n [ \s \S ] * E N V V L L M _ M O D E L = [ \s \S ] * E N V H F _ T O K E N = / ) ;
9191
9292 console . log ( ' ✅ ENV directive placement correct for vLLM' ) ;
9393 } ) ;
@@ -112,7 +112,7 @@ describe('HuggingFace Token Dockerfile Template - Unit Tests', () => {
112112 assert . fileContent ( 'Dockerfile' , / E N V H F _ T O K E N = / ) ;
113113
114114 // Verify it's in the transformers section (after FROM)
115- assert . fileContent ( 'Dockerfile' , / F R O M .* \n [ \s \S ] * E N V O P T I O N _ M O D E L = [ \s \S ] * E N V H F _ T O K E N = / ) ;
115+ assert . fileContent ( 'Dockerfile' , / F R O M .* \n [ \s \S ] * E N V S G L A N G _ M O D E L _ P A T H = [ \s \S ] * E N V H F _ T O K E N = / ) ;
116116
117117 console . log ( ' ✅ ENV directive placement correct for SGLang' ) ;
118118 } ) ;
@@ -149,7 +149,7 @@ describe('HuggingFace Token Dockerfile Template - Unit Tests', () => {
149149 assert . ok ( dockerfileContent . includes ( 'ENV HF_TOKEN=' ) , 'ENV HF_TOKEN should be present' ) ;
150150
151151 // Verify it's in the transformers section (check for transformers-specific markers)
152- assert . ok ( dockerfileContent . includes ( 'ENV OPTION_MODEL =' ) , 'Should have OPTION_MODEL (transformers marker)' ) ;
152+ assert . ok ( dockerfileContent . includes ( 'ENV VLLM_MODEL =' ) , 'Should have VLLM_MODEL (transformers marker)' ) ;
153153 assert . ok ( dockerfileContent . includes ( 'COPY code/serve' ) , 'Should have serve script (transformers marker)' ) ;
154154
155155 console . log ( ' ✅ ENV HF_TOKEN correctly in transformers section' ) ;
0 commit comments