Generated by TestNG with ReportNG at 21:47 PST on Wednesday 15 February 2023
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.567s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2023-02-15 22:02:50 |

2023-02-15 22:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:50 | ------------------------------------

2023-02-15 22:02:50 | [Mutex] waiting for: [configured:node:node-c8979288-8f93-4693-a5e6-eb3016c7d2eb:node-4fd0013a-3899-48d5-8621-7d8db185d84c]

2023-02-15 22:02:50 | [Mutex] received everything.

2023-02-15 22:02:50 | [Mutex] isItemNotified: configured:node:node-c8979288-8f93-4693-a5e6-eb3016c7d2eb:node-4fd0013a-3899-48d5-8621-7d8db185d84c :: true

2023-02-15 22:02:51 | [Mutex] waiting for: [received:nodes:654ddfc4-3895-47d0-a69e-c48b68a1f009:localhost]

2023-02-15 22:02:51 | [Mutex] received everything.

2023-02-15 22:02:51 | [Mutex] isItemNotified: received:node:654ddfc4-3895-47d0-a69e-c48b68a1f009:localhost:node-c8979288-8f93-4693-a5e6-eb3016c7d2eb:Node c8979288-8f93-4693-a5e6-eb3016c7d2eb :: true

2023-02-15 22:02:51 | [Mutex] waiting for: [received:nodes:863108c9-ccc4-46ff-889b-a47e8f68c90b:localhost]

2023-02-15 22:02:51 | [Mutex] waiting for: [received:nodes:863108c9-ccc4-46ff-889b-a47e8f68c90b:localhost]

2023-02-15 22:02:51 | [Mutex] waiting for: [received:nodes:863108c9-ccc4-46ff-889b-a47e8f68c90b:localhost]

2023-02-15 22:02:51 | [Mutex] waiting for: [received:nodes:863108c9-ccc4-46ff-889b-a47e8f68c90b:localhost]

2023-02-15 22:02:51 | [Mutex] received everything.

2023-02-15 22:02:51 | [Mutex] isItemNotified: received:node:863108c9-ccc4-46ff-889b-a47e8f68c90b:localhost:node-c8979288-8f93-4693-a5e6-eb3016c7d2eb:Node c8979288-8f93-4693-a5e6-eb3016c7d2eb :: false

createNodes 1.559s
2023-02-15 22:02:48 |

2023-02-15 22:02:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:48 | ------------------------------------

2023-02-15 22:02:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
    "pubsub#title": "Node c8979288-8f93-4693-a5e6-eb3016c7d2eb"
}

2023-02-15 22:02:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 22:02:49 | [Mutex] waiting for: [received:nodes:b3ca80fb-5c2c-44ba-8264-3638910233d0:localhost]

2023-02-15 22:02:49 | [Mutex] waiting for: [received:nodes:b3ca80fb-5c2c-44ba-8264-3638910233d0:localhost]

2023-02-15 22:02:49 | [Mutex] waiting for: [received:nodes:b3ca80fb-5c2c-44ba-8264-3638910233d0:localhost]

2023-02-15 22:02:49 | [Mutex] waiting for: [received:nodes:b3ca80fb-5c2c-44ba-8264-3638910233d0:localhost]

2023-02-15 22:02:49 | [Mutex] received everything.

2023-02-15 22:02:49 | [Mutex] isItemNotified: received:node:b3ca80fb-5c2c-44ba-8264-3638910233d0:localhost:node-c8979288-8f93-4693-a5e6-eb3016c7d2eb:Node c8979288-8f93-4693-a5e6-eb3016c7d2eb :: true

createSubnodes 1.025s
2023-02-15 22:02:49 |

2023-02-15 22:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:49 | ------------------------------------

2023-02-15 22:02:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4fd0013a-3899-48d5-8621-7d8db185d84c",
    "pubsub#title": "Node 4fd0013a-3899-48d5-8621-7d8db185d84c"
}

2023-02-15 22:02:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 22:02:50 | [Mutex] waiting for: [received:nodes:8f76734b-a8ad-4194-acba-a418fc3cb4ee:localhost]

2023-02-15 22:02:50 | [Mutex] waiting for: [received:nodes:8f76734b-a8ad-4194-acba-a418fc3cb4ee:localhost]

2023-02-15 22:02:50 | [Mutex] waiting for: [received:nodes:8f76734b-a8ad-4194-acba-a418fc3cb4ee:localhost]

2023-02-15 22:02:50 | [Mutex] waiting for: [received:nodes:8f76734b-a8ad-4194-acba-a418fc3cb4ee:localhost]

2023-02-15 22:02:50 | [Mutex] received everything.

2023-02-15 22:02:50 | [Mutex] isItemNotified: received:node:8f76734b-a8ad-4194-acba-a418fc3cb4ee:localhost:node-4fd0013a-3899-48d5-8621-7d8db185d84c:Node 4fd0013a-3899-48d5-8621-7d8db185d84c :: true

deleteNodes 1.017s
2023-02-15 22:02:55 |

2023-02-15 22:02:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:55 | ------------------------------------

2023-02-15 22:02:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4fd0013a-3899-48d5-8621-7d8db185d84c"
}

2023-02-15 22:02:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 22:02:56 | [Mutex] waiting for: [received:nodes:52ef73a8-39c0-4de5-9012-e018a850c99b:localhost]

2023-02-15 22:02:56 | [Mutex] waiting for: [received:nodes:52ef73a8-39c0-4de5-9012-e018a850c99b:localhost]

