schema_version
) or self.config_to_encrypt.get("default")
if edit_content.get("config") and config_to_encrypt_keys:
--
for p in config_to_encrypt_keys:
if edit_content["config"].get(p):
final_content["config"][p] = self.db.encrypt(
mapping["role"],
mapping["role_name"],
):
--
if mapping in mappings_to_remove: # do not remove
mappings_to_remove.remove(mapping)
break # do not add, it is already at user
:return: returns the id of the user in keystone.
"""
try:
--
if (
user_info.get("domain_name")
and user_info["domain_name"] in self.user_domain_ro_list
with self.fs.file_open(
(old_descriptor_directory.rstrip("/"), descriptor_file_name), "r"
) as old_descriptor_file:
--
with self.fs.file_open(
(new_descriptor_directory.rstrip("/"), descriptor_file_name), "r"
) as new_descriptor_file:
--
old_content = yaml.safe_load(old_descriptor_file.read())
new_content = yaml.safe_load(new_descriptor_file.read())
with self.fs.file_open(
(old_descriptor_directory.rstrip("/"), descriptor_file_name), "r"
) as old_descriptor_file:
--
with self.fs.file_open(
(new_descriptor_directory.rstrip("/"), descriptor_file_name), "r"
) as new_descriptor_file:
--
old_content = yaml.safe_load(old_descriptor_file.read())
new_content = yaml.safe_load(new_descriptor_file.read())
vnfd_id_2update = indata["changeVnfPackageData"]["vnfdId"]
if vnf_instance_id not in nsr["constituent-vnfr-ref"]:
--
raise EngineException(
f"Error in validating ns-update request: vnf {vnf_instance_id} does not "
f"belong to NS {ns_instance_id}",
# Check the given vnfd-id belongs to given vnf instance
if constituent_vnfd_id and (vnfd_id_2update != constituent_vnfd_id):
--
raise EngineException(
f"Error in validating ns-update request: vnfd-id {vnfd_id_2update} does not "
f"match with the vnfd-id: {constituent_vnfd_id} of VNF instance: {vnf_instance_id}",
class NotificationBase:
--
response_models = None
# Common HTTP payload header for all notifications.
payload_header = {"Content-Type": "application/json", "Accept": "application/json"}
class NsLcmNotification(NotificationBase):
--
# SOL005 response model for nslcm notifications
response_models = {
"NsLcmOperationOccurrenceNotification": {
class NewVnfInstance(BaseMethod):
--
# sample ns descriptor
sample_nsd = {
"nsd": {
self.logger.debug("Starting")
while not self.to_terminate:
try:
--
self.loop.run_until_complete(
asyncio.ensure_future(self.start_kafka(), loop=self.loop)
)
]
def run(self, engine, test_osm, manual_check, test_params=None):
--
vim_bad = self.vim.copy()
vim_bad.pop("name")
keys=None,
timeout=0,
):
--
r = engine.test(
"GET VNFR IDs",
"GET",
test_user_id = engine.last_id if res else None
if test_project_id and test_user_id:
--
# Get user access
engine.token = None
engine.user = test_username
test_vim_ids += [engine.last_id if res else None]
if test_vim_ids[0]:
--
# Download descriptor files (if required)
test_dir = "/tmp/" + test_username + "/"
test_url = "https://osm-download.etsi.org/ftp/osm-6.0-six/7th-hackfest/packages/"
file.write(res.content)
if all([os.path.exists(test_dir + p) for p in desc_filenames]):
--
# Test VNFD Quotas
res = engine.test(
"Create test VNFD #1",
test_vnfd_ids[i] = None
if test_vnfd_ids[0] and test_vnfd_ids[1]:
--
# Test NSD Quotas
res = engine.test(
"Create test NSD #1",
test_nsd_ids[i] = None
if test_nsd_ids[0] and test_nsd_ids[1]:
--
# Test NSR Quotas
res = engine.test(
"Create test NSR #1",
# License for the specific language governing permissions and limitations
# under the License.
--git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common
---r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
++git+https://osm.etsi.org/gerrit/osm/common.git@paas#egg=osm-common
++-r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
--git+https://osm.etsi.org/gerrit/osm/IM.git@master#egg=osm-im
---r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
++git+https://osm.etsi.org/gerrit/osm/IM.git@paas#egg=osm-im
++-r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
# limitations under the License.
- aiokafka==0.7.2
+ aiokafka==0.8.0
- # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
+ # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
- bitarray==2.5.1
+ async-timeout==4.0.2
+ # via
- # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
++ # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
+ # aiokafka
+ bitarray==2.6.2
# via
- # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
+ # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
# pyangbind
dataclasses==0.6
- # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
+ # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
enum34==1.1.10
# via
- # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
+ # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
# pyangbind
kafka-python==2.0.2
# via
- # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
+ # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
# aiokafka
- lxml==4.9.0
+ lxml==4.9.2
# via
- # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
+ # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
# pyang
# pyangbind
- # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
-osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@master
+ motor==1.3.1
++ # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
+osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@paas
# via -r requirements-dev.in
-osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@master
+osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@paas
# via -r requirements-dev.in
- # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
+ packaging==23.0
+ # via
++ # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
+ # aiokafka
pyang==2.5.3
# via
- # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
+ # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
# pyangbind
pyangbind==0.8.1
- # via -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
+ # via -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
- pycrypto==2.6.1
- # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
- pymongo==3.12.3
+ pycryptodome==3.17
- # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
+ # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
+ pymongo==3.13.0
+ # via
- # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
++ # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
+ # motor
pyyaml==5.4.1
# via
- # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
- # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=master
+ # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
+ # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=paas
- regex==2022.6.2
+ regex==2022.10.31
# via
- # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=master
+ # -r https://osm.etsi.org/gitweb/?p=osm/IM.git;a=blob_plain;f=requirements.txt;hb=paas
# pyangbind
six==1.16.0
# via
# via -r requirements-test.in
ordered-set==4.1.0
# via deepdiff
- pyang==2.5.3
- # via -r requirements-test.in
- requests==2.28.0
- # via -r requirements-test.in
- six==1.16.0
- # via nose2
- urllib3==1.26.9
- # via requests
- yarl==1.7.2
-orjson==3.8.5
++orjson==3.8.6
+ # via deepdiff
+ yarl==1.8.2
# via aiohttp
# cheroot
# jaraco-text
# tempora
- jaraco-text==3.8.0
-jaraco-text==3.11.0
++jaraco-text==3.11.1
# via jaraco-collections
- jsonschema==4.6.0
+ jsonschema==4.17.3
# via -r requirements.in
- keystoneauth1==4.6.0
+ keystoneauth1==5.1.1
# via python-keystoneclient
- more-itertools==8.13.0
+ more-itertools==9.0.0
# via
# cheroot
# cherrypy
# via oslo-utils
ordered-set==4.1.0
# via deepdiff
-orjson==3.8.5
++orjson==3.8.6
+ # via deepdiff
os-service-types==1.7.0
# via keystoneauth1
- oslo-config==8.8.0
+ oslo-config==9.1.0
# via python-keystoneclient
oslo-i18n==5.1.0
# via
# via aiohttp
zc-lockfile==2.0
# via cherrypy
- zipp==3.8.0
-zipp==3.11.0
++zipp==3.13.0
# via importlib-resources
# The following packages are considered to be unsafe in a requirements file: