2.7. 安装外部插件
您可以安装外部插件,如 barbican-tempest-plugin
。
注意
barbican-tempest-plugin
包含在镜像 registry.redhat.io/rhoso/openstack-tempest-all-rhel9:18.0
中,作为示例所示。如果您使用不支持的外部插件,请确保谨慎操作。
流程
编辑 Tempest 测试配置文件,例如使用
vim
:$ vim <Tempest_config>
-
将
<Tempest_config
> 替换为 Tempest 测试配置文件的名称,如test_v1beta1_tempest.yaml
。
-
将
添加
externalPlugin
选项,或者取消 Tempest 测试配置文件中的相关行的注释:externalPlugin: - repository: "https://opendev.org/openstack/barbican-tempest-plugin.git"
- 保存并关闭 Tempest 测试配置文件。
为 Tempest 测试创建新 pod:
$ oc apply -f <Tempest_config>
-
将
<Tempest_config
> 替换为 Tempest 测试配置文件的名称,如test_v1beta1_tempest.yaml
。
-
将
验证
获取您在上一步中创建的 pod 的名称和状态:
$ oc get pods | grep -i <pod_name>
-
将 <
pod_name
> 替换为您在 Tempest 自定义资源配置文件中指定的名称,如tempest-tests
,或者只能使用$ oc get pods
并搜索相关的 pod。