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:
benjamin
2025-07-15 17:00:09 -04:00
committed by GitHub
parent f17d8559ed
commit 7395c391d9
13 changed files with 1083 additions and 141 deletions
+4 -3
View File
@@ -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 () => {