Generated by TestNG with ReportNG at 22:35 PDT on Wednesday 22 September 2021
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.943s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2021-09-22 22:53:07 |

2021-09-22 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:07 | ------------------------------------

2021-09-22 22:53:07 | [Mutex] waiting for: [configured:node:node-59bcf795-0149-42f0-89fc-e94e39ecdebc:node-c400a2d1-d646-4e82-8c09-64aa4feb1796]

2021-09-22 22:53:07 | [Mutex] received everything.

2021-09-22 22:53:07 | [Mutex] isItemNotified: configured:node:node-59bcf795-0149-42f0-89fc-e94e39ecdebc:node-c400a2d1-d646-4e82-8c09-64aa4feb1796 :: true

2021-09-22 22:53:08 | [Mutex] waiting for: [received:nodes:7fe38669-76e3-4fc5-bbd4-0433a2471145:localhost]

2021-09-22 22:53:08 | [Mutex] received everything.

2021-09-22 22:53:08 | [Mutex] isItemNotified: received:node:7fe38669-76e3-4fc5-bbd4-0433a2471145:localhost:node-59bcf795-0149-42f0-89fc-e94e39ecdebc:Node 59bcf795-0149-42f0-89fc-e94e39ecdebc :: true

2021-09-22 22:53:08 | [Mutex] waiting for: [received:nodes:0f05eba1-fcbc-4b15-941a-dfd9fe566846:localhost]

2021-09-22 22:53:08 | [Mutex] waiting for: [received:nodes:0f05eba1-fcbc-4b15-941a-dfd9fe566846:localhost]

2021-09-22 22:53:08 | [Mutex] received everything.

2021-09-22 22:53:08 | [Mutex] isItemNotified: received:node:0f05eba1-fcbc-4b15-941a-dfd9fe566846:localhost:node-59bcf795-0149-42f0-89fc-e94e39ecdebc:Node 59bcf795-0149-42f0-89fc-e94e39ecdebc :: false

createNodes 1.591s
2021-09-22 22:53:05 |

2021-09-22 22:53:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:05 | ------------------------------------

2021-09-22 22:53:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
    "pubsub#title": "Node 59bcf795-0149-42f0-89fc-e94e39ecdebc"
}

2021-09-22 22:53:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-22 22:53:06 | [Mutex] waiting for: [received:nodes:63f1fc25-d897-4050-bf5a-af642f0c3c63:localhost]

2021-09-22 22:53:06 | [Mutex] received everything.

2021-09-22 22:53:06 | [Mutex] isItemNotified: received:node:63f1fc25-d897-4050-bf5a-af642f0c3c63:localhost:node-59bcf795-0149-42f0-89fc-e94e39ecdebc:Node 59bcf795-0149-42f0-89fc-e94e39ecdebc :: true

createSubnodes 1.031s
2021-09-22 22:53:06 |

2021-09-22 22:53:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:06 | ------------------------------------

2021-09-22 22:53:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c400a2d1-d646-4e82-8c09-64aa4feb1796",
    "pubsub#title": "Node c400a2d1-d646-4e82-8c09-64aa4feb1796"
}

2021-09-22 22:53:06 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-22 22:53:07 | [Mutex] waiting for: [received:nodes:54df18cb-dfbd-4bba-a6c8-22c4f0089b20:localhost]

2021-09-22 22:53:07 | [Mutex] received everything.

2021-09-22 22:53:07 | [Mutex] isItemNotified: received:node:54df18cb-dfbd-4bba-a6c8-22c4f0089b20:localhost:node-c400a2d1-d646-4e82-8c09-64aa4feb1796:Node c400a2d1-d646-4e82-8c09-64aa4feb1796 :: true

deleteNodes 1.019s
2021-09-22 22:53:12 |

2021-09-22 22:53:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:12 | ------------------------------------

2021-09-22 22:53:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c400a2d1-d646-4e82-8c09-64aa4feb1796"
}

2021-09-22 22:53:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-22 22:53:13 | [Mutex] waiting for: [received:nodes:de0dc6f4-2910-4145-be8e-57515df5b04a:localhost]

2021-09-22 22:53:13 | [Mutex] received everything.

2021-09-22 22:53:13 | [Mutex] isItemNotified: received:node:de0dc6f4-2910-4145-be8e-57515df5b04a:localhost:node-c400a2d1-d646-4e82-8c09-64aa4feb1796:Node c400a2d1-d646-4e82-8c09-64aa4feb1796 :: false

deleteSubnodes 1.028s
2021-09-22 22:53:11 |

2021-09-22 22:53:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:11 | ------------------------------------

2021-09-22 22:53:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc"
}

