Skip to content

Commit

Permalink
tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
audrastump committed Nov 27, 2024
1 parent 47a9864 commit ef71a42
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/utilities/manifestStabilityUtils.test.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
import * as fileUtils from './fileUtils'
import * as manifestStabilityUtils from './manifestStabilityUtils'
import * as path from 'path'
import * as fs from 'fs'
import {before} from 'node:test'
import {Kubectl} from '../types/kubectl'

describe('manifestStabilityUtils', () => {

const resourceType = 'microsoft.containerservice/fleets'
const kc = new Kubectl('')
const resources = [
{
type: 'deployment',
name: 'test',
namespace: 'default'
}
]
const kc = new Kubectl('')
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()
})


})

0 comments on commit ef71a42

Please sign in to comment.