【原文链接】openQA----基于openQA新增指定版本的openSUSE的iso镜像进行测试
(1)执行如下命令下载openSUSE的测试脚本,它会从openSUSE的测试脚本github地址
/usr/share/openqa/script/fetchneedles
(2)然后执行如下命令,获取openQA的配置,其中API_KEY和API_SECRET可以在openQA的WEB中查询到,具体可参考 openQA----基于openSUSE部署openQA 中的步骤11和步骤12
/var/lib/openqa/share/tests/opensuse/products/opensuse/templates [--apikey API_KEY] [--apisecret API_SECRET]
(3)找一个openSUSE的iso镜像,比如打开 openSUSE镜像下载地址 ,挑选一个x86_64的media的镜像,右键复制链接,比如这里链接为: http://download.opensuse.org/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Media.iso
(4)然后下载镜像至 /var/lib/openqa/share/factory/iso 目录下,即执行如下命令
cd /var/lib/openqa/share/factory/iso
wget http://download.opensuse.org/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Media.iso
(5)然后执行如下命令
openqa-cli api -X POST isos \
ISO=openSUSE-Leap-15.3-3-DVD-x86_64-Media.iso \
DISTRI=opensuse \
VERSION=Leap-15.3-3 \
FLAVOR=DVD \
ARCH=x86_64
(6)然后刷新openQA命令的WEB页面,就会出现如下所示的测试任务,如下图所示,当前测试任务正在执行
至此已经将基于openQA的针对指定版本的iso的操作系统的脚本跑起来了