This is an automated email from the ASF dual-hosted git repository.

seanyinx pushed a commit to branch SCB-237_acceptance_success_scenario
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git


The following commit(s) were added to 
refs/heads/SCB-237_acceptance_success_scenario by this push:
     new 57a89af  SCB-237 checked availability of alpha and booking before 
testing
57a89af is described below

commit 57a89aff5470c92ce30979abdff1924d97262b72
Author: seanyinx <[email protected]>
AuthorDate: Wed Jan 24 17:57:40 2018 +0800

    SCB-237 checked availability of alpha and booking before testing
    
    Signed-off-by: seanyinx <[email protected]>
---
 .../src/test/java/org/apache/servicecomb/saga/PackStepdefs.java  | 9 +++++++++
 .../src/test/resources/pack_success_scenario.feature             | 2 ++
 alpha/alpha-server/pom.xml                                       | 4 ++++
 3 files changed, 15 insertions(+)

diff --git 
a/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java
 
b/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java
index 0d73423..42e9f90 100644
--- 
a/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java
+++ 
b/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java
@@ -38,6 +38,7 @@ public class PackStepdefs implements En {
   private static final String ALPHA_REST_ADDRESS = "alpha.rest.address";
   private static final String CAR_SERVICE_ADDRESS = "car.service.address";
   private static final String HOTEL_SERVICE_ADDRESS = "hotel.service.address";
+  private static final String BOOKING_SERVICE_ADDRESS = 
"booking.service.address";
   private static final String[] addresses = {CAR_SERVICE_ADDRESS, 
HOTEL_SERVICE_ADDRESS};
 
   private static final Consumer<Map<String, String>[]> NO_OP_CONSUMER = 
(dataMap) -> {
@@ -52,6 +53,14 @@ public class PackStepdefs implements En {
       probe(System.getProperty(HOTEL_SERVICE_ADDRESS));
     });
 
+    And("^Booking Service is up and running$", () -> {
+      probe(System.getProperty(BOOKING_SERVICE_ADDRESS));
+    });
+
+    And("^Alpha is up and running$", () -> {
+      probe(System.getProperty(ALPHA_REST_ADDRESS));
+    });
+
     When("^User ([A-Za-z]+) requests to book ([0-9]+) cars and ([0-9]+) 
rooms$", (username, cars, rooms) -> {
       log.info("Received request from user {} to book {} cars and {} rooms", 
username, cars, rooms);
 
diff --git 
a/acceptance-tests/acceptance-pack/src/test/resources/pack_success_scenario.feature
 
b/acceptance-tests/acceptance-pack/src/test/resources/pack_success_scenario.feature
index 5013cb9..c326e71 100644
--- 
a/acceptance-tests/acceptance-pack/src/test/resources/pack_success_scenario.feature
+++ 
b/acceptance-tests/acceptance-pack/src/test/resources/pack_success_scenario.feature
@@ -3,6 +3,8 @@ Feature: Alpha records transaction events
   Scenario: Everything is normal
     Given Car Service is up and running
     And Hotel Service is up and running
+    And Booking Service is up and running
+    And Alpha is up and running
 
     When User Sean requests to book 2 cars and 1 rooms
 
diff --git a/alpha/alpha-server/pom.xml b/alpha/alpha-server/pom.xml
index 54f9cef..0f49262 100644
--- a/alpha/alpha-server/pom.xml
+++ b/alpha/alpha-server/pom.xml
@@ -91,6 +91,10 @@
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-web</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-actuator</artifactId>
+    </dependency>
 
     <dependency>
       <groupId>org.springframework.boot</groupId>

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to