2023-02-15 22:02:56 | [Mutex] waiting for: [received:nodes:52ef73a8-39c0-4de5-9012-e018a850c99b:localhost]

2023-02-15 22:02:56 | [Mutex] received everything.

2023-02-15 22:02:56 | [Mutex] isItemNotified: received:node:52ef73a8-39c0-4de5-9012-e018a850c99b:localhost:node-4fd0013a-3899-48d5-8621-7d8db185d84c:Node 4fd0013a-3899-48d5-8621-7d8db185d84c :: false

deleteSubnodes 1.026s
2023-02-15 22:02:54 |

2023-02-15 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:54 | ------------------------------------

2023-02-15 22:02:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb"
}

2023-02-15 22:02:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 22:02:55 | [Mutex] waiting for: [received:nodes:e8e82de5-d801-4aec-ba9b-0a5ee0ed9ee7:localhost]

2023-02-15 22:02:55 | [Mutex] waiting for: [received:nodes:e8e82de5-d801-4aec-ba9b-0a5ee0ed9ee7:localhost]

2023-02-15 22:02:55 | [Mutex] waiting for: [received:nodes:e8e82de5-d801-4aec-ba9b-0a5ee0ed9ee7:localhost]

2023-02-15 22:02:55 | [Mutex] waiting for: [received:nodes:e8e82de5-d801-4aec-ba9b-0a5ee0ed9ee7:localhost]

2023-02-15 22:02:55 | [Mutex] received everything.

2023-02-15 22:02:55 | [Mutex] isItemNotified: received:node:e8e82de5-d801-4aec-ba9b-0a5ee0ed9ee7:localhost:node-c8979288-8f93-4693-a5e6-eb3016c7d2eb:Node c8979288-8f93-4693-a5e6-eb3016c7d2eb :: false

2023-02-15 22:02:55 | [Mutex] waiting for: [received:nodes:7900d307-748e-4a39-8f24-9b45b8adca2f:localhost]

2023-02-15 22:02:55 | [Mutex] received everything.

2023-02-15 22:02:55 | [Mutex] isItemNotified: received:node:7900d307-748e-4a39-8f24-9b45b8adca2f:localhost:node-c8979288-8f93-4693-a5e6-eb3016c7d2eb:Node c8979288-8f93-4693-a5e6-eb3016c7d2eb :: false

publishItemsToNodes 0.058s
2023-02-15 22:02:52 |

2023-02-15 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:52 | ------------------------------------

2023-02-15 22:02:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
    "entry": "<test>item-96d6a707-cfc7-4fa0-bfea-c4cff213c340</test>",
    "item-id": "item-96d6a707-cfc7-4fa0-bfea-c4cff213c340"
}

2023-02-15 22:02:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-96d6a707-cfc7-4fa0-bfea-c4cff213c340"
}

2023-02-15 22:02:52 | [Mutex] waiting for: [published:item:notifieditem-96d6a707-cfc7-4fa0-bfea-c4cff213c340:admin@test-domain.com]

2023-02-15 22:02:52 | [Mutex] received everything.

2023-02-15 22:02:52 | [Mutex] isItemNotified: published:item:notifieditem-96d6a707-cfc7-4fa0-bfea-c4cff213c340:admin@test-domain.com :: true

retractItemsFromNodes 0.050s
2023-02-15 22:02:53 |

2023-02-15 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:53 | ------------------------------------

2023-02-15 22:02:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
    "item-id": "item-96d6a707-cfc7-4fa0-bfea-c4cff213c340"
}

2023-02-15 22:02:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-96d6a707-cfc7-4fa0-bfea-c4cff213c340"
}

2023-02-15 22:02:53 | [Mutex] received everything.

2023-02-15 22:02:53 | [Mutex] isItemNotified: retracted:item:notifieditem-96d6a707-cfc7-4fa0-bfea-c4cff213c340:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2023-02-15 22:02:52 |

2023-02-15 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:52 | ------------------------------------

2023-02-15 22:02:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
    "item-id": "item-96d6a707-cfc7-4fa0-bfea-c4cff213c340"
}

2023-02-15 22:02:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
    "item-id": "item-96d6a707-cfc7-4fa0-bfea-c4cff213c340",
    "item": [
        "<item id=\"item-96d6a707-cfc7-4fa0-bfea-c4cff213c340\"><test>item-96d6a707-cfc7-4fa0-bfea-c4cff213c340</test></item>"
    ]
}

2023-02-15 22:02:52 | [Mutex] notify: [retrieved:item:item-96d6a707-cfc7-4fa0-bfea-c4cff213c340:payload-matches:true:localhost]

2023-02-15 22:02:52 | [Mutex] received everything.

2023-02-15 22:02:52 | [Mutex] isItemNotified: retrieved:item:item-96d6a707-cfc7-4fa0-bfea-c4cff213c340:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-02-15 22:02:52 |

2023-02-15 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:52 | ------------------------------------

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

2023-02-15 22:02:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
        "test",
        "node-4fd0013a-3899-48d5-8621-7d8db185d84c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-02-15 22:02:52 |

2023-02-15 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:52 | ------------------------------------

2023-02-15 22:02:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c8979288-8f93-4693-a5e6-eb3016c7d2eb)"
}

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

subscribeNodes 1.007s
2023-02-15 22:02:51 |

2023-02-15 22:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:51 | ------------------------------------

2023-02-15 22:02:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-15 22:02:51 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2023-02-15 22:02:53 |

2023-02-15 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 22:02:53 | ------------------------------------

2023-02-15 22:02:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c8979288-8f93-4693-a5e6-eb3016c7d2eb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-15 22:02:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}