ceph / ceph/s3-tests

s3select:test_generate_projection wrong index of split

Open Beginner friendly
#509 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
372
Forks
328
PR merge metrics
No merged PRs in 30d

Description

In s3select:test_generate_projection test, the response is split, but the wrong index is taken.
This fix can make the test pass:

orig: assert( abs(float(res.split("\n")[1]) - eval(e)) < epsilon )
fix: assert( abs(float(res.split("\n")[0]) - eval(e)) < epsilon )

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the s3select:test_generate_projection test and inspect the assertion that splits the response on "\n". Change the selected split index as described, then run the test and confirm that it passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.