-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable fleet cluster deployment (#356)
* added fleet exception to rollout cmd * removed fleet check for rollout * modified casing * modified approach for fleet check * tidying up * defaulting to Microsoft.ContainerService/managedClusters * ran prettier command * modified manifest stablity check * ran prettier check * moved lowercase check to beginning --------- Co-authored-by: audrastump <[email protected]>
- Loading branch information
1 parent
bf768b3
commit d1acc1a
Showing
5 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as manifestStabilityUtils from './manifestStabilityUtils' | ||
import {Kubectl} from '../types/kubectl' | ||
|
||
describe('manifestStabilityUtils', () => { | ||
const kc = new Kubectl('') | ||
const resources = [ | ||
{ | ||
type: 'deployment', | ||
name: 'test', | ||
namespace: 'default' | ||
} | ||
] | ||
const resourceType = 'microsoft.containerservice/fleets' | ||
|
||
it('should return immediately if the resource type is microsoft.containerservice/fleets', async () => { | ||
const spy = jest.spyOn(manifestStabilityUtils, 'checkManifestStability') | ||
const checkRolloutStatusSpy = jest.spyOn(kc, 'checkRolloutStatus') | ||
await manifestStabilityUtils.checkManifestStability( | ||
kc, | ||
resources, | ||
resourceType | ||
) | ||
|
||
expect(checkRolloutStatusSpy).not.toHaveBeenCalled() | ||
expect(spy).toHaveReturned() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters