cloud-init: pip install `test-requirements.txt` to enable ptest (#3356)
* cloud-init: pip install `test-requirements.txt` to enable ptest * cloud-init: remove httpretty from test_pkgs Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
parent
fa03f90e29
commit
10c3157946
|
@ -1,7 +1,7 @@
|
|||
Summary: Cloud instance init scripts
|
||||
Name: cloud-init
|
||||
Version: 22.2
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: GPLv3
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
|
@ -106,9 +106,10 @@ echo -e 'CERT1\nLINE2\nLINE3\nCERT2\nLINE2\nLINE3' > "${crt_file}"
|
|||
conf_file='%{_sysconfdir}/ca-certificates.conf'
|
||||
echo -e 'line1\nline2\nline3\ncloud-init-ca-certs.crt\n' > "${conf_file}"
|
||||
|
||||
%define test_pkgs pytest-metadata unittest2 mock attrs iniconfig httpretty netifaces
|
||||
%define test_pkgs pytest-metadata unittest2 mock attrs iniconfig netifaces
|
||||
|
||||
pip3 install --upgrade %{test_pkgs}
|
||||
pip3 install -r test-requirements.txt
|
||||
|
||||
make check %{?_smp_mflags}
|
||||
|
||||
|
@ -145,6 +146,9 @@ make check %{?_smp_mflags}
|
|||
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg.d/10-azure-kvp.cfg
|
||||
|
||||
%changelog
|
||||
* Tue Jul 12 2022 Muhammad Falak <mwani@microsoft.com> - 22.2-5
|
||||
- Install check requirements from `test-requirements.txt` to enable ptest
|
||||
|
||||
* Thu Jun 30 2022 Chris Patterson <cpatterson@microsoft.com> - 22.2-4
|
||||
- Patch for CVE-2022-2084
|
||||
- Report patch level in version info
|
||||
|
|
Loading…
Reference in New Issue