File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/core/server/elasticsearch Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ describe('calculateStatus', () => {
6565 } ) ;
6666 } ) ;
6767
68- it ( 'changes to degraded when isCompatible and warningNodes present' , async ( ) => {
68+ it ( 'changes to available with a differemnt message when isCompatible and warningNodes present' , async ( ) => {
6969 expect (
7070 await calculateStatus$ (
7171 of ( {
@@ -81,7 +81,7 @@ describe('calculateStatus', () => {
8181 . pipe ( take ( 2 ) )
8282 . toPromise ( )
8383 ) . toEqual ( {
84- level : ServiceStatusLevels . degraded ,
84+ level : ServiceStatusLevels . available ,
8585 summary : 'Some nodes are a different version' ,
8686 meta : {
8787 incompatibleNodes : [ ] ,
@@ -188,7 +188,7 @@ describe('calculateStatus', () => {
188188 "summary": "Incompatible with Elasticsearch",
189189 },
190190 Object {
191- "level": degraded ,
191+ "level": available ,
192192 "meta": Object {
193193 "incompatibleNodes": Array [],
194194 "warningNodes": Array [
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export const calculateStatus$ = (
5555 } ;
5656 } else if ( warningNodes . length > 0 ) {
5757 return {
58- level : ServiceStatusLevels . degraded ,
58+ level : ServiceStatusLevels . available ,
5959 summary :
6060 // Message should always be present, but this is a safe fallback
6161 message ??
You can’t perform that action at this time.
0 commit comments