Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Added rhythm user.
Browse files Browse the repository at this point in the history
  • Loading branch information
mifosio-04-04-2018 committed May 15, 2017
1 parent 0db3f76 commit 2f89bae
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
Expand Up @@ -50,7 +50,9 @@
*/
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT,
classes = {AbstractRhythmTest.TestConfiguration.class})
classes = {AbstractRhythmTest.TestConfiguration.class},
properties = "rhythm.user=homer"
)
public class AbstractRhythmTest {

private static final String APP_NAME = "rhythm-v1";
Expand Down
Expand Up @@ -30,6 +30,7 @@
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
* @author Myrle Krantz
Expand All @@ -45,8 +46,10 @@
@EnableCommandProcessing
@EnableAnubis
@EnableServiceException
@EnableScheduling
@ComponentScan({
"io.mifos.rhythm.service.rest",
"io.mifos.rhythm.service.config",
"io.mifos.rhythm.service.internal.service",
"io.mifos.rhythm.service.internal.repository",
"io.mifos.rhythm.service.internal.command.handler"
Expand Down
@@ -0,0 +1,39 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed 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.
*/
package io.mifos.rhythm.service.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
* @author Myrle Krantz
*/
@Component
@ConfigurationProperties(prefix="rhythm")
public class RhythmProperties {
private String user;

public RhythmProperties() {
}

public void setUser(String user) {
this.user = user;
}

public String getUser() {
return user;
}
}
3 changes: 3 additions & 0 deletions service/src/main/resources/application.yml
Expand Up @@ -64,3 +64,6 @@ async:

flyway:
enabled: false

rhythm:
user: scheduler

0 comments on commit 2f89bae

Please sign in to comment.