mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-27 15:19:27 +08:00
Added error check for canary promote actions (#432)
* Added checkForErrors so canary promote action fails when there is an error * Added tests for checkForErrors * Probable integration error fix * Probable integration error fix * Revert changes back * Added checkForErrors unit tests * Fixed multiple tests issue --------- Co-authored-by: Suneha Bose <123775811+bosesuneha@users.noreply.github.com>
This commit is contained in:
@@ -45,10 +45,11 @@ describe('File utils', () => {
|
||||
'test/unit/manifests/manifest_test_dir/nested-test-service.yaml',
|
||||
'test/unit/manifests/test-ingress.yml',
|
||||
'test/unit/manifests/test-ingress-new.yml',
|
||||
'test/unit/manifests/test-service.yml'
|
||||
'test/unit/manifests/test-service.yml',
|
||||
'test/unit/manifests/basic-test.yml'
|
||||
]
|
||||
|
||||
expect(testSearch).toHaveLength(8)
|
||||
expect(testSearch).toHaveLength(9)
|
||||
expectedManifests.forEach((fileName) => {
|
||||
if (fileName.startsWith('test/unit')) {
|
||||
expect(testSearch).toContain(fileName)
|
||||
@@ -94,7 +95,7 @@ describe('File utils', () => {
|
||||
fileAtOuter,
|
||||
innerPath
|
||||
])
|
||||
).toHaveLength(7)
|
||||
).toHaveLength(8)
|
||||
})
|
||||
|
||||
it('throws an error for an invalid URL', async () => {
|
||||
|
||||
Reference in New Issue
Block a user