Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
test_crds.sh -- OMUD
09-26-2020, 02:18 PM (This post was last modified: 09-26-2020 03:42 PM by lingu.)
Post: #3
RE: test_crds.sh -- OMUD
delete returns 404, but the test still reports success. That's not good.
Code:
13:16:30 lingu@g1b-2:/home/lingu/forest/prada/prada> make -C procuratorate test                 make: Entering directory '/home/lingu/forest/prada/prada/procuratorate'
./test_crds.sh
casecnt before insert: 109
sending insert request: /thinker/storage/soft/bibo/processed/zengxingliang.json
{
"code": 200,
"msg": "ok",
"children": []
}
insert finished

inserted json case stores in:/thinker/globe/udata/lingu/testy/procuratorate/tests/typical/110/insert.json
inserted json case:
{"type":"insert","query":"","caseid":"","insert":{"keys":[{"key1":"破▒计▒▒信▒系▒","key

...

▒▒巨大▒▒ ▒▒"}}


casecnt after insert: 110

sending delete request: /thinker/storage/soft/bibo/processed/del_zengxingliang.json
{
"code": 404,
"msg": "not found",
"children": [
]
}

delete finished

case content after deleted
{"type": "","query": "","caseid": "___","insert": {"keys": [], "caseid": "___" }}

make: Leaving directory '/home/lingu/forest/prada/prada/procuratorate'
13:16:53 lingu@g1b-2:/home/lingu/forest/prada/prada>

zhihao - pls fix this. On 404, the test should be a failure and the program should scream to die.

It also has a children field. We agreed to remove the children field.
-- i removed the children field for delete in cod://prada commit 56d38f9
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
test_crds.sh -- OMUD - zhihao - 09-25-2020, 12:31 AM
RE: test_crds.sh -- OMUD - lingu - 09-26-2020, 12:41 PM
RE: test_crds.sh -- OMUD - zhihao - 09-26-2020, 04:19 PM
RE: test_crds.sh -- OMUD - lingu - 09-26-2020 02:18 PM
RE: test_crds.sh -- OMUD - lingu - 09-26-2020, 02:30 PM
RE: test_crds.sh -- OMUD - lingu - 09-26-2020, 02:35 PM

Forum Jump: