Skip to content

Commit 234cf3f

Browse files
committed
gh-41 update copyright
Signed-off-by: Victor Chang <[email protected]>
1 parent b3c1c15 commit 234cf3f

File tree

6 files changed

+80
-5
lines changed

6 files changed

+80
-5
lines changed

tests/Integration.Test/Drivers/DicomScu.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
using System.Diagnostics;
1+
// Copyright 2022 MONAI Consortium
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
12+
using System.Diagnostics;
213
using FellowOakDicom;
314
using FellowOakDicom.Network;
415
using FellowOakDicom.Network.Client;

tests/Integration.Test/Features/DicomDimseScp.feature

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
Feature: DICOM DIMSE SCP Services
1+
# Copyright 2022 MONAI Consortium
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
12+
Feature: DICOM DIMSE SCP Services
213

314
This feature tests the DIMSE services provided by the Informatics Gateway as a SCP.
415
Requirements covered:

tests/Integration.Test/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# MONAI Deploy Informatics Gateway Integration Test
2+
3+
The integration test suite is written using SpecFlow & Gherkin, a Behavior Driven Development (BDD) framework, and a domain-specific language designed for BDD.
4+
5+
## Development Requirements
6+
7+
- .NET 6
8+
- [SpecFlow](https://specflow.org/)
9+
- [Docker Compose](https://docs.docker.com/compose/)
10+
11+
12+
## Running Integration Test
13+
14+
To run the integration test, first update the `TAG` value to one of the [available image versions](https://github.com/Project-MONAI/monai-deploy-informatics-gateway/pkgs/container/monai-deploy-informatics-gateway) in the `.env.dev` file. Then, execute `./run.sh` to start the test.
15+
16+
The script sets up the environment and starts docker-compose, pulling all required Docker images, including, RabbitMQ, MinIO, and Informatics Gateway.

tests/Integration.Test/TestConfig.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
[assembly: CollectionBehavior(DisableTestParallelization = true)]
1+
// Copyright 2022 MONAI Consortium
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
12+
[assembly: CollectionBehavior(DisableTestParallelization = true)]

tests/Integration.Test/docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright 2022 MONAI Consortium
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
version: "3.7"
213
services:
314
minio:

tests/Integration.Test/run.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright 2022 MONAI Consortium
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
#!/bin/bash
213

314
export SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
@@ -8,6 +19,7 @@ CONFIG_DIR="$SCRIPT_DIR/configs"
819
EXIT=false
920
METRICSFILE=$SCRIPT_DIR/metrics.log
1021
LOADDEV=
22+
STREAMID=
1123

1224
export DATA_PATH="$RUN_DIR/ig/payloads/"
1325
set -euo pipefail
@@ -33,7 +45,7 @@ function check_status_code() {
3345
function env_setup() {
3446
if [[ $(docker-compose ps -q | wc -l) -ne 0 ]]; then
3547
info "Stopping existing services..."
36-
docker-compose $LOADDEV down
48+
docker-compose $LOADDEV down
3749
fi
3850

3951
if (dotnet tool list --global | grep livingdoc &>/dev/null) ; then
@@ -111,6 +123,7 @@ function write_da_metrics() {
111123
function stream_da_metrics() {
112124
[ -f $METRICSFILE ] && sudo rm $METRICSFILE
113125
write_da_metrics &
126+
STREAMID=$!
114127
}
115128

116129
function run_test() {
@@ -140,8 +153,10 @@ function save_logs() {
140153
}
141154

142155
function tear_down() {
156+
info "Stop streaming metrics log..."
157+
kill $STREAMID >/dev/null 2>&1
143158
info "Stopping services..."
144-
docker-compose down --remove-orphans
159+
docker-compose $LOADDEV down --remove-orphans
145160
}
146161

147162
function main() {

0 commit comments

Comments
 (0)