CI: Add missing test files

These test files was lost during importing from RHEL to CentOS stream.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2023-04-24 07:51:57 +08:00
parent 1c40b28ce7
commit 7c9c788561
3 changed files with 24 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Name: nmstate Name: nmstate
Version: 1.4.4 Version: 1.4.4
Release: 1%{?dist} Release: 2%{?dist}
Summary: Declarative network manager API Summary: Declarative network manager API
License: LGPLv2+ License: LGPLv2+
URL: https://github.com/%{srcname}/%{srcname} URL: https://github.com/%{srcname}/%{srcname}
@ -148,6 +148,9 @@ popd
/sbin/ldconfig /sbin/ldconfig
%changelog %changelog
* Mon Apr 24 2023 Gris Ge <fge@redhat.com> - 1.4.4-2
- Enable CI gating.
* Sun Apr 23 2023 Gris Ge <fge@redhat.com> - 1.4.4-1 * Sun Apr 23 2023 Gris Ge <fge@redhat.com> - 1.4.4-1
- Upgrade to nmstate 1.4.4 - Upgrade to nmstate 1.4.4

7
tests/cli_query_reapply.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash -ex
TMP_FILE=$(mktemp /tmp/nmstate.XXXXXX.yaml)
nmstatectl show > $TMP_FILE
nmstatectl set $TMP_FILE

13
tests/tests.yml Normal file
View File

@ -0,0 +1,13 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
remote_user: root
tests:
- cli_query_reapply:
dir: .
run: ./cli_query_reapply.sh
required_packages:
- nmstate
- nispor