Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #158

Merged
merged 4 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build and Upload to pypi
run: |
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
python3 -m twine upload dist/* --verbose
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
History
=======

-------------------
1.0.11 (2023-09-12)
-------------------
* Bug fix on validation pipeline. Take into account that domainName may not be present in the service description (aefProfile)
* Requirements file has been updated to remove package conflicts. Also, deploy yaml has been updated for better debugging issues.

-------------------
1.0.10 (2023-09-11)
-------------------
Expand Down
6 changes: 3 additions & 3 deletions evolved5g/nef_and_tsn_api_service_validation_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def validate_all_endpoints_returned_by_service_discoverer(config_file_full_path:
host_info = aef_profile['interfaceDescriptions'][0]
tsn_port = host_info["port"]

if aef_profile['domainName']!=None:
if "domainName" in aef_profile and aef_profile['domainName']!=None:
tsn_host = aef_profile['domainName']
else:
tsn_host = host_info["ipv4Addr"]
Expand All @@ -52,7 +52,7 @@ def validate_all_endpoints_returned_by_service_discoverer(config_file_full_path:
return True

def __get_nef_url(aef_profile) -> str:
if aef_profile['domainName']!=None:
if "domainName" in aef_profile and aef_profile['domainName']!=None:
return "https://{domain_name}".format(domain_name=aef_profile['domainName'])
else:
host_info = aef_profile['interfaceDescriptions'][0]
Expand Down Expand Up @@ -229,7 +229,7 @@ def __test_tsn_manager(config,tsn_host,tsn_port):
folder_path_for_certificates_and_capif_api_key=config["folder_to_store_certificates"],
capif_host=config["capif_host"],
capif_https_port=config["capif_https_port"],
https=False,
https=True,
tsn_host=tsn_host,
tsn_port=tsn_port
)
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ watchdog==0.9.0
flake8==3.9.2
coverage==4.5.4
Click==8.0.1
pytest==6.2.4
pytest
cookiecutter==2.1.1
invoke==1.6.0
requests==2.26.0
Expand All @@ -12,3 +12,4 @@ certifi~=2021.10.8
urllib3~=1.26.7
typing-extensions==3.10.0.2
pyopenssl==22.1.0

5 changes: 3 additions & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ watchdog==0.9.0
flake8==3.9.2
tox
coverage==4.5.4
Sphinx==1.8.5
Sphinx
twine
Click==8.0.1
pytest==6.2.4
pytest
cookiecutter==2.1.1
invoke==1.6.0
requests==2.26.0
build

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.10
current_version = 1.0.11
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/EVOLVED-5G/SDK-CLI",
version="1.0.10",
version="1.0.11",
zip_safe=False,
)