def create_pdu_dictionary(
name, pdu_type, interface, description, vim_account, descriptor_file, update=False
):
-
logger.debug("")
pdu = {}
return curl_cmd
def get_cmd(self, endpoint):
-
data = BytesIO()
curl_cmd = self._get_curl_cmd(endpoint)
curl_cmd.setopt(pycurl.HTTPGET, 1)
project="admin",
**kwargs
):
-
self._user = user
self._password = password
self._project = project
admin_status="ENABLED",
wait=False,
):
-
self._logger.debug("")
self._client.get_token()
nst = self._client.nst.get(nst_name)
return f_name
def pkg_get(self, pkgtype, name, repo, version, filter):
-
pkg_name = self.get_pkg(pkgtype, name, repo, filter, version)
if not pkg_name:
raise ClientException("Package not found")
if user.get("set-project"):
# Remove project and insert project role mapping
for set_project in user["set-project"]:
-
set_project_clean = [m.strip() for m in set_project.split(",")]
project, roles = set_project_clean[0], set_project_clean[1:]
coverage report --omit='*tests*'
coverage html -d ./cover --omit='*tests*'
coverage xml -o coverage.xml --omit=*tests*
-whitelist_externals = sh
+allowlist_externals = sh
#######################################################################################
[testenv:pip-compile]
deps = pip-tools==6.6.2
skip_install = true
-whitelist_externals = bash
+allowlist_externals = bash
[
commands =
- bash -c "for file in requirements*.in ; do \
python3 setup.py --command-packages=stdeb.command sdist_dsc
sh -c 'cd deb_dist/osmclient*/ && dpkg-buildpackage -rfakeroot -uc -us'
sh -c 'rm osmclient/requirements.txt'
-whitelist_externals = sh
+allowlist_externals = sh
#######################################################################################
[flake8]