From 7d764e28301a3c98c3a42a6926e524a4d2b3c6d9 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Wed, 27 Sep 2023 09:12:41 +0200 Subject: Data provider 0.7.2 version Uses latest onapsdk and fix passing few parameters Issue-ID: INT-2264 Signed-off-by: Michal Jagiello Change-Id: I73d80a0d81661a6082a04414f2623df3725165cb --- Dockerfile | 6 +++--- onap_data_provider/resources/service_instance_resource.py | 6 +++--- requirements.txt | 2 +- setup.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb07095..726f0a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ -FROM python:3.10.4-slim AS builder +FROM python:3.11.4-slim AS builder COPY requirements.txt /opt/app/onap_data_provider/requirements.txt WORKDIR /opt/app/onap_data_provider/ -RUN python -m pip install -r requirements.txt --prefix=/opt/install +RUN python -m pip install -r requirements.txt --prefix=/opt/install --no-build-isolation -FROM nexus3.onap.org:10001/onap/integration-python:10.0.0 +FROM nexus3.onap.org:10001/onap/integration-python:12.0.0 COPY --from=builder --chown=onap:onap /opt/install /usr/local diff --git a/onap_data_provider/resources/service_instance_resource.py b/onap_data_provider/resources/service_instance_resource.py index b23de40..4c3da81 100644 --- a/onap_data_provider/resources/service_instance_resource.py +++ b/onap_data_provider/resources/service_instance_resource.py @@ -122,9 +122,9 @@ class ServiceInstanceResource(Resource): sdc_service=service, customer=self.customer, owning_entity=owning_entity, - project=Project(self.data["project"]), - line_of_business=LineOfBusiness(self.data["line_of_business"]), - platform=Platform(self.data["platform"]), + project=Project(self.data["project"]).name, + line_of_business=LineOfBusiness(self.data["line_of_business"]).name, + platform=Platform(self.data["platform"]).name, cloud_region=cloud_region, tenant=tenant, service_instance_name=self.data["service_instance_name"], diff --git a/requirements.txt b/requirements.txt index 193720d..2e42ade 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -onapsdk==10.3.2 +onapsdk==12.3.2 PyYAML~=5.4.1 jsonschema==4.4.0 diff --git a/setup.py b/setup.py index e37e916..00fa5bc 100644 --- a/setup.py +++ b/setup.py @@ -21,8 +21,8 @@ with open("README.md", "r", encoding="utf-8") as readme: setuptools.setup( name="onap_data_provider", - version="0.7.1", - author="Michal Jagiello , Piotr Stanior , Pawel Denst ", + version="0.7.2", + author="Michal Jagiello , Piotr Stanior , Pawel Denst ", description="Tool to provide data for ONAP instances", long_description=long_description, long_description_content_type="text/markdown", @@ -35,7 +35,7 @@ setuptools.setup( "onap-data-provider=onap_data_provider.data_provider:run", ] }, - install_requires=["onapsdk==10.3.2", "PyYAML~=5.4.1", "jsonschema==4.4.0"], + install_requires=["onapsdk==12.3.2", "PyYAML~=5.4.1", "jsonschema==4.4.0"], classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", -- cgit 1.2.3-korg