Commit 7b282479 authored by Ivar Meikas's avatar Ivar Meikas
Browse files

TEIS-128 - reset test data

parent 21ff3a21
...@@ -53,7 +53,7 @@ public class QueueConfig implements QueueList { ...@@ -53,7 +53,7 @@ public class QueueConfig implements QueueList {
@Override @Override
public void updateQueues(ArrayList<TeisQueue> queues) { public void updateQueues(ArrayList<TeisQueue> queues) {
String queueName = "officials-service" + TestDataImportService.RESET_TEST_DATA_QUEUE_PREFIX; String queueName = "officials-service" + TestDataImportService.RESET_TEST_DATA_QUEUE_SUFIX;
addGwQueue(queues, "gwResetTestData", TestDataImportService.RESET_TEST_DATA_ROUTING_KEY, queueName); addGwQueue(queues, "gwResetTestData", TestDataImportService.RESET_TEST_DATA_ROUTING_KEY, queueName);
addGwQueue(queues, "gwCreateUserQueue", CreateOfficialUserRequest.ROUTING_KEY, GW_CREATE_OFFICIAL_USER_QUEUE); addGwQueue(queues, "gwCreateUserQueue", CreateOfficialUserRequest.ROUTING_KEY, GW_CREATE_OFFICIAL_USER_QUEUE);
......
...@@ -13,7 +13,7 @@ public class ResetTestDataListener { ...@@ -13,7 +13,7 @@ public class ResetTestDataListener {
private TestDataImportService testDataImportService; private TestDataImportService testDataImportService;
@RabbitListener(queues = {"officials-service" + TestDataImportService.RESET_TEST_DATA_QUEUE_PREFIX}) @RabbitListener(queues = {"officials-service" + TestDataImportService.RESET_TEST_DATA_QUEUE_SUFIX})
public void resetTestData(String providedMagicString) { public void resetTestData(String providedMagicString) {
testDataImportService.resetTestData(providedMagicString); testDataImportService.resetTestData(providedMagicString);
} }
......
...@@ -67,6 +67,9 @@ management: ...@@ -67,6 +67,9 @@ management:
info.enabled: true info.enabled: true
teis: teis:
test:
data:
resetmagic: {$TEST_DATA_RESET_MAGIC:}
system: system:
name: officials-service name: officials-service
rabbit: rabbit:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment