Generated by TestNG with ReportNG at 13:47 PDT on Monday 28 September 2020
root@9e0b9c5f736a / 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.961s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.097s
2020-09-28 14:05:19 |

2020-09-28 14:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:19 | ------------------------------------

2020-09-28 14:05:19 | [Mutex] waiting for: [configured:node:node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191:node-3c025102-4cd2-47bb-96ad-26308f97ad5d]

2020-09-28 14:05:19 | [Mutex] received everything.

2020-09-28 14:05:19 | [Mutex] isItemNotified: configured:node:node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191:node-3c025102-4cd2-47bb-96ad-26308f97ad5d :: true

2020-09-28 14:05:20 | [Mutex] waiting for: [received:nodes:ffeac43d-ddcf-40ba-b95f-1c51a6223055:localhost]

2020-09-28 14:05:20 | [Mutex] received everything.

2020-09-28 14:05:20 | [Mutex] isItemNotified: received:node:ffeac43d-ddcf-40ba-b95f-1c51a6223055:localhost:node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191:Node d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191 :: true

2020-09-28 14:05:20 | [Mutex] waiting for: [received:nodes:000d4e75-bab2-490c-8a8f-c5fd95a73945:localhost]

2020-09-28 14:05:20 | [Mutex] waiting for: [received:nodes:000d4e75-bab2-490c-8a8f-c5fd95a73945:localhost]

2020-09-28 14:05:20 | [Mutex] waiting for: [received:nodes:000d4e75-bab2-490c-8a8f-c5fd95a73945:localhost]

2020-09-28 14:05:20 | [Mutex] received everything.

2020-09-28 14:05:20 | [Mutex] isItemNotified: received:node:000d4e75-bab2-490c-8a8f-c5fd95a73945:localhost:node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191:Node d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191 :: false

createNodes 1.645s
2020-09-28 14:05:16 |

2020-09-28 14:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:16 | ------------------------------------

2020-09-28 14:05:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
    "pubsub#title": "Node d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191"
}

2020-09-28 14:05:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-28 14:05:18 | [Mutex] waiting for: [received:nodes:9cb64393-8d08-43ba-8d16-39c74ac33e8b:localhost]

2020-09-28 14:05:18 | [Mutex] received everything.

2020-09-28 14:05:18 | [Mutex] isItemNotified: received:node:9cb64393-8d08-43ba-8d16-39c74ac33e8b:localhost:node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191:Node d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191 :: true

createSubnodes 1.022s
2020-09-28 14:05:18 |

2020-09-28 14:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:18 | ------------------------------------

2020-09-28 14:05:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3c025102-4cd2-47bb-96ad-26308f97ad5d",
    "pubsub#title": "Node 3c025102-4cd2-47bb-96ad-26308f97ad5d"
}

2020-09-28 14:05:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-28 14:05:19 | [Mutex] waiting for: [received:nodes:b85657a6-8824-44af-af9f-b9abbc0844df:localhost]

2020-09-28 14:05:19 | [Mutex] waiting for: [received:nodes:b85657a6-8824-44af-af9f-b9abbc0844df:localhost]

2020-09-28 14:05:19 | [Mutex] received everything.

2020-09-28 14:05:19 | [Mutex] isItemNotified: received:node:b85657a6-8824-44af-af9f-b9abbc0844df:localhost:node-3c025102-4cd2-47bb-96ad-26308f97ad5d:Node 3c025102-4cd2-47bb-96ad-26308f97ad5d :: true

deleteNodes 1.018s
2020-09-28 14:05:23 |

2020-09-28 14:05:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:23 | ------------------------------------

2020-09-28 14:05:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3c025102-4cd2-47bb-96ad-26308f97ad5d"
}

2020-09-28 14:05:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-28 14:05:24 | [Mutex] waiting for: [received:nodes:accd8818-a29b-4ffd-bbc1-dac7c360d074:localhost]

2020-09-28 14:05:24 | [Mutex] received everything.

2020-09-28 14:05:24 | [Mutex] isItemNotified: received:node:accd8818-a29b-4ffd-bbc1-dac7c360d074:localhost:node-3c025102-4cd2-47bb-96ad-26308f97ad5d:Node 3c025102-4cd2-47bb-96ad-26308f97ad5d :: false

deleteSubnodes 1.027s
2020-09-28 14:05:22 |

2020-09-28 14:05:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:22 | ------------------------------------

2020-09-28 14:05:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191"
}

2020-09-28 14:05:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-28 14:05:23 | [Mutex] waiting for: [received:nodes:9db8fa3c-61fc-4f29-97ca-cae759e72845:localhost]

2020-09-28 14:05:23 | [Mutex] waiting for: [received:nodes:9db8fa3c-61fc-4f29-97ca-cae759e72845:localhost]

2020-09-28 14:05:23 | [Mutex] received everything.

2020-09-28 14:05:23 | [Mutex] isItemNotified: received:node:9db8fa3c-61fc-4f29-97ca-cae759e72845:localhost:node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191:Node d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191 :: false

2020-09-28 14:05:23 | [Mutex] waiting for: [received:nodes:deb3327f-f7e4-44de-8529-0998c377535c:localhost]

2020-09-28 14:05:23 | [Mutex] received everything.

2020-09-28 14:05:23 | [Mutex] isItemNotified: received:node:deb3327f-f7e4-44de-8529-0998c377535c:localhost:node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191:Node d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191 :: false

publishItemsToNodes 0.027s
2020-09-28 14:05:21 |

2020-09-28 14:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:21 | ------------------------------------

2020-09-28 14:05:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
    "entry": "<test>item-e8f4c1b3-2960-420e-a585-16ec4217a4e9</test>",
    "item-id": "item-e8f4c1b3-2960-420e-a585-16ec4217a4e9"
}

2020-09-28 14:05:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e8f4c1b3-2960-420e-a585-16ec4217a4e9"
}

2020-09-28 14:05:21 | [Mutex] waiting for: [published:item:notifieditem-e8f4c1b3-2960-420e-a585-16ec4217a4e9:admin@test-domain.com]

2020-09-28 14:05:21 | [Mutex] received everything.

2020-09-28 14:05:21 | [Mutex] isItemNotified: published:item:notifieditem-e8f4c1b3-2960-420e-a585-16ec4217a4e9:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2020-09-28 14:05:21 |

2020-09-28 14:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:21 | ------------------------------------

2020-09-28 14:05:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
    "item-id": "item-e8f4c1b3-2960-420e-a585-16ec4217a4e9"
}

2020-09-28 14:05:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e8f4c1b3-2960-420e-a585-16ec4217a4e9"
}

2020-09-28 14:05:21 | [Mutex] received everything.

2020-09-28 14:05:21 | [Mutex] isItemNotified: retracted:item:notifieditem-e8f4c1b3-2960-420e-a585-16ec4217a4e9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2020-09-28 14:05:21 |

2020-09-28 14:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:21 | ------------------------------------

2020-09-28 14:05:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
    "item-id": "item-e8f4c1b3-2960-420e-a585-16ec4217a4e9"
}

2020-09-28 14:05:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
    "item-id": "item-e8f4c1b3-2960-420e-a585-16ec4217a4e9",
    "item": [
        "<item id=\"item-e8f4c1b3-2960-420e-a585-16ec4217a4e9\"><test>item-e8f4c1b3-2960-420e-a585-16ec4217a4e9</test></item>"
    ]
}

2020-09-28 14:05:21 | [Mutex] notify: [retrieved:item:item-e8f4c1b3-2960-420e-a585-16ec4217a4e9:payload-matches:true:localhost]

2020-09-28 14:05:21 | [Mutex] received everything.

2020-09-28 14:05:21 | [Mutex] isItemNotified: retrieved:item:item-e8f4c1b3-2960-420e-a585-16ec4217a4e9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-28 14:05:21 |

2020-09-28 14:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:21 | ------------------------------------

2020-09-28 14:05:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-28 14:05:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
        "test",
        "node-3c025102-4cd2-47bb-96ad-26308f97ad5d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-28 14:05:21 |

2020-09-28 14:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:21 | ------------------------------------

2020-09-28 14:05:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191)"
}

2020-09-28 14:05:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-09-28 14:05:20 |

2020-09-28 14:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:20 | ------------------------------------

2020-09-28 14:05:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-28 14:05:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-28 14:05:21 |

2020-09-28 14:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-28 14:05:21 | ------------------------------------

2020-09-28 14:05:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d1ffa3f7-e5c9-4275-bfc9-85b77dbb5191",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-28 14:05:21 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}