RCHECKER> (mapcar #'print-log (lparallel:pmapcar #'(lambda(i)(funcall (equeue-new))) (loop :repeat 2 :collect 1) ))
; in: MAPCAR #'PRINT-LOG
; #'(LAMBDA (RCHECKER::I) (FUNCALL (RCHECKER::EQUEUE-NEW)))
;
; caught STYLE-WARNING:
; The variable I is defined but never used.
;
; compilation unit finished
; caught 1 STYLE-WARNING condition
{"id":"wVm8p18VqFhozGwxiBYQc7"}
{"error":{"code":"RollbackException","description":"Error while committing the transaction"}}
Description:Create new queue with predicate 1==1.
Result:pass
Request:curl -s -X POST 'http://192.168.1.197:8090/comms-router-web/api/routers/fjdfGxyOXvJ7L72yX73z31/queues' -H 'Content-type:application/json' -d "{\"description\":\"description\",\"predicate\":\"1==1\"}"
Response:{"id":"wVm8p18VqFhozGwxiBYQc7"}
Checks:ok - publish QUEUE id ->wVm8p18VqFhozGwxiBYQc7
Checks:ok - result contains key "id"
Checks:ok - Response is json
Result:pass
Description:Create new queue with predicate 1==1.
Result:FAIL
Request:curl -s -X POST 'http://192.168.1.197:8090/comms-router-web/api/routers/fjdfGxyOXvJ7L72yX73z31/queues' -H 'Content-type:application/json' -d "{\"description\":\"description\",\"predicate\":\"1==1\"}"
Response:{"error":{"code":"RollbackException","description":"Error while committing the transaction"}}
Checks:FAIL- {"error":{"code":"RollbackException","description":"Error while committing the transaction"}} should have key "id"
Checks:ok - Response is json
Create 2 or more queues in parallel
Result:
{"id":"wVm8p18VqFhozGwxiBYQc7"} {"error":{"code":"RollbackException","description":"Error while committing the transaction"}}
Description:Create new queue with predicate 1==1. Result:pass Request:curl -s -X POST 'http://192.168.1.197:8090/comms-router-web/api/routers/fjdfGxyOXvJ7L72yX73z31/queues' -H 'Content-type:application/json' -d "{\"description\":\"description\",\"predicate\":\"1==1\"}" Response:{"id":"wVm8p18VqFhozGwxiBYQc7"} Checks:ok - publish QUEUE id ->wVm8p18VqFhozGwxiBYQc7 Checks:ok - result contains key "id" Checks:ok - Response is json Result:pass
Description:Create new queue with predicate 1==1. Result:FAIL Request:curl -s -X POST 'http://192.168.1.197:8090/comms-router-web/api/routers/fjdfGxyOXvJ7L72yX73z31/queues' -H 'Content-type:application/json' -d "{\"description\":\"description\",\"predicate\":\"1==1\"}" Response:{"error":{"code":"RollbackException","description":"Error while committing the transaction"}} Checks:FAIL- {"error":{"code":"RollbackException","description":"Error while committing the transaction"}} should have key "id" Checks:ok - Response is json