LinuxSuRen / LinuxSuRen/api-testing

[Bug] ListTestCase interface exec failed.

未关闭
#459 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug legend
主要语言
Go
星标
369
派生
67
PR 合并指标
30 天内没有已合并 PR

描述

*Description*:
The ListTestCase interface throws a 500 exception when a test resource yaml file other than the one created exists in the atest directory.

![f6fa0ffe2f1074d7e1565957df2b25d](https://github.com/LinuxSuRen/api-testing/assets/77964041/22b1f5e9-9004-426f-81f1-6a19a76e7a3a)

*Repro steps*:

1. git pull repo
2. go build -o atest main.go
3. ./atest server
4. access front page and new create test resource.
5. then click node.

>**Note**: If there are privacy concerns, sanitize the data prior to

caused by the presence of yaml files other than the test resource file in the atest executable directory.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,按照说明使用 main.go 和 atest 可执行文件目录中的额外 YAML 文件构建并运行服务器。创建一个测试资源并选择其节点来重现故障,然后跟踪 ListTestCase 接口的响应。当存在无关的 YAML 文件时接口不再返回 500,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
api, testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。