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 {
@Override
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, "gwCreateUserQueue", CreateOfficialUserRequest.ROUTING_KEY, GW_CREATE_OFFICIAL_USER_QUEUE);
......
......@@ -13,7 +13,7 @@ public class ResetTestDataListener {
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) {
testDataImportService.resetTestData(providedMagicString);
}
......
......@@ -67,6 +67,9 @@ management:
info.enabled: true
teis:
test:
data:
resetmagic: {$TEST_DATA_RESET_MAGIC:}
system:
name: officials-service
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