2018-05-11 12:47:21 +00:00
@setupApplicationTest
2019-08-12 15:43:18 +00:00
Feature : dc / nodes / index
Background :
2018-05-11 12:47:21 +00:00
Given 1 d a t a c e n t e r m o d e l w i t h t h e v a l u e " d c - 1 "
2019-08-12 15:43:18 +00:00
And t h e u r l " / v 1 / s t a t u s / l e a d e r " r e s p o n d s w i t h f r o m y a m l
- - -
b o d y : |
" 2 1 1 . 2 4 5 . 8 6 . 7 5 : 8 5 0 0 "
- - -
2022-02-11 09:52:27 +00:00
Scenario : Viewing a node with an unhealthy NodeCheck
Given 1 n o d e m o d e l f r o m y a m l
- - -
- C h e c k s :
- S t a t u s : c r i t i c a l
S e r v i c e I D : " "
- - -
When I v i s i t t h e n o d e s p a g e f o r y a m l
- - -
d c : d c - 1
- - -
Then t h e u r l s h o u l d b e / d c - 1 / n o d e s
Then I s e e 1 n o d e m o d e l s
And I s e e s t a t u s o n t h e n o d e s .0 l i k e " c r i t i c a l "
2022-10-12 21:11:05 +00:00
Scenario : Viewing nodes list page should not show synthetic nodes
Given 3 n o d e m o d e l f r o m y a m l
- - -
- M e t a :
s y n t h e t i c - n o d e : " t r u e "
C h e c k s :
- S t a t u s : p a s s i n g
S e r v i c e I D : " "
- M e t a :
s y n t h e t i c - n o d e : " f a l s e "
C h e c k s :
- S t a t u s : p a s s i n g
S e r v i c e I D : " "
- M e t a :
s y n t h e t i c - n o d e : " f a l s e "
C h e c k s :
- S t a t u s : c r i t i c a l
S e r v i c e I D : " "
- - -
When I v i s i t t h e n o d e s p a g e f o r y a m l
- - -
d c : d c - 1
- - -
Then t h e u r l s h o u l d b e / d c - 1 / n o d e s
Then I s e e 2 n o d e m o d e l s
2022-02-11 09:52:27 +00:00
Scenario : Viewing a node with an unhealthy ServiceCheck
Given 1 n o d e m o d e l f r o m y a m l
- - -
- C h e c k s :
- S t a t u s : p a s s i n g
S e r v i c e I D : " "
- S t a t u s : c r i t i c a l
S e r v i c e I D : w e b
2022-10-12 21:11:05 +00:00
M e t a :
s y n t h e t i c - n o d e : " f a l s e "
2022-02-11 09:52:27 +00:00
- - -
When I v i s i t t h e n o d e s p a g e f o r y a m l
- - -
d c : d c - 1
- - -
Then t h e u r l s h o u l d b e / d c - 1 / n o d e s
Then I s e e 1 n o d e m o d e l s
And I s e e s t a t u s o n t h e n o d e s .0 l i k e " p a s s i n g "
2019-08-12 15:43:18 +00:00
Scenario : Viewing nodes in the listing
2022-10-12 21:11:05 +00:00
Given 3 n o d e m o d e l f r o m y a m l
- - -
- M e t a :
s y n t h e t i c - n o d e : " f a l s e "
C h e c k s :
- S t a t u s : p a s s i n g
S e r v i c e I D : " "
- M e t a :
s y n t h e t i c - n o d e : " f a l s e "
C h e c k s :
- S t a t u s : p a s s i n g
S e r v i c e I D : " "
- M e t a :
s y n t h e t i c - n o d e : " f a l s e "
C h e c k s :
- S t a t u s : c r i t i c a l
S e r v i c e I D : " "
- - -
2019-08-12 15:43:18 +00:00
When I v i s i t t h e n o d e s p a g e f o r y a m l
- - -
d c : d c - 1
- - -
Then t h e u r l s h o u l d b e / d c - 1 / n o d e s
2020-01-28 14:25:52 +00:00
And t h e t i t l e s h o u l d b e " N o d e s - C o n s u l "
2022-07-14 18:32:53 +00:00
And a G E T r e q u e s t w a s m a d e t o " / v 1 / i n t e r n a l / u i / n o d e s ? d c = d c - 1 & n s = @ n a m e s p a c e "
2019-08-12 15:43:18 +00:00
Then I s e e 3 n o d e m o d e l s
2020-08-28 13:21:03 +00:00
Scenario : Seeing the leader in node listing
2019-08-12 15:43:18 +00:00
Given 3 n o d e m o d e l s f r o m y a m l
- - -
- A d d r e s s : 211.245 .86 .75
C h e c k s :
2020-11-19 16:05:46 +00:00
- S t a t u s : c r i t i c a l
2019-08-12 15:43:18 +00:00
N a m e : W a r n i n g c h e c k
2022-10-12 21:11:05 +00:00
M e t a :
s y n t h e t i c - n o d e : " f a l s e "
2019-08-12 15:43:18 +00:00
- A d d r e s s : 10.0 .0 .1
2020-11-19 16:05:46 +00:00
C h e c k s :
- S t a t u s : p a s s i n g
2022-10-12 21:11:05 +00:00
M e t a :
s y n t h e t i c - n o d e : " f a l s e "
2019-08-12 15:43:18 +00:00
- A d d r e s s : 10.0 .0 .3
2020-11-19 16:05:46 +00:00
C h e c k s :
- S t a t u s : p a s s i n g
2022-10-12 21:11:05 +00:00
M e t a :
s y n t h e t i c - n o d e : " f a l s e "
2019-08-12 15:43:18 +00:00
- - -
When I v i s i t t h e n o d e s p a g e f o r y a m l
- - -
d c : d c - 1
- - -
Then t h e u r l s h o u l d b e / d c - 1 / n o d e s
Then I s e e 3 n o d e m o d e l s
2020-08-28 13:21:03 +00:00
And I s e e l e a d e r o n t h e n o d e s .0
2020-02-04 15:45:25 +00:00
Scenario : Searching the nodes with name and IP address
Given 3 n o d e m o d e l s f r o m y a m l
- - -
- N o d e : n o d e - 01
A d d r e s s : 10.0 .0 .0
2022-10-12 21:11:05 +00:00
M e t a :
s y n t h e t i c - n o d e : " f a l s e "
2020-02-04 15:45:25 +00:00
- N o d e : n o d e - 02
A d d r e s s : 10.0 .0 .1
2022-10-12 21:11:05 +00:00
M e t a :
s y n t h e t i c - n o d e : " f a l s e "
2020-02-04 15:45:25 +00:00
- N o d e : n o d e - 03
A d d r e s s : 10.0 .0 .2
2022-10-12 21:11:05 +00:00
M e t a :
s y n t h e t i c - n o d e : " f a l s e "
2020-02-04 15:45:25 +00:00
- - -
When I v i s i t t h e n o d e s p a g e f o r y a m l
- - -
d c : d c - 1
- - -
And I s e e 3 n o d e m o d e l s
Then I f i l l i n w i t h y a m l
- - -
s : n o d e - 01
- - -
And I s e e 1 n o d e m o d e l
And I s e e 1 n o d e m o d e l w i t h t h e n a m e " n o d e - 0 1 "
Then I f i l l i n w i t h y a m l
- - -
s : 10.0 .0 .1
- - -
And I s e e 1 n o d e m o d e l
2020-11-19 16:05:46 +00:00
And I s e e 1 n o d e m o d e l w i t h t h e n a m e " n o d e - 0 2 "
2022-10-06 17:01:49 +00:00
Scenario : Viewing an empty nodes page with acl enabled
Given 1 d a t a c e n t e r m o d e l w i t h t h e v a l u e " d c - 1 "
And 0 n o d e s m o d e l s
When I v i s i t t h e n o d e s p a g e f o r y a m l
- - -
d c : d c - 1
- - -
Then t h e u r l s h o u l d b e / d c - 1 / n o d e s
And t h e t i t l e s h o u l d b e " N o d e s - C o n s u l "
Then I s e e 0 n o d e m o d e l s
And I s e e t h e t e x t " T h e r e d o n ' t s e e m t o b e a n y r e g i s t e r e d N o d e s i n t h i s C o n s u l c l u s t e r , o r y o u m a y n o t h a v e s e r v i c e : r e a d a n d n o d e : r e a d p e r m i s s i o n s a c c e s s t o t h i s v i e w . " i n " . e m p t y - s t a t e p "
And I s e e t h e " [ d a t a - t e s t - e m p t y - s t a t e - l o g i n ] " e l e m e n t