Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
TFS
controller
Compare revisions
8cd8e0d960c7d0ed2e8e6a1c9aa0faddd397f02c...6c4ef63c949dafdaf42da6b0a121983820e0c3f8
Hide whitespace changes
Inline
Side-by-side
Some changes are not shown.
For a faster browsing experience, only
20 of 406+
files are shown. Download one of the files below to see all changes.
scripts/report_coverage_common.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_compute.sh
deleted
100755 → 0
View file @
8cd8e0d9
#!/bin/bash
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# 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.
./report_coverage_all.sh |
grep
--color
-E
-i
"^compute/.*
$|
$"
scripts/report_coverage_context.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_device.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_l3_attackmitigator.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_l3_centralizedattackdetector.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_l3_distributedattackdetector.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_nbi.sh
0 → 100755
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# 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.
./report_coverage_all.sh |
grep
--color
-E
-i
"^nbi/.*
$|
$"
scripts/report_coverage_pathcomp.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_service.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_slice.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
run_tests_docker.sh
→
scripts/
run_tests_docker.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -24,7 +24,7 @@ REGISTRY_IMAGE=""
#REGISTRY_IMAGE="http://my-container-registry.local/"
# Set the list of components you want to build images for, and deploy.
COMPONENTS
=
"context device
automation
policy service
compute
monitoring centralizedattackdetector"
COMPONENTS
=
"context device
ztp
policy service
nbi
monitoring centralizedattackdetector"
# Set the tag you want to use for your images.
IMAGE_TAG
=
"tf-dev"
...
...
@@ -35,6 +35,21 @@ TMP_FOLDER="./tmp"
TMP_LOGS_FOLDER
=
"
$TMP_FOLDER
/logs"
mkdir
-p
$TMP_LOGS_FOLDER
DOCKER_BUILD
=
"docker build"
DOCKER_MAJOR_VERSION
=
$(
docker
--version
|
grep
-o
-E
"Docker version [0-9]+
\.
"
|
grep
-o
-E
"[0-9]+"
|
cut
-c
1-3
)
if
[[
$DOCKER_MAJOR_VERSION
-ge
23
]]
;
then
# If Docker version >= 23, build command was migrated to docker-buildx
# In Ubuntu, in practice, means to install package docker-buildx together with docker.io
# Check if docker-buildx plugin is installed
docker buildx version 1>/dev/null 2>/dev/null
if
[[
$?
-ne
0
]]
;
then
echo
"Docker buildx command is not installed. Check: https://docs.docker.com/build/architecture/#install-buildx"
echo
"If you installed docker through APT package docker.io, consider installing also package docker-buildx"
exit
1
;
fi
DOCKER_BUILD
=
"docker buildx build"
fi
for
COMPONENT
in
$COMPONENTS
;
do
echo
"Processing '
$COMPONENT
' component..."
IMAGE_NAME
=
"
$COMPONENT
:
$IMAGE_TAG
"
...
...
@@ -43,10 +58,10 @@ for COMPONENT in $COMPONENTS; do
echo
" Building Docker image..."
BUILD_LOG
=
"
$TMP_LOGS_FOLDER
/build_
${
COMPONENT
}
.log"
if
[
"
$COMPONENT
"
==
"
automation
"
]
||
[
"
$COMPONENT
"
==
"policy"
]
;
then
docker build
-t
"
$IMAGE_NAME
"
-f
./src/
"
$COMPONENT
"
/Dockerfile ./src/
"
$COMPONENT
"
/
>
"
$BUILD_LOG
"
if
[
"
$COMPONENT
"
==
"
ztp
"
]
||
[
"
$COMPONENT
"
==
"policy"
]
;
then
$DOCKER_BUILD
-t
"
$IMAGE_NAME
"
-f
./src/
"
$COMPONENT
"
/Dockerfile ./src/
"
$COMPONENT
"
/
>
"
$BUILD_LOG
"
else
docker build
-t
"
$IMAGE_NAME
"
-f
./src/
"
$COMPONENT
"
/Dockerfile ./src/
>
"
$BUILD_LOG
"
$DOCKER_BUILD
-t
"
$IMAGE_NAME
"
-f
./src/
"
$COMPONENT
"
/Dockerfile ./src/
>
"
$BUILD_LOG
"
fi
if
[
-n
"
$REGISTRY_IMAGE
"
]
;
then
...
...
scripts/run_tests_locally-compute.sh
deleted
100755 → 0
View file @
8cd8e0d9
#!/bin/bash
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# 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.
PROJECTDIR
=
`
pwd
`
cd
$PROJECTDIR
/src
RCFILE
=
$PROJECTDIR
/coverage/.coveragerc
# Run unitary tests and analyze coverage of code at same time
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
compute/tests/test_unitary.py
scripts/run_tests_locally-context.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/run_tests_locally-device-all.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/run_tests_locally-device-emulated.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/run_tests_locally-device-ietf-actn.sh
0 → 100755
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# 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.
PROJECTDIR
=
`
pwd
`
cd
$PROJECTDIR
/src
RCFILE
=
$PROJECTDIR
/coverage/.coveragerc
# Run unitary tests and analyze coverage of code at same time
# helpful pytest flags: --log-level=INFO -o log_cli=true --verbose --maxfail=1 --durations=0
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
device/tests/test_unitary_ietf_actn.py
scripts/run_tests_locally-device-microwave.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/run_tests_locally-device-openconfig.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/run_tests_locally-device-p4.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
Prev
1
…
6
7
8
9
10
11
12
13
14
…
21
Next