Update tests and NBI Dockerfile to patch pyangbing and install libmagic1
Change-Id: If262e372ce26b04df5ac54961336620f27897933
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/docker/tests/Dockerfile b/docker/tests/Dockerfile
index bafe66f..2c824bc 100644
--- a/docker/tests/Dockerfile
+++ b/docker/tests/Dockerfile
@@ -42,7 +42,8 @@
iputils-ping=3:* \
jq=1.6* \
libcurl4-openssl-dev=7.81.* \
- libssl-dev=3.0.*
+ libssl-dev=3.0.* \
+ libmagic1=1:5.*
ARG OSM_TESTS_URL
ARG PYTHON3_OSM_IM_URL
@@ -66,6 +67,9 @@
RUN mv /usr/share/osm-tests/conformance-tests/ /robot-systest/
RUN mv /usr/share/osm-tests/charm.sh /usr/sbin/charm
+COPY pyangbind.patch /robot-systest
+RUN patch /usr/local/lib/python3.10/dist-packages/pyangbind/lib/yangtypes.py < /robot-systest/pyangbind.patch
+
ARG CACHE_DATE=not_a_date
RUN git clone \
https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git \