@@ -32,6 +32,7 @@ describe('Kubernetes Manifests Suite', function () {
3232 delete process . env [ shared . TestEnvVars . baselineAndCanaryReplicas ] ;
3333 delete process . env [ shared . TestEnvVars . trafficSplitMethod ] ;
3434 delete process . env [ shared . TestEnvVars . containers ] ;
35+ delete process . env [ shared . TestEnvVars . resourceType ]
3536 delete process . env . RemoveNamespaceFromEndpoint ;
3637 } ) ;
3738
@@ -46,6 +47,18 @@ describe('Kubernetes Manifests Suite', function () {
4647 assert ( tr . stdout . indexOf ( 'nginx-service 104.211.243.77' ) != - 1 , 'nginx-service external IP is 104.211.243.77' )
4748 } ) ;
4849
50+ it ( 'Fleet deployment skips checkManifestStability step' , async ( ) => {
51+ const tp = path . join ( __dirname , 'TestSetup.js' ) ;
52+ const tr : ttm . MockTestRunner = new ttm . MockTestRunner ( tp ) ;
53+ process . env [ shared . TestEnvVars . action ] = shared . Actions . deploy ;
54+ process . env [ shared . TestEnvVars . strategy ] = shared . Strategy . none ;
55+ process . env [ shared . TestEnvVars . imagePullSecrets ] = 'test-key1\ntest-key2' ;
56+ process . env [ shared . TestEnvVars . resourceType ] = 'Microsoft.ContainerService/fleets' ;
57+ await tr . runAsync ( ) ;
58+ assert ( tr . stdout . indexOf ( 'checking manifest stability' ) === - 1 , 'checking manifest stability should not be printed' ) ;
59+ assert ( tr . succeeded , 'task should have succeeded' ) ;
60+ } ) ;
61+
4962 it ( 'Run successfully for deploy canary' , async ( ) => {
5063 const tp = path . join ( __dirname , 'TestSetup.js' ) ;
5164 const tr : ttm . MockTestRunner = new ttm . MockTestRunner ( tp ) ;
0 commit comments