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

zhanglei pushed a commit to branch SCB-1321
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git


The following commit(s) were added to refs/heads/SCB-1321 by this push:
     new 80457a5  SCB-1321 Akka configuration moved from application.yaml to 
SagaIntegrationTest
80457a5 is described below

commit 80457a570f5c62acce8921c5c0af2c5fc1eb1c80
Author: Lei Zhang <[email protected]>
AuthorDate: Fri Jul 5 16:18:31 2019 +0800

    SCB-1321 Akka configuration moved from application.yaml to 
SagaIntegrationTest
---
 .../pack/alpha/fsm/SagaIntegrationTest.java        |  5 ++-
 .../alpha-fsm/src/test/resources/application.yaml  | 39 ----------------------
 2 files changed, 4 insertions(+), 40 deletions(-)

diff --git 
a/alpha/alpha-fsm/src/test/java/org/apache/servicecomb/pack/alpha/fsm/SagaIntegrationTest.java
 
b/alpha/alpha-fsm/src/test/java/org/apache/servicecomb/pack/alpha/fsm/SagaIntegrationTest.java
index f43fab9..bc4a9a6 100644
--- 
a/alpha/alpha-fsm/src/test/java/org/apache/servicecomb/pack/alpha/fsm/SagaIntegrationTest.java
+++ 
b/alpha/alpha-fsm/src/test/java/org/apache/servicecomb/pack/alpha/fsm/SagaIntegrationTest.java
@@ -36,7 +36,10 @@ import org.springframework.test.context.junit4.SpringRunner;
 @SpringBootTest(classes = {SagaApplication.class},
     properties = {
         "alpha.model.actor.enabled=true",
-        "spring.profiles.active=akka-persistence-mem"
+        
"akkaConfig.akka.persistence.journal.plugin=akka.persistence.journal.inmem",
+        
"akkaConfig.akka.persistence.journal.leveldb.dir=target/example/journal",
+        
"akkaConfig.akka.persistence.snapshot-store.plugin=akka.persistence.snapshot-store.local",
+        
"akkaConfig.akka.persistence.snapshot-store.local.dir=target/example/snapshots"
     })
 public class SagaIntegrationTest {
 
diff --git a/alpha/alpha-fsm/src/test/resources/application.yaml 
b/alpha/alpha-fsm/src/test/resources/application.yaml
deleted file mode 100644
index 9ca5b2e..0000000
--- a/alpha/alpha-fsm/src/test/resources/application.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements.  See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License.  You may obtain a copy of the License at
-##
-##      http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
----
-spring:
-  profiles: akka-persistence-mem
-akkaConfig:
-  akka.persistence.journal.plugin: akka.persistence.journal.inmem
-  akka.persistence.journal.leveldb.dir: target/example/journal
-  akka.persistence.snapshot-store.plugin: akka.persistence.snapshot-store.local
-  akka.persistence.snapshot-store.local.dir: target/example/snapshots
-
----
-spring:
-  profiles: akka-persistence-redis
-akkaConfig:
-  akka.persistence.journal.plugin: akka-persistence-redis.journal
-  akka.persistence.snapshot-store.plugin: akka-persistence-redis.snapshot
-  akka-persistence-redis:
-    redis:
-      mode: simple
-      host: localhost
-      port: 6379
-      database: 0
-      #password:
\ No newline at end of file

Reply via email to