# sort result [
#   'c',
#   'f',
#   'a',
#   'b',
#   'e',
#   'd'
# ]
# [DEBUG] Parsed openrc file t/openrc_example: found variables OS_AUTH_URL,OS_IDENTITY_API_VERSION,OS_IMAGE_API_VERSION,OS_PASSWORD,OS_PROJECT_DOMAIN_NAME,OS_PROJECT_NAME,OS_USERNAME,OS_USER_DOMAIN_NAME
# [DEBUG] REST POST url http://controller:35357/v3/auth/tokens, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST POST full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST POST full body {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}}
# POST: no match cmd found for method POST. success=1 response
# [VERBOSE] Successful REST POST url http://controller:35357/v3/auth/tokens type application/json
# [DEBUG] REST POST full response headers Content-Type=application/json
# [DEBUG] REST POST full response content {"success":1}
# [VERBOSE] login succesful, obtained a token
# [DEBUG] REST GET url http://controller:35357/v3/users?name=existing, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/users?name=existing type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"users":[{"id":2}]}
# [VERBOSE] ID 2 found for user with name existing
# mock_rest: current history [
#   'GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json'
# ]
# [DEBUG] REST GET url http://controller:35357/v3/users/, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/users/ type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"users":[{"description":"existing user (managed by)","email":"e@b","enabled":1,"id":1,"name":"existing"},{"description":"hooba (managed by)","email":"u@b","enabled":1,"id":2,"name":"update"},{"description":"existing user but not managed","email":"i@b","enabled":1,"id":3,"name":"ignore"},{"description":"existing user to be disabled (managed by)","email":"d@b","enabled":1,"id":4,"name":"disable"},{"description":"already disabled existing (managed by)","email":"d@b","enabled":0,"id":5,"name":"alreadydisabled"}]}
# [INFO] Creating users: anewuser
# [DEBUG] REST GET url http://controller:35357/v3/domains?name=somedomain, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/domains?name=somedomain type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"domains":[{"id":"dom123","name":"somedomain"}]}
# [VERBOSE] ID dom123 found for domain with name somedomain
# [DEBUG] REST POST url http://controller:35357/v3/users/, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST POST full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST POST full body {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}}
# [VERBOSE] Successful REST POST url http://controller:35357/v3/users/ type application/json
# [DEBUG] REST POST full response headers Content-Type=application/json
# [DEBUG] REST POST full response content {"user":{"id":123}}
# [VERBOSE] sync: created user anewuser
# [INFO] Possibly updating existing users: existing update
# [DEBUG] REST PATCH url http://controller:35357/v3/users/2, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PATCH full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PATCH full body {"user":{"description":"to be updated (managed by)"}}
# [VERBOSE] Successful REST PATCH url http://controller:35357/v3/users/2 type application/json
# [DEBUG] REST PATCH full response headers Content-Type=application/json
# [DEBUG] REST PATCH full response content {"user":{"id":2}}
# [VERBOSE] sync: updated user update
# [INFO] Updated existing users: update
# [INFO] Disabling existing users: alreadydisabled disable
# [VERBOSE] Not disabling already disabled user alreadydisabled (id 5)
# [DEBUG] REST PATCH url http://controller:35357/v3/users/4, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PATCH full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PATCH full body {"user":{"enabled":false}}
# [VERBOSE] Successful REST PATCH url http://controller:35357/v3/users/4 type application/json
# [DEBUG] REST PATCH full response headers Content-Type=application/json
# [DEBUG] REST PATCH full response content {"user":{"id":4}}
# [VERBOSE] sync: deleted user disable
# sync result {
#   'create' => [
#     [
#       'anewuser',
#       {
#         'id' => 123
#       }
#     ]
#   ],
#   'delete' => [
#     [
#       'disable',
#       {
#         'id' => 4
#       }
#     ]
#   ],
#   'update' => [
#     [
#       'update',
#       {
#         'id' => 2
#       }
#     ]
#   ]
# }
# mock_rest: current history [
#   'GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'POST http://controller:35357/v3/users/ {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PATCH http://controller:35357/v3/users/2 {"user":{"description":"to be updated (managed by)"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PATCH http://controller:35357/v3/users/4 {"user":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json'
# ]
# [DEBUG] REST GET url http://controller:35357/v3/projects?name=hoopla, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/projects?name=hoopla type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"projects":[{"id":2}]}
# [VERBOSE] Found one tagstore project hoopla id 2
# [DEBUG] REST GET url http://controller:35357/v3/projects?name=hoopla, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/projects?name=hoopla type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"projects":[{"id":2}]}
# [VERBOSE] ID 2 found for project with name hoopla
# [VERBOSE] Tagstore for hoopla intialised (id 2)
# [DEBUG] REST GET url http://controller:35357/v3/regions/, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/regions/ type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"regions":[{"enabled":1,"id":"toremove"},{"enabled":1,"id":"toignore"}]}
# [VERBOSE] fetching tagstore data cache
# [DEBUG] REST GET url http://controller:35357/v3/projects?parent_id=2, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/projects?parent_id=2 type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"projects":[{"id":10,"name":"hoopla_4","tags":["ID_region_toremove","ID_endpoint_toremove","ID_endpoint_pub2","ID_endpoint_priv3","ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901","ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9902"]}]}
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [INFO] Creating regions: regone regtwo a2nd
# [DEBUG] REST POST url http://controller:35357/v3/regions/, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST POST full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST POST full body {"region":{"enabled":true,"id":"regone"}}
# [VERBOSE] Successful REST POST url http://controller:35357/v3/regions/ type application/json
# [DEBUG] REST POST full response headers Content-Type=application/json
# [DEBUG] REST POST full response content {"region":{"id":"regone"}}
# [VERBOSE] sync: created region regone
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [VERBOSE] using existing tagstore project 10 for ID_region_regone
# [DEBUG] REST PUT url http://controller:35357/v3/projects/10/tags/ID_region_regone, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/projects/10/tags/ID_region_regone type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [VERBOSE] Added ID_region_regone to tagstore
# [DEBUG] REST POST url http://controller:35357/v3/regions/, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST POST full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST POST full body {"region":{"enabled":true,"id":"regtwo"}}
# [VERBOSE] Successful REST POST url http://controller:35357/v3/regions/ type application/json
# [DEBUG] REST POST full response headers Content-Type=application/json
# [DEBUG] REST POST full response content {"region":{"id":"regtwo"}}
# [VERBOSE] sync: created region regtwo
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [VERBOSE] using existing tagstore project 10 for ID_region_regtwo
# [DEBUG] REST PUT url http://controller:35357/v3/projects/10/tags/ID_region_regtwo, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/projects/10/tags/ID_region_regtwo type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [VERBOSE] Added ID_region_regtwo to tagstore
# [DEBUG] REST POST url http://controller:35357/v3/regions/, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST POST full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST POST full body {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}}
# [VERBOSE] Successful REST POST url http://controller:35357/v3/regions/ type application/json
# [DEBUG] REST POST full response headers Content-Type=application/json
# [DEBUG] REST POST full response content {"region":{"id":"a2nd"}}
# [VERBOSE] sync: created region a2nd
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [VERBOSE] using existing tagstore project 10 for ID_region_a2nd
# [DEBUG] REST PUT url http://controller:35357/v3/projects/10/tags/ID_region_a2nd, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/projects/10/tags/ID_region_a2nd type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [VERBOSE] Added ID_region_a2nd to tagstore
# [VERBOSE] No existing regions to update
# [INFO] Disabling existing regions: toremove
# [DEBUG] REST PATCH url http://controller:35357/v3/regions/toremove, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PATCH full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PATCH full body {"region":{"enabled":false}}
# [VERBOSE] Successful REST PATCH url http://controller:35357/v3/regions/toremove type application/json
# [DEBUG] REST PATCH full response headers Content-Type=application/json
# [DEBUG] REST PATCH full response content {"region":{"id":"toremove"}}
# [VERBOSE] sync: deleted region toremove
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [DEBUG] REST DELETE url http://controller:35357/v3/projects/10/tags/ID_region_toremove, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST DELETE full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# DELETE: no match cmd found for method DELETE. success=1 response
# [VERBOSE] Successful REST DELETE url http://controller:35357/v3/projects/10/tags/ID_region_toremove type application/json
# [DEBUG] REST DELETE full response headers Content-Type=application/json
# [DEBUG] REST DELETE full response content {"success":1}
# [VERBOSE] deleted ID_region_toremove from tagstore
# region result {
#   'create' => [
#     [
#       'regone',
#       {
#         'id' => 'regone'
#       }
#     ],
#     [
#       'regtwo',
#       {
#         'id' => 'regtwo'
#       }
#     ],
#     [
#       'a2nd',
#       {
#         'id' => 'a2nd'
#       }
#     ]
#   ],
#   'delete' => [
#     [
#       'toremove',
#       {
#         'id' => 'toremove'
#       }
#     ]
#   ],
#   'update' => []
# }
# mock_rest: current history [
#   'GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/projects/10/tags/ID_region_regone {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regtwo"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/projects/10/tags/ID_region_regtwo {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/projects/10/tags/ID_region_a2nd {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PATCH http://controller:35357/v3/regions/toremove {"region":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'DELETE http://controller:35357/v3/projects/10/tags/ID_region_toremove  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json'
# ]
# [DEBUG] REST GET url http://controller:35357/v3/endpoints/, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/endpoints/ type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"endpoints":[{"enabled":1,"id":"toremove","interface":"pub","url":"url4"},{"enabled":1,"id":"pub2","interface":"pub","region_id":"regtwo","url":"url2"},{"enabled":1,"id":"priv3","interface":"priv","region_id":"regtwo","url":"url3"},{"enabled":1,"id":"toignore","interface":"pub","url":"url5"}]}
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [INFO] Creating endpoints: int_url1
# [DEBUG] REST POST url http://controller:35357/v3/endpoints/, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST POST full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST POST full body {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}}
# [VERBOSE] Successful REST POST url http://controller:35357/v3/endpoints/ type application/json
# [DEBUG] REST POST full response headers Content-Type=application/json
# [DEBUG] REST POST full response content {"endpoint":{"id":"pub1"}}
# [VERBOSE] sync: created endpoint int_url1
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [VERBOSE] using existing tagstore project 10 for ID_endpoint_pub1
# [DEBUG] REST PUT url http://controller:35357/v3/projects/10/tags/ID_endpoint_pub1, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/projects/10/tags/ID_endpoint_pub1 type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [VERBOSE] Added ID_endpoint_pub1 to tagstore
# [INFO] Possibly updating existing endpoints: priv_url3 pub_url2
# [DEBUG] REST PATCH url http://controller:35357/v3/endpoints/pub2, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PATCH full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PATCH full body {"endpoint":{"region_id":"regone"}}
# [VERBOSE] Successful REST PATCH url http://controller:35357/v3/endpoints/pub2 type application/json
# [DEBUG] REST PATCH full response headers Content-Type=application/json
# [DEBUG] REST PATCH full response content {"endpoint":{"id":"pub2"}}
# [VERBOSE] sync: updated endpoint pub_url2
# [VERBOSE] sync: nothing to do for tagstore postprocessing during update for pub_url2 id pub2
# [INFO] Updated existing endpoints: pub_url2
# [INFO] Disabling existing endpoints: pub_url4
# [DEBUG] REST PATCH url http://controller:35357/v3/endpoints/toremove, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PATCH full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PATCH full body {"endpoint":{"enabled":false}}
# [VERBOSE] Successful REST PATCH url http://controller:35357/v3/endpoints/toremove type application/json
# [DEBUG] REST PATCH full response headers Content-Type=application/json
# [DEBUG] REST PATCH full response content {"endpoint":{"id":"toremove"}}
# [VERBOSE] sync: deleted endpoint pub_url4
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [DEBUG] REST DELETE url http://controller:35357/v3/projects/10/tags/ID_endpoint_toremove, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST DELETE full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# DELETE: no match cmd found for method DELETE. success=1 response
# [VERBOSE] Successful REST DELETE url http://controller:35357/v3/projects/10/tags/ID_endpoint_toremove type application/json
# [DEBUG] REST DELETE full response headers Content-Type=application/json
# [DEBUG] REST DELETE full response content {"success":1}
# [VERBOSE] deleted ID_endpoint_toremove from tagstore
# endpoint result {
#   'create' => [
#     [
#       'int_url1',
#       {
#         'id' => 'pub1'
#       }
#     ]
#   ],
#   'delete' => [
#     [
#       'pub_url4',
#       {
#         'id' => 'toremove'
#       }
#     ]
#   ],
#   'update' => [
#     [
#       'pub_url2',
#       {
#         'id' => 'pub2'
#       }
#     ]
#   ]
# }
# mock_rest: current history [
#   'GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'POST http://controller:35357/v3/endpoints/ {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/projects/10/tags/ID_endpoint_pub1 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PATCH http://controller:35357/v3/endpoints/pub2 {"endpoint":{"region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PATCH http://controller:35357/v3/endpoints/toremove {"endpoint":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'DELETE http://controller:35357/v3/projects/10/tags/ID_endpoint_toremove  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json'
# ]
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [DEBUG] REST GET url http://controller:35357/v3/projects?name=someproj, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/projects?name=someproj type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"projects":[{"id":3}]}
# [VERBOSE] ID 3 found for project with name someproj for role sync
# [DEBUG] REST GET url http://controller:35357/v3/users?name=auser, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/users?name=auser type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"users":[{"id":12333}]}
# [VERBOSE] ID 12333 found for user with name auser for role sync
# [DEBUG] REST GET url http://controller:35357/v3/roles?name=garden, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/roles?name=garden type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"roles":[{"id":9903}]}
# [VERBOSE] ID 9903 found for role with name garden for role sync
# [DEBUG] REST GET url http://controller:35357/v3/roles?name=gnome, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/roles?name=gnome type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"roles":[{"id":9902}]}
# [VERBOSE] ID 9902 found for role with name gnome for role sync
# [DEBUG] REST GET url http://controller:35357/v3/domains?name=somedomain, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/domains?name=somedomain type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"domains":[{"id":"dom123","name":"somedomain"}]}
# [VERBOSE] ID dom123 found for domain with name somedomain for role sync
# [DEBUG] REST GET url http://controller:35357/v3/groups?name=agroup, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/groups?name=agroup type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"groups":[{"id":12345}]}
# [VERBOSE] ID 12345 found for group with name agroup for role sync
# [DEBUG] REST GET url http://controller:35357/v3/roles?name=smurfs, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST GET full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [VERBOSE] Successful REST GET url http://controller:35357/v3/roles?name=smurfs type application/json
# [DEBUG] REST GET full response headers Content-Type=application/json
# [DEBUG] REST GET full response content {"roles":[{"id":9904}]}
# [VERBOSE] ID 9904 found for role with name smurfs for role sync
# [VERBOSE] roles sync: going to add domains/dom123/groups/12345/roles/9904 projects/3/users/12333/roles/9903
# [DEBUG] REST PUT url http://controller:35357/v3/domains/dom123/groups/12345/roles/9904, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/domains/dom123/groups/12345/roles/9904 type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [VERBOSE] using existing tagstore project 10 for ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904
# [DEBUG] REST PUT url http://controller:35357/v3/projects/10/tags/ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/projects/10/tags/ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904 type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [VERBOSE] Added ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904 to tagstore
# [DEBUG] REST PUT url http://controller:35357/v3/projects/3/users/12333/roles/9903, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/projects/3/users/12333/roles/9903 type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [VERBOSE] using existing tagstore project 10 for ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903
# [DEBUG] REST PUT url http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903, body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST PUT full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# [DEBUG] REST PUT full body {}
# PUT: no match cmd found for method PUT. success=1 response
# [VERBOSE] Successful REST PUT url http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903 type application/json
# [DEBUG] REST PUT full response headers Content-Type=application/json
# [DEBUG] REST PUT full response content {"success":1}
# [VERBOSE] Added ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903 to tagstore
# [VERBOSE] roles sync: going to delete projects/3/users/12333/roles/9901
# [DEBUG] REST DELETE url http://controller:35357/v3/projects/3/users/12333/roles/9901, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST DELETE full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# DELETE: no match cmd found for method DELETE. success=1 response
# [VERBOSE] Successful REST DELETE url http://controller:35357/v3/projects/3/users/12333/roles/9901 type application/json
# [DEBUG] REST DELETE full response headers Content-Type=application/json
# [DEBUG] REST DELETE full response content {"success":1}
# [DEBUG] fetch: tagstore cache exists, not doing anything
# [DEBUG] REST DELETE url http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901, no body, headers Accept,Accept-Encoding,Content-Type
# [DEBUG] REST DELETE full headers Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# DELETE: no match cmd found for method DELETE. success=1 response
# [VERBOSE] Successful REST DELETE url http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901 type application/json
# [DEBUG] REST DELETE full response headers Content-Type=application/json
# [DEBUG] REST DELETE full response content {"success":1}
# [VERBOSE] deleted ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901 from tagstore
# mock_rest: current history [
#   'GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/domains/dom123/groups/12345/roles/9904 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/projects/10/tags/ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/projects/3/users/12333/roles/9903 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'PUT http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'DELETE http://controller:35357/v3/projects/3/users/12333/roles/9901  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json',
#   'DELETE http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json'
# ]
t/client-identity-v3.t .. 
# mock_rest importing files to load: identity_v3
# mock_rest _evalfn done: t/rest_data/identity_v3
# mock_rest 24 commands loaded
ok 1 - ordered supported operations (order is meaningful, should not just change)
ok 2 - something sorted according to parenting
ok 3 - example openrc file exists
# mock_rest POST url http://controller:35357/v3/auth/tokens body {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/auth/tokens {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/auth/tokens
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}}
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*( |$) cmd_txt POST
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/auth/tokens {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/auth/tokens
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}}
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*( |$) cmd_txt POST
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/auth/tokens {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/auth/tokens
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}}
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*( |$) cmd_txt POST
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/auth/tokens {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/auth/tokens
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}}
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*( |$) cmd_txt POST
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/auth/tokens {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/auth/tokens
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST {"auth":{"identity":{"methods":["password"],"password":{"user":{"domain":{"name":"Default"},"name":"admin","password":"ADMIN_PASS"}}},"scope":{"project":{"domain":{"name":"Default"},"name":"admin"}}}}
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*( |$) cmd_txt POST
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/users?name=existing body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx 1 pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/users?name=existing
# adding match short userid idx 1 idmatch 0
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/users?name=existing
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'userid'
#   ],
#   [],
#   [],
#   []
# ]
# method_history_ok command pattern 'GET .*/users\?name=existing ' index 0 (full command GET http://controller:35357/v3/users?name=existing  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
ok 4 - get_id uses name parameter
ok 5 - get_id returns id
# mock_rest GET url http://controller:35357/v3/users/ body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/users/
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/users/
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/users/
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/users/
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/users/
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/users/
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/users/
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/users/
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/users/
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/users/
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/users/
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/users/
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/users/
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx 1 pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/users/
# adding match short users idx 1 idmatch 0
# All results res [
#   [],
#   [
#     'users'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/domains?name=somedomain body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx 1 pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# adding match short domains idx 1 idmatch 0
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'domains'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest POST url http://controller:35357/v3/users/ body {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/users/ {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/users/
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}}
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*( |$) cmd_txt POST
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/users/ {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/users/
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}}
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*( |$) cmd_txt POST
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/users/ {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/users/
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}}
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*( |$) cmd_txt POST
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/users/ {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/users/
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}}
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*( |$) cmd_txt POST
# short users_create idx 0 pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/users/ {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# adding match short users_create idx 0 idmatch 0
# All results res [
#   [
#     'users_create'
#   ],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PATCH url http://controller:35357/v3/users/2 body {"user":{"description":"to be updated (managed by)"}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/users/2 {"user":{"description":"to be updated (managed by)"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/users/2
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH {"user":{"description":"to be updated (managed by)"}}
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*( |$) cmd_txt PATCH
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/users/2 {"user":{"description":"to be updated (managed by)"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/users/2
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH {"user":{"description":"to be updated (managed by)"}}
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*( |$) cmd_txt PATCH
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/users/2 {"user":{"description":"to be updated (managed by)"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/users/2
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH {"user":{"description":"to be updated (managed by)"}}
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove( |$) cmd_txt PATCH
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/users/2 {"user":{"description":"to be updated (managed by)"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/users/2
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH {"user":{"description":"to be updated (managed by)"}}
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4( |$) cmd_txt PATCH
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/users/2 {"user":{"description":"to be updated (managed by)"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx 1 pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/users/2
# adding match short users_update idx 1 idmatch 0
# All results res [
#   [],
#   [
#     'users_update'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest PATCH url http://controller:35357/v3/users/4 body {"user":{"enabled":false}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/users/4 {"user":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/users/4
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH {"user":{"enabled":false}}
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*( |$) cmd_txt PATCH
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/users/4 {"user":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/users/4
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH {"user":{"enabled":false}}
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*( |$) cmd_txt PATCH
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/users/4 {"user":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/users/4
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH {"user":{"enabled":false}}
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove( |$) cmd_txt PATCH
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/users/4 {"user":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx 1 pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/users/4
# adding match short users_delete idx 1 idmatch 0
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/users/4 {"user":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/users/4
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH {"user":{"enabled":false}}
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2( |$) cmd_txt PATCH
# All results res [
#   [],
#   [
#     'users_delete'
#   ],
#   [],
#   [],
#   []
# ]
ok 6 - api_identity_sync user returns success
# method_history_ok command pattern 'GET .*/users/' index 0 (full command GET http://controller:35357/v3/users/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'POST .*/users/ .*"description":"new user","domain_id":"dom123","email":"a@b","enabled":true.*name":"anewuser' index 2 (full command POST http://controller:35357/v3/users/ {"user":{"description":"new user","domain_id":"dom123","email":"a@b","enabled":true,"name":"anewuser"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PATCH .*/users/2 .*description":' index 3 (full command PATCH http://controller:35357/v3/users/2 {"user":{"description":"to be updated (managed by)"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PATCH .*/users/4 .*enabled":false' index 4 (full command PATCH http://controller:35357/v3/users/4 {"user":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
ok 7 - users created/updated/disabled; nothing done for certain existing users
# mock_rest GET url http://controller:35357/v3/projects?name=hoopla body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx 1 pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# adding match short mainprojid idx 1 idmatch 0
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'mainprojid'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/projects?name=hoopla body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx 1 pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# adding match short mainprojid idx 1 idmatch 0
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?name=hoopla
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'mainprojid'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/regions/ body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/regions/
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/regions/
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/regions/
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/regions/
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/regions/
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/regions/
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx 1 pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/regions/
# adding match short regions idx 1 idmatch 0
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/regions/
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/regions/
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/regions/
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/regions/
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/regions/
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/regions/
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/regions/
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'regions'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/projects?parent_id=2 body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx 1 pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# adding match short existingchildproj idx 1 idmatch 0
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?parent_id=2
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'existingchildproj'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest POST url http://controller:35357/v3/regions/ body {"region":{"enabled":true,"id":"regone"}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/regions/
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST {"region":{"enabled":true,"id":"regone"}}
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*( |$) cmd_txt POST
# short region1 idx 0 pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# adding match short region1 idx 0 idmatch 0
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/regions/
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST {"region":{"enabled":true,"id":"regone"}}
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*( |$) cmd_txt POST
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/regions/
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST {"region":{"enabled":true,"id":"regone"}}
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*( |$) cmd_txt POST
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/regions/
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST {"region":{"enabled":true,"id":"regone"}}
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*( |$) cmd_txt POST
# All results res [
#   [
#     'region1'
#   ],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/projects/10/tags/ID_region_regone body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest POST url http://controller:35357/v3/regions/ body {"region":{"enabled":true,"id":"regtwo"}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regtwo"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/regions/
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST {"region":{"enabled":true,"id":"regtwo"}}
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*( |$) cmd_txt POST
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regtwo"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/regions/
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST {"region":{"enabled":true,"id":"regtwo"}}
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*( |$) cmd_txt POST
# short region2 idx 0 pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regtwo"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# adding match short region2 idx 0 idmatch 0
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regtwo"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/regions/
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST {"region":{"enabled":true,"id":"regtwo"}}
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*( |$) cmd_txt POST
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regtwo"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/regions/
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST {"region":{"enabled":true,"id":"regtwo"}}
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*( |$) cmd_txt POST
# All results res [
#   [
#     'region2'
#   ],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/projects/10/tags/ID_region_regtwo body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest POST url http://controller:35357/v3/regions/ body {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/regions/
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}}
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint1 idx undef pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*( |$) cmd_txt POST
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/regions/
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}}
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*( |$) cmd_txt POST
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/regions/
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}}
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*( |$) cmd_txt POST
# short region2b idx 0 pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# adding match short region2b idx 0 idmatch 0
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/regions/
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}}
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*( |$) cmd_txt POST
# All results res [
#   [
#     'region2b'
#   ],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/projects/10/tags/ID_region_a2nd body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PATCH url http://controller:35357/v3/regions/toremove body {"region":{"enabled":false}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/regions/toremove {"region":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/regions/toremove
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH {"region":{"enabled":false}}
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*( |$) cmd_txt PATCH
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/regions/toremove {"region":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/regions/toremove
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH {"region":{"enabled":false}}
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*( |$) cmd_txt PATCH
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/regions/toremove {"region":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx 1 pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/regions/toremove
# adding match short region_delete idx 1 idmatch 0
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/regions/toremove {"region":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/regions/toremove
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH {"region":{"enabled":false}}
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4( |$) cmd_txt PATCH
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/regions/toremove {"region":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/regions/toremove
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH {"region":{"enabled":false}}
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2( |$) cmd_txt PATCH
# All results res [
#   [],
#   [
#     'region_delete'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest DELETE url http://controller:35357/v3/projects/10/tags/ID_region_toremove body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
ok 8 - region sync ok
# method_history_ok command pattern 'GET http://controller:35357/v3/projects[?]name=hoopla ' index 0 (full command GET http://controller:35357/v3/projects?name=hoopla  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'GET .*/regions/' index 2 (full command GET http://controller:35357/v3/regions/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'GET http://controller:35357/v3/projects[?]parent_id=2 ' index 3 (full command GET http://controller:35357/v3/projects?parent_id=2  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'POST .*/regions/ .*enabled":true.*"id":"regone' index 4 (full command POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT http://controller:35357/v3/projects/10/tags/ID_region_regone \{\} ' index 5 (full command PUT http://controller:35357/v3/projects/10/tags/ID_region_regone {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'POST .*/regions/ .*"id":"regtwo' index 6 (full command POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"regtwo"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT http://controller:35357/v3/projects/10/tags/ID_region_regtwo \{\} ' index 7 (full command PUT http://controller:35357/v3/projects/10/tags/ID_region_regtwo {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'POST .*/regions/ .*"id":"a2nd".*parent_region_id":"regone"' index 8 (full command POST http://controller:35357/v3/regions/ {"region":{"enabled":true,"id":"a2nd","parent_region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT http://controller:35357/v3/projects/10/tags/ID_region_a2nd \{\} ' index 9 (full command PUT http://controller:35357/v3/projects/10/tags/ID_region_a2nd {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PATCH http://controller:35357/v3/regions/toremove .*"enabled":false.* ' index 10 (full command PATCH http://controller:35357/v3/regions/toremove {"region":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'DELETE http://controller:35357/v3/projects/10/tags/ID_region_toremove ' index 11 (full command DELETE http://controller:35357/v3/projects/10/tags/ID_region_toremove  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
ok 9 - regions created in order
# mock_rest GET url http://controller:35357/v3/endpoints/ body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/endpoints/
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/endpoints/
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/endpoints/
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx 1 pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/endpoints/
# adding match short endpoints idx 1 idmatch 0
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/endpoints/
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/endpoints/
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/endpoints/
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/endpoints/
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/endpoints/
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/endpoints/
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/endpoints/
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/endpoints/
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/endpoints/
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/endpoints/
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'endpoints'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest POST url http://controller:35357/v3/endpoints/ body {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint1 idx 0 pat ^POST http://controller:35357/v3/endpoints/ .*int.*url1.*$ cmd_txt POST http://controller:35357/v3/endpoints/ {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# adding match short endpoint1 idx 0 idmatch 0
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/endpoints/ {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST http://controller:35357/v3/endpoints/
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}}
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region1 idx undef pat ^POST http://controller:35357/v3/regions/ .*"id":"regone.*( |$) cmd_txt POST
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/endpoints/ {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST http://controller:35357/v3/endpoints/
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}}
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2 idx undef pat ^POST http://controller:35357/v3/regions/ .*regtwo.*( |$) cmd_txt POST
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/endpoints/ {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST http://controller:35357/v3/endpoints/
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}}
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region2b idx undef pat ^POST http://controller:35357/v3/regions/ .*a2nd.*( |$) cmd_txt POST
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/endpoints/ {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST http://controller:35357/v3/endpoints/
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}}
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*$ cmd_txt POST Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_create idx undef pat ^POST http://controller:35357/v3/users/ .*"description":"new user","domain_id":"dom123".*?anewuser.*( |$) cmd_txt POST
# All results res [
#   [
#     'endpoint1'
#   ],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/projects/10/tags/ID_endpoint_pub1 body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PATCH url http://controller:35357/v3/endpoints/pub2 body {"endpoint":{"region_id":"regone"}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint2 idx 0 pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2 {"endpoint":{"region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# adding match short endpoint2 idx 0 idmatch 0
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2 {"endpoint":{"region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH {"endpoint":{"region_id":"regone"}}
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint4 idx undef pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*( |$) cmd_txt PATCH
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2 {"endpoint":{"region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH {"endpoint":{"region_id":"regone"}}
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove( |$) cmd_txt PATCH
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2 {"endpoint":{"region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH {"endpoint":{"region_id":"regone"}}
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4( |$) cmd_txt PATCH
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2 {"endpoint":{"region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/endpoints/pub2
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH {"endpoint":{"region_id":"regone"}}
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2( |$) cmd_txt PATCH
# All results res [
#   [
#     'endpoint2'
#   ],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PATCH url http://controller:35357/v3/endpoints/toremove body {"endpoint":{"enabled":false}}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove {"endpoint":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH {"endpoint":{"enabled":false}}
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoint2 idx undef pat ^PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*( |$) cmd_txt PATCH
# short endpoint4 idx 0 pat ^PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove {"endpoint":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# adding match short endpoint4 idx 0 idmatch 0
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove {"endpoint":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH {"endpoint":{"enabled":false}}
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short region_delete idx undef pat ^PATCH http://controller:35357/v3/regions/toremove( |$) cmd_txt PATCH
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove {"endpoint":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH {"endpoint":{"enabled":false}}
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_delete idx undef pat ^PATCH http://controller:35357/v3/users/4( |$) cmd_txt PATCH
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove {"endpoint":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH http://controller:35357/v3/endpoints/toremove
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH {"endpoint":{"enabled":false}}
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2$ cmd_txt PATCH Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users_update idx undef pat ^PATCH http://controller:35357/v3/users/2( |$) cmd_txt PATCH
# All results res [
#   [
#     'endpoint4'
#   ],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest DELETE url http://controller:35357/v3/projects/10/tags/ID_endpoint_toremove body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
ok 10 - endpoint sync ok
# method_history_ok command pattern 'GET http://controller:35357/v3/endpoints/  ' index 0 (full command GET http://controller:35357/v3/endpoints/  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'POST http://controller:35357/v3/endpoints/ .*"enabled":true,"interface":"int","region_id":"regone","url":"url1".*' index 1 (full command POST http://controller:35357/v3/endpoints/ {"endpoint":{"enabled":true,"interface":"int","region_id":"regone","url":"url1"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT http://controller:35357/v3/projects/10/tags/ID_endpoint_pub1 ' index 2 (full command PUT http://controller:35357/v3/projects/10/tags/ID_endpoint_pub1 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PATCH http://controller:35357/v3/endpoints/pub2 .*"region_id":"regone".*' index 3 (full command PATCH http://controller:35357/v3/endpoints/pub2 {"endpoint":{"region_id":"regone"}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PATCH http://controller:35357/v3/endpoints/toremove .*"enabled":false.*' index 4 (full command PATCH http://controller:35357/v3/endpoints/toremove {"endpoint":{"enabled":false}} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
ok 11 - endpoints synced
# mock_rest GET url http://controller:35357/v3/projects?name=someproj body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx 1 pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# adding match short someprojid idx 1 idmatch 0
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/projects?name=someproj
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'someprojid'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/users?name=auser body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx 1 pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/users?name=auser
# adding match short auser idx 1 idmatch 0
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/users?name=auser
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'auser'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/roles?name=garden body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx 1 pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# adding match short rgarden idx 1 idmatch 0
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/roles?name=garden  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/roles?name=garden
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'rgarden'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/roles?name=gnome body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx 1 pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# adding match short rgnome idx 1 idmatch 0
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/roles?name=gnome  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/roles?name=gnome
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'rgnome'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/domains?name=somedomain body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx 1 pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# adding match short domains idx 1 idmatch 0
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/domains?name=somedomain
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'domains'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/groups?name=agroup body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx 1 pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# adding match short agroup idx 1 idmatch 0
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET 
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs( |$) cmd_txt GET
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/groups?name=agroup
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'agroup'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest GET url http://controller:35357/v3/roles?name=smurfs body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET 
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short agroup idx undef pat ^GET http://controller:35357/v3/groups[?]name=agroup( |$) cmd_txt GET
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET 
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short auser idx undef pat ^GET http://controller:35357/v3/users[?]name=auser( |$) cmd_txt GET
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET 
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short domains idx undef pat ^GET http://controller:35357/v3/domains[?]name=somedomain( |$) cmd_txt GET
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET 
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short endpoints idx undef pat ^GET http://controller:35357/v3/endpoints/( |$) cmd_txt GET
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET 
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short existingchildproj idx undef pat ^GET http://controller:35357/v3/projects[?]parent_id=2( |$) cmd_txt GET
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET 
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short mainprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=hoopla( |$) cmd_txt GET
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET 
# short regions idx undef pat ^GET http://controller:35357/v3/regions/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short regions idx undef pat ^GET http://controller:35357/v3/regions/( |$) cmd_txt GET
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET 
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgarden idx undef pat ^GET http://controller:35357/v3/roles[?]name=garden( |$) cmd_txt GET
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET 
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rgnome idx undef pat ^GET http://controller:35357/v3/roles[?]name=gnome( |$) cmd_txt GET
# short rsmurfs idx undef pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsmurfs idx 1 pat ^GET http://controller:35357/v3/roles[?]name=smurfs$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# adding match short rsmurfs idx 1 idmatch 0
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET 
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short rsuperman idx undef pat ^GET http://controller:35357/v3/roles[?]name=superman( |$) cmd_txt GET
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET 
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short someprojid idx undef pat ^GET http://controller:35357/v3/projects[?]name=someproj( |$) cmd_txt GET
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET 
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short userid idx undef pat ^GET http://controller:35357/v3/users[?]name=existing( |$) cmd_txt GET
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET http://controller:35357/v3/roles?name=smurfs
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET 
# short users idx undef pat ^GET http://controller:35357/v3/users/$ cmd_txt GET Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json
# short users idx undef pat ^GET http://controller:35357/v3/users/( |$) cmd_txt GET
# All results res [
#   [],
#   [
#     'rsmurfs'
#   ],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/domains/dom123/groups/12345/roles/9904 body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/projects/10/tags/ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904 body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/projects/3/users/12333/roles/9903 body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest PUT url http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903 body {}{
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest DELETE url http://controller:35357/v3/projects/3/users/12333/roles/9901 body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
# mock_rest DELETE url http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901 body {
#   'Accept' => 'application/json, text/plain',
#   'Accept-Encoding' => 'identity, gzip, deflate, compress',
#   'Content-Type' => 'application/json'
# }
# All results res [
#   [],
#   [],
#   [],
#   [],
#   []
# ]
ok 12 - sync_rolemap ok
# method_history_ok command pattern 'GET .*/projects[?]name=someproj ' index 0 (full command GET http://controller:35357/v3/projects?name=someproj  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'GET .*/users[?]name=auser ' index 1 (full command GET http://controller:35357/v3/users?name=auser  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'GET .*/domains[?]name=somedomain ' index 4 (full command GET http://controller:35357/v3/domains?name=somedomain  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'GET .*/groups[?]name=agroup ' index 5 (full command GET http://controller:35357/v3/groups?name=agroup  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT .*/domains/dom123/groups/12345/roles/9904 \{\} ' index 7 (full command PUT http://controller:35357/v3/domains/dom123/groups/12345/roles/9904 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT .*/projects/10/tags/ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904 \{\} ' index 8 (full command PUT http://controller:35357/v3/projects/10/tags/ROLE_domains%2Fdom123%2Fgroups%2F12345%2Froles%2F9904 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT .*/projects/3/users/12333/roles/9903 \{\} ' index 9 (full command PUT http://controller:35357/v3/projects/3/users/12333/roles/9903 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'PUT .*/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903 \{\} ' index 10 (full command PUT http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9903 {} Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'DELETE .*/projects/3/users/12333/roles/9901 ' index 11 (full command DELETE http://controller:35357/v3/projects/3/users/12333/roles/9901  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
# method_history_ok command pattern 'DELETE .*/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901 ' index 12 (full command DELETE http://controller:35357/v3/projects/10/tags/ROLE_projects%2F3%2Fusers%2F12333%2Froles%2F9901  Accept=application/json, text/plain,Accept-Encoding=identity, gzip, deflate, compress,Content-Type=application/json); continue
ok 13 - roles created/deleted
ok 14 - no (unexpected) warnings (via done_testing)
1..14
ok
All tests successful.
Files=1, Tests=14,  0 wallclock secs ( 0.09 usr  0.01 sys +  0.26 cusr  0.01 csys =  0.37 CPU)
Result: PASS
