e2e test for 云原生构建
.cnb.yml 文件写在 test 中,支持任意目录层次,
文件名固定为.cnb.yml,
分支固定为main,
事件名固定为api_trigger_test。
示例 test/example/export-env/.cnb.yml:
main:
api_trigger_test:
- stages:
- name: echo name and set env
script: echo tom
exports:
stdout: NAME
- name: echo env name
script: echo $NAME
这些配置文件会先追加控制内容再被触发,流水线成功则执行下一个流水线,通过机器人oci-e2e发送失败或全部成功的通知。
测试案例流水线执行成功则代表测试案例通过,流水线失败则表示测试案例失败。请在测试案例配置文件中做好校验。