Generated by TestNG with ReportNG at 22:19 PDT on Monday 08 August 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.852s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2022-08-08 22:34:13 |

2022-08-08 22:34:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:13 | ------------------------------------

2022-08-08 22:34:13 | [Mutex] waiting for: [configured:node:node-47c526d0-10d2-4b5f-9905-7f55dfa583b4:node-e8feda1f-53dc-462e-9854-435a9f44344c]

2022-08-08 22:34:13 | [Mutex] received everything.

2022-08-08 22:34:13 | [Mutex] isItemNotified: configured:node:node-47c526d0-10d2-4b5f-9905-7f55dfa583b4:node-e8feda1f-53dc-462e-9854-435a9f44344c :: true

2022-08-08 22:34:14 | [Mutex] waiting for: [received:nodes:a38f0db7-4e36-40f2-919b-4f4b47d2da02:localhost]

2022-08-08 22:34:14 | [Mutex] received everything.

2022-08-08 22:34:14 | [Mutex] isItemNotified: received:node:a38f0db7-4e36-40f2-919b-4f4b47d2da02:localhost:node-47c526d0-10d2-4b5f-9905-7f55dfa583b4:Node 47c526d0-10d2-4b5f-9905-7f55dfa583b4 :: true

2022-08-08 22:34:14 | [Mutex] waiting for: [received:nodes:a8402eb8-3231-4f04-b6e2-957e8c80c798:localhost]

2022-08-08 22:34:14 | [Mutex] received everything.

2022-08-08 22:34:14 | [Mutex] isItemNotified: received:node:a8402eb8-3231-4f04-b6e2-957e8c80c798:localhost:node-47c526d0-10d2-4b5f-9905-7f55dfa583b4:Node 47c526d0-10d2-4b5f-9905-7f55dfa583b4 :: false

createNodes 1.815s
2022-08-08 22:34:10 |

2022-08-08 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:10 | ------------------------------------

2022-08-08 22:34:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4",
    "pubsub#title": "Node 47c526d0-10d2-4b5f-9905-7f55dfa583b4"
}

2022-08-08 22:34:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 22:34:11 | [Mutex] waiting for: [received:nodes:7bf4a9c7-4d24-4892-b5ad-51de16a8909b:localhost]

2022-08-08 22:34:11 | [Mutex] received everything.

2022-08-08 22:34:11 | [Mutex] isItemNotified: received:node:7bf4a9c7-4d24-4892-b5ad-51de16a8909b:localhost:node-47c526d0-10d2-4b5f-9905-7f55dfa583b4:Node 47c526d0-10d2-4b5f-9905-7f55dfa583b4 :: true

createSubnodes 1.023s
2022-08-08 22:34:11 |

2022-08-08 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:11 | ------------------------------------

2022-08-08 22:34:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e8feda1f-53dc-462e-9854-435a9f44344c",
    "pubsub#title": "Node e8feda1f-53dc-462e-9854-435a9f44344c"
}

2022-08-08 22:34:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 22:34:13 | [Mutex] waiting for: [received:nodes:e33fe480-c224-49e1-8de8-b4f6f1304def:localhost]

2022-08-08 22:34:13 | [Mutex] received everything.

2022-08-08 22:34:13 | [Mutex] isItemNotified: received:node:e33fe480-c224-49e1-8de8-b4f6f1304def:localhost:node-e8feda1f-53dc-462e-9854-435a9f44344c:Node e8feda1f-53dc-462e-9854-435a9f44344c :: true

deleteNodes 1.021s
2022-08-08 22:34:17 |

2022-08-08 22:34:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:17 | ------------------------------------

2022-08-08 22:34:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e8feda1f-53dc-462e-9854-435a9f44344c"
}

2022-08-08 22:34:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 22:34:18 | [Mutex] waiting for: [received:nodes:2d633b1a-01fc-4e3b-a539-c88abaaad9bb:localhost]

2022-08-08 22:34:18 | [Mutex] received everything.

2022-08-08 22:34:18 | [Mutex] isItemNotified: received:node:2d633b1a-01fc-4e3b-a539-c88abaaad9bb:localhost:node-e8feda1f-53dc-462e-9854-435a9f44344c:Node e8feda1f-53dc-462e-9854-435a9f44344c :: false

deleteSubnodes 1.023s
2022-08-08 22:34:16 |

2022-08-08 22:34:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:16 | ------------------------------------

2022-08-08 22:34:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4"
}

