LinuxSuRen / LinuxSuRen/api-testing

[Bug] ListTestCase interface exec failed.

Open
#459 0 comments 1 reaction 0 assignees View on GitHub
bug legend
Dominant language
Go
Stars
369
Forks
67
PR merge metrics
No merged PRs in 30d

Description

*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.

Contributor guide

Open the contributing guide

Research direction

Start by building and running the server as described with main.go and an extra YAML file in the atest executable directory. Reproduce the failure by creating a test resource and selecting its node, then trace the ListTestCase interface response. Done means the interface no longer returns a 500 when unrelated YAML files are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.