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/run_tests_locally-device-tapi.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-forecaster.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
\
forecaster/tests/test_unitary.py
scripts/run_tests_locally-interdomain-compute-domains.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-interdomain-topology-abstractor.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-nbi-all.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
\
nbi/tests/test_etsi_bwm.py
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
nbi/tests/test_ietf_l2vpn.py
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
nbi/tests/test_ietf_l3vpn.py
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
nbi/tests/test_ietf_network.py
scripts/run_tests_locally-nbi-etsi-bwm.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
\
nbi/tests/test_etsi_bwm.py
scripts/run_tests_locally-nbi-ietf-l2vpn.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
\
nbi/tests/test_ietf_l2vpn.py
scripts/run_tests_locally-nbi-ietf-l3vpn.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
\
nbi/tests/test_ietf_l3vpn.py
scripts/run_tests_locally-nbi-ietf-network.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
\
nbi/tests/test_ietf_network.py
scripts/run_tests_locally-nbi-tfs-api.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
\
nbi/tests/test_tfs_api.py
scripts/run_tests_locally-optical-attack-detector.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
`
RCFILE
=
$PROJECTDIR
/coverage/.coveragerc
COVERAGEFILE
=
$PROJECTDIR
/coverage/.coverage
# Destroy old coverage file and configure the correct folder on the .coveragerc file
rm
-f
$COVERAGEFILE
cat
$PROJECTDIR
/coverage/.coveragerc.template |
sed
s+~/tfs-ctrl+
$PROJECTDIR
+g
>
$RCFILE
echo
echo
"Pre-test clean-up:"
echo
"------------------"
docker
rm
-f
redis opticalattackdetector dbscanserving
docker network
rm
tfs_br
echo
echo
"Pull Docker images:"
echo
"-------------------"
docker pull redis:7.0-alpine
echo
echo
"Build optical attack detector:"
echo
"------------------------------"
docker build
-t
"opticalattackdetector:latest"
-f
./src/opticalattackdetector/Dockerfile
.
docker images
--filter
=
"dangling=true"
--quiet
| xargs
-r
docker rmi
echo
echo
"Build dbscan serving:"
echo
"---------------------"
docker build
-t
"dbscanserving:latest"
-f
./src/dbscanserving/Dockerfile
.
docker images
--filter
=
"dangling=true"
--quiet
| xargs
-r
docker rmi
echo
echo
"Create test environment:"
echo
"------------------------"
export
REDIS_PASSWORD
=
$(
uuidgen
)
docker network create
-d
bridge
--subnet
=
172.254.254.0/24
--gateway
=
172.254.254.1
--ip-range
=
172.254.254.0/24 tfs_br
docker run
--name
redis
-d
--network
=
tfs_br
-p
16379:6379
--rm
\
--env
REDIS_PASSWORD
=
${
REDIS_PASSWORD
}
\
redis:7.0-alpine redis-server
--requirepass
${
REDIS_PASSWORD
}
docker run
--name
dbscanserving
-d
--network
=
tfs_br
-p
10008:10008
--rm
\
--env
LOG_LEVEL
=
DEBUG
\
dbscanserving:latest
"python -m dbscanserving.service"
echo
echo
"Waiting for initialization..."
echo
"-----------------------------"
while
!
docker logs redis 2>&1 |
grep
-q
'Ready to accept connections'
;
do
sleep
1
;
done
docker logs redis
#while ! docker logs dbscanserving 2>&1 | grep -q 'Server is ready'; do sleep 1; done
docker logs dbscanserving
#sleep 10
docker ps
-a
echo
echo
"Run unitary tests and analyze code coverage:"
echo
"--------------------------------------------"
export
REDIS_ADDRESS
=
$(
docker inspect redis
--format
"{{.NetworkSettings.Networks.tfs_br.IPAddress}}"
)
export
DBSCANSERVING_ADDRESS
=
$(
docker inspect dbscanserving
--format
"{{.NetworkSettings.Networks.tfs_br.IPAddress}}"
)
docker run
--name
opticalattackdetector
-d
--network
=
tfs_br
-p
10006:10006
--rm
\
--env
REDIS_PASSWORD
=
${
REDIS_PASSWORD
}
\
--env
DBSCANSERVINGSERVICE_SERVICE_HOST
=
${
DBSCANSERVING_ADDRESS
}
\
--env
CACHINGSERVICE_SERVICE_HOST
=
${
REDIS_ADDRESS
}
\
opticalattackdetector:latest
sleep
5
docker ps
-a
docker logs opticalattackdetector
docker
exec
-i
opticalattackdetector bash
-c
"coverage run -m pytest --log-level=DEBUG --verbose opticalattackdetector/tests/test_unitary.py"
docker logs redis
docker logs dbscanserving
docker logs opticalattackdetector
echo
echo
"Coverage report:"
echo
"----------------"
docker
exec
-i
opticalattackdetector bash
-c
"coverage report --include='opticalattackdetector/*' --sort cover --show-missing --skip-covered"
echo
echo
"Post-test clean-up:"
echo
"-------------------"
docker
rm
-f
redis opticalattackdetector dbscanserving
docker network
rm
tfs_br
echo
"Done!"
scripts/run_tests_locally-pathcomp-frontend.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-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/run_tests_locally-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.
...
...
scripts/run_tests_locally.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.
...
...
@@ -84,7 +84,7 @@ coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
service/tests/test_unitary.py
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
compute
/tests/test_unitary.py
nbi
/tests/test_unitary.py
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
webui/tests/test_unitary.py
...
...
scripts/show_logs_automation.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,4 +24,4 @@ export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"}
# Automated steps start here
########################################################################################################################
kubectl
--namespace
$TFS_K8S_NAMESPACE
logs deployment/
automation
service
kubectl
--namespace
$TFS_K8S_NAMESPACE
logs deployment/
ztp
service
scripts/show_logs_bgp.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.
########################################################################################################################
# Define your deployment settings here
########################################################################################################################
# If not already set, set the name of the Kubernetes namespace to deploy to.
export
TFS_K8S_NAMESPACE
=
${
TFS_K8S_NAMESPACE
:-
"tfs"
}
########################################################################################################################
# Automated steps start here
########################################################################################################################
kubectl
--namespace
$TFS_K8S_NAMESPACE
logs deployment/bgpls_speakerservice
-c
server
scripts/show_logs_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.
########################################################################################################################
# Define your deployment settings here
########################################################################################################################
# If not already set, set the name of the Kubernetes namespace to deploy to.
export
TFS_K8S_NAMESPACE
=
${
TFS_K8S_NAMESPACE
:-
"tfs"
}
########################################################################################################################
# Automated steps start here
########################################################################################################################
kubectl
--namespace
$TFS_K8S_NAMESPACE
logs deployment/computeservice
-c
server
scripts/show_logs_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/show_logs_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.
...
...
Prev
1
…
7
8
9
10
11
12
13
14
15
…
21
Next