2022-08-08 22:34:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-08 22:34:17 | [Mutex] waiting for: [received:nodes:9e1d93d0-be4d-4e56-9075-cf8502ba2994:localhost]

2022-08-08 22:34:17 | [Mutex] received everything.

2022-08-08 22:34:17 | [Mutex] isItemNotified: received:node:9e1d93d0-be4d-4e56-9075-cf8502ba2994:localhost:node-47c526d0-10d2-4b5f-9905-7f55dfa583b4:Node 47c526d0-10d2-4b5f-9905-7f55dfa583b4 :: false

2022-08-08 22:34:17 | [Mutex] waiting for: [received:nodes:614913b4-f901-400f-a119-f411f09fbd9f:localhost]

2022-08-08 22:34:17 | [Mutex] received everything.

2022-08-08 22:34:17 | [Mutex] isItemNotified: received:node:614913b4-f901-400f-a119-f411f09fbd9f:localhost:node-47c526d0-10d2-4b5f-9905-7f55dfa583b4:Node 47c526d0-10d2-4b5f-9905-7f55dfa583b4 :: false

publishItemsToNodes 0.044s
2022-08-08 22:34:15 |

2022-08-08 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:15 | ------------------------------------

2022-08-08 22:34:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4",
    "entry": "<test>item-be70a81c-0af7-4611-a089-cf5395d6bf01</test>",
    "item-id": "item-be70a81c-0af7-4611-a089-cf5395d6bf01"
}

2022-08-08 22:34:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be70a81c-0af7-4611-a089-cf5395d6bf01"
}

2022-08-08 22:34:15 | [Mutex] waiting for: [published:item:notifieditem-be70a81c-0af7-4611-a089-cf5395d6bf01:admin@test-domain.com]

2022-08-08 22:34:15 | [Mutex] received everything.

2022-08-08 22:34:15 | [Mutex] isItemNotified: published:item:notifieditem-be70a81c-0af7-4611-a089-cf5395d6bf01:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-08 22:34:15 |

2022-08-08 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:15 | ------------------------------------

2022-08-08 22:34:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4",
    "item-id": "item-be70a81c-0af7-4611-a089-cf5395d6bf01"
}

2022-08-08 22:34:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-be70a81c-0af7-4611-a089-cf5395d6bf01"
}

2022-08-08 22:34:15 | [Mutex] waiting for: [retracted:item:notifieditem-be70a81c-0af7-4611-a089-cf5395d6bf01:admin@test-domain.com]

2022-08-08 22:34:15 | [Mutex] received everything.

2022-08-08 22:34:15 | [Mutex] isItemNotified: retracted:item:notifieditem-be70a81c-0af7-4611-a089-cf5395d6bf01:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2022-08-08 22:34:15 |

2022-08-08 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:15 | ------------------------------------

2022-08-08 22:34:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4",
    "item-id": "item-be70a81c-0af7-4611-a089-cf5395d6bf01"
}

2022-08-08 22:34:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4",
    "item-id": "item-be70a81c-0af7-4611-a089-cf5395d6bf01",
    "item": [
        "<item id=\"item-be70a81c-0af7-4611-a089-cf5395d6bf01\"><test>item-be70a81c-0af7-4611-a089-cf5395d6bf01</test></item>"
    ]
}

2022-08-08 22:34:15 | [Mutex] notify: [retrieved:item:item-be70a81c-0af7-4611-a089-cf5395d6bf01:payload-matches:true:localhost]

2022-08-08 22:34:15 | [Mutex] received everything.

2022-08-08 22:34:15 | [Mutex] isItemNotified: retrieved:item:item-be70a81c-0af7-4611-a089-cf5395d6bf01:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-08 22:34:15 |

2022-08-08 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:15 | ------------------------------------

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

2022-08-08 22:34:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e8feda1f-53dc-462e-9854-435a9f44344c",
        "test",
        "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2022-08-08 22:34:15 |

2022-08-08 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:15 | ------------------------------------

2022-08-08 22:34:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-47c526d0-10d2-4b5f-9905-7f55dfa583b4)"
}

2022-08-08 22:34:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-08-08 22:34:14 |

2022-08-08 22:34:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:14 | ------------------------------------

2022-08-08 22:34:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-08 22:34:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-08-08 22:34:15 |

2022-08-08 22:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-08 22:34:15 | ------------------------------------

2022-08-08 22:34:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-47c526d0-10d2-4b5f-9905-7f55dfa583b4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-08 22:34:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}