-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BACKLOG-22448 Added a better check for the presence of graalvm (#151)
- Loading branch information
1 parent
3247d41
commit b19ff50
Showing
7 changed files
with
67 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import {waitUntilSAMStatusGreen} from '@jahia/cypress'; | ||
import {healthCheck} from '../../support/gql'; | ||
|
||
// This suite is there to ensure we get wait for SAM to return GREEN before starting the tests | ||
// The goal is to wait for any provisioning activities that might be happening, in particular in cluster | ||
// Failure of this suite highlights a potential issue with Jahia itself | ||
|
||
describe('Absence of errors in SAM at startup', () => { | ||
it('Wait until SAM returns GREEN for medium severity', () => { | ||
// The timeout of 3mn (180) is there to allow for the cluster (if present) to finish its synchronization | ||
waitUntilSAMStatusGreen('MEDIUM', 180000); | ||
cy.executeGroovy('groovy/logProvisioningDone.groovy'); | ||
}); | ||
|
||
it('Check that SAM overall status is green for MEDIUM severity', () => { | ||
healthCheck({severity: 'DEBUG'}).then(r => { | ||
cy.log('Probes not GREEN with severity DEBUG: ' + JSON.stringify(r.probes.filter(probe => probe.status.health !== 'GREEN'))); | ||
}); | ||
|
||
healthCheck({severity: 'MEDIUM'}).then(r => { | ||
cy.then(() => { | ||
expect(r.status.health).to.eq('GREEN'); | ||
}); | ||
}); | ||
}); | ||
}); |
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 @@ | ||
log.info("Jahia startup and provisioning is now complete, starting the Cypress tests") |
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