Skip to content

Commit 46a390e

Browse files
authored
Merge pull request #127 from ChannelFinder/pullout-server-test-docker
Refactor docker ioc used in testing recceiver
2 parents 6b47a8b + ef9b12b commit 46a390e

File tree

19 files changed

+114
-254
lines changed

19 files changed

+114
-254
lines changed

client/demoApp/Db/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ include $(TOP)/configure/CONFIG
1111
# Create and install (or just install) into <top>/db
1212
# databases, templates, substitutions like this
1313
DB += somerecords.db
14-
DB += archive.db
15-
DB += archive_bugtest.db
1614
#----------------------------------------------------
1715
# If <anyname>.db template is not named <anyname>*.template add
1816
# <anyname>_template = <templatename>

client/demoApp/Db/archive.db

Lines changed: 0 additions & 11 deletions
This file was deleted.

client/demoApp/Db/archive_bugtest.db

Lines changed: 0 additions & 10 deletions
This file was deleted.

client/iocBoot/iocdemo/st.cmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ addReccasterExcludePattern("*exclude_this")
2929
## Load record instances
3030
dbLoadRecords("../../db/reccaster.db", "P=$(IOCSH_NAME):")
3131
dbLoadRecords("../../db/somerecords.db","P=$(IOCSH_NAME):")
32-
dbLoadRecords("../../db/archive.db", "P=$(IOCSH_NAME):")
3332

3433
iocInit()

client/iocBoot/iocdemo/st_bugtest.cmd

Lines changed: 0 additions & 31 deletions
This file was deleted.

client/iocBoot/iocdemo/st_test.cmd

Lines changed: 0 additions & 23 deletions
This file was deleted.

server/recceiver/scripts/readme

Lines changed: 0 additions & 75 deletions
This file was deleted.

server/recceiver/scripts/test_mock_iocs.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

server/tests/client_checks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
INACTIVE_PROPERTY = {"name": "pvStatus", "owner": "admin", "value": "Inactive", "channels": []}
1212
MAX_WAIT_SECONDS = 180
1313
TIME_PERIOD_INCREMENT = 2
14+
DEFAULT_CHANNEL_NAME = "IOC1-1:ai:test"
1415

1516

1617
def channel_match(channel0, channel1, properties_to_match: list[str]):
@@ -28,7 +29,7 @@ def channels_match(channels_begin, channels_end, properties_to_match: list[str])
2829
channel_match(channel, channels_end[channel_index], properties_to_match)
2930

3031

31-
def check_channel_count(cf_client: ChannelFinderClient, name="*", expected_channel_count=24):
32+
def check_channel_count(cf_client: ChannelFinderClient, expected_channel_count, name="*"):
3233
channels = cf_client.find(name=name)
3334
LOG.debug("Found %s channels", len(channels))
3435
return len(channels) == expected_channel_count
@@ -52,7 +53,7 @@ def wait_for_sync(cf_client: ChannelFinderClient, check: Callable[[ChannelFinder
5253
return False
5354

5455

55-
def create_client_and_wait(compose: DockerCompose, expected_channel_count=24) -> ChannelFinderClient:
56+
def create_client_and_wait(compose: DockerCompose, expected_channel_count) -> ChannelFinderClient:
5657
LOG.info("Waiting for channels to sync")
5758
cf_client = create_client_from_compose(compose)
5859
assert wait_for_sync(

0 commit comments

Comments
 (0)