Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testshell_markdown_kdb_ls fails on additional keys #2440

Open
markus2330 opened this Issue Feb 26, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@markus2330
Copy link
Contributor

markus2330 commented Feb 26, 2019

Steps to Reproduce the Problem

Have some keys in /tests/examples/kdb-ls (but not in user/tests/examples/kdb-ls)
Run testshell_markdown_kdb_ls

Expected Result

Either successful testcase or some error that test environment is dirty.

Actual Result

        Start 167: testshell_markdown_kdb_ls
  1/213 Test #167: testshell_markdown_kdb_ls ................***Failed    1.20 sec
Input: /home/markus/Projekte/Elektra/build-64/elektra-0.8.26/doc/help/kdb-ls.md
kdb mount ls.ecf user/tests/examples dump
kdb set user/tests/examples/kdb-ls/test val1
kdb set user/tests/examples/kdb-ls/test/foo/bar val2
kdb set user/tests/examples/kdb-ls/test/fizz/buzz fizzbuzz
kdb set user/tests/examples/kdb-ls/tost val3
kdb set user/tests/examples/kdb-ls/tost/level lvl
kdb ls /tests/examples/kdb-ls
kdb ls /tests/examples/kdb-ls/ --max-depth=1
kdb ls /tests/examples/kdb-ls --max-depth=1
kdb ls /tests/examples/kdb-ls --min-depth=1 --max-depth=2
kdb ls /tests/examples/kdb-ls/test
kdb ls /tests/examples/kdb-ls/ -v

ERROR - STDOUT:
“size of all keys in mount point: 11
size of requested keys: 5
user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar
user/tests/examples/kdb-ls/tost
user/tests/examples/kdb-ls/tost/level”
does not match
“size of all keys in mount point: 5⏎size of requested keys: 5⏎user/tests/examples/kdb-ls/test⏎user/tests/examples/kdb-ls/test/fizz/buzz⏎user/tests/examples/kdb-ls/test/foo/bar⏎user/tests/examples/kdb-ls/tost⏎user/tests/examples/kdb-ls/tost/level”

kdb rm -r user/tests/examples
kdb umount user/tests/examples
shell_recorder /tmp/tmp.7t2fZY52uJ RESULTS: 19 test(s) done 1 error(s).

—— Protocol ————————————————————————————————————————————————————
CMD: kdb mount ls.ecf user/tests/examples dump
RET: 0

CMD: kdb set user/tests/examples/kdb-ls/test val1
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/test with string "val1"

CMD: kdb set user/tests/examples/kdb-ls/test/foo/bar val2
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/test/foo/bar with string "val2"

CMD: kdb set user/tests/examples/kdb-ls/test/fizz/buzz fizzbuzz
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/test/fizz/buzz with string "fizzbuzz"

CMD: kdb set user/tests/examples/kdb-ls/tost val3
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/tost with string "val3"

CMD: kdb set user/tests/examples/kdb-ls/tost/level lvl
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/tost/level with string "lvl"

CMD: kdb ls /tests/examples/kdb-ls
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar
user/tests/examples/kdb-ls/tost
user/tests/examples/kdb-ls/tost/level

CMD: kdb ls /tests/examples/kdb-ls/ --max-depth=1
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/tost

CMD: kdb ls /tests/examples/kdb-ls --max-depth=1
RET: 0

CMD: kdb ls /tests/examples/kdb-ls --min-depth=1 --max-depth=2
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/tost

CMD: kdb ls /tests/examples/kdb-ls/test
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar

CMD: kdb ls /tests/examples/kdb-ls/ -v
RET: 0
STDOUT: size of all keys in mount point: 11
size of requested keys: 5
user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar
user/tests/examples/kdb-ls/tost
user/tests/examples/kdb-ls/tost/level
=== FAILED stdout does not match expected pattern size of all keys in mount point: 5⏎size of requested keys: 5⏎user/tests/examples/kdb-ls/test⏎user/tests/examples/kdb-ls/test/fizz/buzz⏎user/tests/examples/kdb-ls/test/foo/bar⏎user/tests/examples/kdb-ls/tost⏎user/tests/examples/kdb-ls/tost/level

CMD: kdb rm -r user/tests/examples
RET: 0

CMD: kdb umount user/tests/examples
RET: 0
————————————————————————————————————————————————————————————————

System Information

  • Elektra Version: master
  • Operating System or Docker Container?
  • Versions of other relevant software?

Further Log Files and Output

@markus2330 markus2330 added this to the 0.8.27 milestone Feb 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.