2021-09-22 22:53:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-22 22:53:12 | [Mutex] waiting for: [received:nodes:a6012a7e-7890-4983-a62a-c17f3c6f9d33:localhost]

2021-09-22 22:53:12 | [Mutex] waiting for: [received:nodes:a6012a7e-7890-4983-a62a-c17f3c6f9d33:localhost]

2021-09-22 22:53:12 | [Mutex] received everything.

2021-09-22 22:53:12 | [Mutex] isItemNotified: received:node:a6012a7e-7890-4983-a62a-c17f3c6f9d33:localhost:node-59bcf795-0149-42f0-89fc-e94e39ecdebc:Node 59bcf795-0149-42f0-89fc-e94e39ecdebc :: false

2021-09-22 22:53:12 | [Mutex] waiting for: [received:nodes:aadd60d1-136d-41ef-beb8-32bcb6a0241f:localhost]

2021-09-22 22:53:12 | [Mutex] received everything.

2021-09-22 22:53:12 | [Mutex] isItemNotified: received:node:aadd60d1-136d-41ef-beb8-32bcb6a0241f:localhost:node-59bcf795-0149-42f0-89fc-e94e39ecdebc:Node 59bcf795-0149-42f0-89fc-e94e39ecdebc :: false

publishItemsToNodes 0.041s
2021-09-22 22:53:09 |

2021-09-22 22:53:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:09 | ------------------------------------

2021-09-22 22:53:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
    "entry": "<test>item-584dda85-933c-45d7-96a8-6c83f765ed54</test>",
    "item-id": "item-584dda85-933c-45d7-96a8-6c83f765ed54"
}

2021-09-22 22:53:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-584dda85-933c-45d7-96a8-6c83f765ed54"
}

2021-09-22 22:53:09 | [Mutex] waiting for: [published:item:notifieditem-584dda85-933c-45d7-96a8-6c83f765ed54:admin@test-domain.com]

2021-09-22 22:53:09 | [Mutex] received everything.

2021-09-22 22:53:09 | [Mutex] isItemNotified: published:item:notifieditem-584dda85-933c-45d7-96a8-6c83f765ed54:admin@test-domain.com :: true

retractItemsFromNodes 0.100s
2021-09-22 22:53:10 |

2021-09-22 22:53:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:10 | ------------------------------------

2021-09-22 22:53:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
    "item-id": "item-584dda85-933c-45d7-96a8-6c83f765ed54"
}

2021-09-22 22:53:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-584dda85-933c-45d7-96a8-6c83f765ed54"
}

2021-09-22 22:53:10 | [Mutex] waiting for: [retracted:item:notifieditem-584dda85-933c-45d7-96a8-6c83f765ed54:admin@test-domain.com]

2021-09-22 22:53:10 | [Mutex] received everything.

2021-09-22 22:53:10 | [Mutex] isItemNotified: retracted:item:notifieditem-584dda85-933c-45d7-96a8-6c83f765ed54:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2021-09-22 22:53:09 |

2021-09-22 22:53:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:09 | ------------------------------------

2021-09-22 22:53:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
    "item-id": "item-584dda85-933c-45d7-96a8-6c83f765ed54"
}

2021-09-22 22:53:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
    "item-id": "item-584dda85-933c-45d7-96a8-6c83f765ed54",
    "item": [
        "<item id=\"item-584dda85-933c-45d7-96a8-6c83f765ed54\"><test>item-584dda85-933c-45d7-96a8-6c83f765ed54</test></item>"
    ]
}

2021-09-22 22:53:09 | [Mutex] notify: [retrieved:item:item-584dda85-933c-45d7-96a8-6c83f765ed54:payload-matches:true:localhost]

2021-09-22 22:53:09 | [Mutex] received everything.

2021-09-22 22:53:09 | [Mutex] isItemNotified: retrieved:item:item-584dda85-933c-45d7-96a8-6c83f765ed54:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-09-22 22:53:09 |

2021-09-22 22:53:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:09 | ------------------------------------

2021-09-22 22:53:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-22 22:53:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
        "node-c400a2d1-d646-4e82-8c09-64aa4feb1796"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-09-22 22:53:10 |

2021-09-22 22:53:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:10 | ------------------------------------

2021-09-22 22:53:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-59bcf795-0149-42f0-89fc-e94e39ecdebc)"
}

2021-09-22 22:53:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-09-22 22:53:08 |

2021-09-22 22:53:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:08 | ------------------------------------

2021-09-22 22:53:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-22 22:53:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2021-09-22 22:53:10 |

2021-09-22 22:53:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-22 22:53:10 | ------------------------------------

2021-09-22 22:53:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-59bcf795-0149-42f0-89fc-e94e39ecdebc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-22 22:53:10 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}