Skip to content

Commit 4c705c5

Browse files
committed
Only aa tests have aa enabled
1 parent b8f0a09 commit 4c705c5

9 files changed

+46
-22
lines changed

src/test/java/org/phoebus/channelfinder/processors/aa/AAChannelProcessorIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.test.context.TestPropertySource;
2929

3030
@WebMvcTest(AAChannelProcessor.class)
31-
@TestPropertySource(value = "classpath:application_test.properties")
31+
@TestPropertySource(value = "classpath:application_aa_proc_test.properties")
3232
class AAChannelProcessorIT {
3333

3434
protected static Property archiveProperty = new Property("archive", "owner", "default");

src/test/java/org/phoebus/channelfinder/processors/aa/AAChannelProcessorMultiIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.springframework.test.context.TestPropertySource;
3333

3434
@WebMvcTest(AAChannelProcessor.class)
35-
@TestPropertySource(value = "classpath:application_test.properties")
35+
@TestPropertySource(value = "classpath:application_aa_proc_test.properties")
3636
class AAChannelProcessorMultiIT {
3737

3838
public static final String BEING_ARCHIVED = "Being archived";

src/test/java/org/phoebus/channelfinder/processors/aa/AAChannelProcessorNoDefaultIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
@WebMvcTest(AAChannelProcessor.class)
2626
@TestPropertySource(
27-
locations = "classpath:application_test.properties",
27+
locations = "classpath:application_aa_proc_test.properties",
2828
properties = "aa.urls:{'default': '','aa': 'http://localhost:17665'}")
2929
class AAChannelProcessorNoDefaultIT {
3030
protected static Property archiverProperty = new Property("archiver", "owner", "aa");

src/test/java/org/phoebus/channelfinder/processors/aa/AAChannelProcessorNoPauseIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
@WebMvcTest(AAChannelProcessor.class)
2525
@TestPropertySource(
26-
locations = "classpath:application_test.properties",
26+
locations = "classpath:application_aa_proc_test.properties",
2727
properties = "aa.auto_pause=none")
2828
class AAChannelProcessorNoPauseIT {
2929

src/test/java/org/phoebus/channelfinder/processors/aa/AAChannelProcessorStatusPauseIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
@WebMvcTest(AAChannelProcessor.class)
2525
@TestPropertySource(
26-
locations = "classpath:application_test.properties",
26+
locations = "classpath:application_aa_proc_test.properties",
2727
properties = "aa.auto_pause=pvStatus")
2828
class AAChannelProcessorStatusPauseIT {
2929

src/test/java/org/phoebus/channelfinder/processors/aa/AAChannelProcessorTagPauseIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
@WebMvcTest(AAChannelProcessor.class)
2525
@TestPropertySource(
26-
locations = "classpath:application_test.properties",
26+
locations = "classpath:application_aa_proc_test.properties",
2727
properties = "aa.auto_pause=archive")
2828
class AAChannelProcessorTagPauseIT {
2929

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
logging.level.org.springframework.web=INFO
3+
4+
############################## Service Info ###############################
5+
# ChannelFinder version as defined in the pom file
6+
channelfinder.version=@project.version@
7+
8+
############################## REST Logging ###############################
9+
# DEBUG level will log all requests and responses to and from the REST end points
10+
logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=INFO
11+
12+
################ Processor ##################################################
13+
processors.chunking.size=10000
14+
15+
################ Archiver Appliance Configuration Processor #################
16+
aa.urls={'default': 'http://localhost:17665'}
17+
aa.default_alias=default
18+
aa.enabled=true
19+
aa.pva=false
20+
aa.archive_property_name=archive
21+
aa.archiver_property_name=archiver
22+
23+
# Set the auto pause behaviour
24+
#
25+
# Empty for no auto pause
26+
# Or pvStatus to pause on pvStatus=Inactive
27+
# Or match archive_property_name to pause on archive_property_name not existing
28+
# Or both, i.e. aa.auto_pause=pvStatus,archive
29+
#
30+
aa.auto_pause=pvStatus,archive
31+
32+
33+
############################## Metrics ###############################
34+
#actuator
35+
management.endpoints.web.exposure.include=prometheus, metrics, health, info
36+
metrics.tags=
37+
metrics.properties=
38+
metrics.updateInterval=1

src/test/resources/application_test.properties

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,7 @@ logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=INFO
8989
processors.chunking.size=10000
9090

9191
################ Archiver Appliance Configuration Processor #################
92-
aa.urls={'default': 'http://localhost:17665'}
93-
aa.default_alias=default
94-
aa.enabled=true
95-
aa.pva=false
96-
aa.archive_property_name=archive
97-
aa.archiver_property_name=archiver
98-
99-
# Set the auto pause behaviour
100-
#
101-
# Empty for no auto pause
102-
# Or pvStatus to pause on pvStatus=Inactive
103-
# Or match archive_property_name to pause on archive_property_name not existing
104-
# Or both, i.e. aa.auto_pause=pvStatus,archive
105-
#
106-
aa.auto_pause=pvStatus,archive
107-
92+
aa.enabled=false
10893

10994
############################## Metrics ###############################
11095
#actuator

src/test/resources/application_test_multi.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=INFO
8787

8888
################ Archiver Appliance Configuration Processor #################
8989
aa.urls={'post': 'http://localhost:17664', 'query': 'http://localhost:17665'}
90+
aa.enabled=true
9091
aa.default_alias=post, query
9192
aa.pva=false
9293
aa.archive_property_name=archive

0 commit comments

Comments
 (0)