Skip to content

Commit a8206c0

Browse files
committed
Update README.md file to reflect testing of circuit breaker.
1 parent 308c4da commit a8206c0

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Springy Store μServices ![GitHub release (latest by date)](https://img.shields.io/github/v/release/mohamed-taman/Springy-Store-Microservices) [![Release Codename](https://img.shields.io/badge/codename-Stargazer-yellow.svg)](https://github.com/mohamed-taman/Springy-Store-Microservices/releases)
1+
# Springy Store μServices ![GitHub release (latest by date)](https://img.shields.io/github/v/release/mohamed-taman/Springy-Store-Microservices) [![Release Codename](https://img.shields.io/badge/codename-Spike-yellow.svg)](https://github.com/mohamed-taman/Springy-Store-Microservices/releases)
22
[![Twitter Follow](https://img.shields.io/twitter/follow/_tamanm?label=follow%20me&style=social)](https://twitter.com/_tamanm)
33

44
- This project is a development of a small set of **Spring Boot** and **Cloud** based Microservices projects that implement cloud-native intuitive, Reactive Programming, Event-driven, Microservices design patterns, and coding best practices.
@@ -281,7 +281,7 @@ The result will look like this:
281281
```bash
282282
Starting 'Springy Store μServices' for [Blackbox] testing...
283283
284-
Start Tests: Fri, May 8, 2020 12:26:28 PM
284+
Start Tests: Tue, May 26, 2020 2:09:36 AM
285285
HOST=localhost
286286
PORT=8443
287287
Restarting the test environment...
@@ -311,7 +311,33 @@ Test OK (actual value: "Type mismatch.")
311311
Test OK (HTTP Code: 401, )
312312
Test OK (HTTP Code: 200)
313313
Test OK (HTTP Code: 403, )
314-
End, all tests OK: Fri, May 8, 2020 12:29:21 PM
314+
Start Circuit Breaker tests!
315+
Test OK (actual value: CLOSED)
316+
Test OK (HTTP Code: 500, {"timestamp":"2020-05-26T00:09:48.784+00:00","path":"/store/api/v1/products/2","status":500,"error":"Internal Server Error","message":"Did not observe any item or terminal signal within 2000ms in 'onErrorResume' (and no fallback has been configured)","requestId":"4aa9f5e8-119"})
317+
Test OK (actual value: Did not observe any item or terminal signal within 2000ms)
318+
Test OK (HTTP Code: 500, {"timestamp":"2020-05-26T00:09:51.033+00:00","path":"/store/api/v1/products/2","status":500,"error":"Internal Server Error","message":"Did not observe any item or terminal signal within 2000ms in 'onErrorResume' (and no fallback has been configured)","requestId":"4aa9f5e8-120"})
319+
Test OK (actual value: Did not observe any item or terminal signal within 2000ms)
320+
Test OK (HTTP Code: 500, {"timestamp":"2020-05-26T00:09:53.276+00:00","path":"/store/api/v1/products/2","status":500,"error":"Internal Server Error","message":"Did not observe any item or terminal signal within 2000ms in 'onErrorResume' (and no fallback has been configured)","requestId":"4aa9f5e8-121"})
321+
Test OK (actual value: Did not observe any item or terminal signal within 2000ms)
322+
Test OK (HTTP Code: 200)
323+
Test OK (actual value: Fallback product2)
324+
Test OK (HTTP Code: 200)
325+
Test OK (actual value: Fallback product2)
326+
Test OK (HTTP Code: 404, {"httpStatus":"NOT_FOUND","message":"Product Id: 14 not found in fallback cache!","path":"/store/api/v1/products/14","timestamp":"2020-05-26@00:09:53.998+0000"})
327+
Test OK (actual value: Product Id: 14 not found in fallback cache!)
328+
Will sleep for 10 sec waiting for the CB to go Half Open...
329+
Test OK (actual value: HALF_OPEN)
330+
Test OK (HTTP Code: 200)
331+
Test OK (actual value: product name C)
332+
Test OK (HTTP Code: 200)
333+
Test OK (actual value: product name C)
334+
Test OK (HTTP Code: 200)
335+
Test OK (actual value: product name C)
336+
Test OK (actual value: CLOSED)
337+
Test OK (actual value: CLOSED_TO_OPEN)
338+
Test OK (actual value: OPEN_TO_HALF_OPEN)
339+
Test OK (actual value: HALF_OPEN_TO_CLOSED)
340+
End, all tests OK: Tue, May 26, 2020 2:10:09 AM
315341
```
316342
### Closing The Story
317343

0 commit comments

Comments
 (0)