Generated by TestNG with ReportNG at 22:32 PDT on Monday 26 April 2021
root@785cf647a4ab / 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.979s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.163s
2021-04-26 22:49:11 |

2021-04-26 22:49:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:11 | ------------------------------------

2021-04-26 22:49:12 | [Mutex] waiting for: [configured:node:node-63a097a0-d383-4809-9d00-fbd0bfa4560c:node-4f66a6a9-d383-46d7-bea5-1e9f7f128dfb]

2021-04-26 22:49:12 | [Mutex] received everything.

2021-04-26 22:49:12 | [Mutex] isItemNotified: configured:node:node-63a097a0-d383-4809-9d00-fbd0bfa4560c:node-4f66a6a9-d383-46d7-bea5-1e9f7f128dfb :: true

2021-04-26 22:49:13 | [Mutex] waiting for: [received:nodes:67d3b203-f135-4b91-b885-c0c33b8e699f:localhost]

2021-04-26 22:49:13 | [Mutex] received everything.

2021-04-26 22:49:13 | [Mutex] isItemNotified: received:node:67d3b203-f135-4b91-b885-c0c33b8e699f:localhost:node-63a097a0-d383-4809-9d00-fbd0bfa4560c:Node 63a097a0-d383-4809-9d00-fbd0bfa4560c :: true

2021-04-26 22:49:13 | [Mutex] waiting for: [received:nodes:972e3ea1-eb42-4cc6-a3c1-f0874347180a:localhost]

2021-04-26 22:49:13 | [Mutex] received everything.

2021-04-26 22:49:13 | [Mutex] isItemNotified: received:node:972e3ea1-eb42-4cc6-a3c1-f0874347180a:localhost:node-63a097a0-d383-4809-9d00-fbd0bfa4560c:Node 63a097a0-d383-4809-9d00-fbd0bfa4560c :: false

createNodes 1.653s
2021-04-26 22:49:09 |

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

2021-04-26 22:49:09 | ------------------------------------

2021-04-26 22:49:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
    "pubsub#title": "Node 63a097a0-d383-4809-9d00-fbd0bfa4560c"
}

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

2021-04-26 22:49:10 | [Mutex] waiting for: [received:nodes:4f3041c9-7cdc-46bf-a6bc-d2039412da0e:localhost]

2021-04-26 22:49:10 | [Mutex] waiting for: [received:nodes:4f3041c9-7cdc-46bf-a6bc-d2039412da0e:localhost]

2021-04-26 22:49:10 | [Mutex] received everything.

2021-04-26 22:49:10 | [Mutex] isItemNotified: received:node:4f3041c9-7cdc-46bf-a6bc-d2039412da0e:localhost:node-63a097a0-d383-4809-9d00-fbd0bfa4560c:Node 63a097a0-d383-4809-9d00-fbd0bfa4560c :: true

createSubnodes 1.031s
2021-04-26 22:49:10 |

2021-04-26 22:49:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:10 | ------------------------------------

2021-04-26 22:49:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4f66a6a9-d383-46d7-bea5-1e9f7f128dfb",
    "pubsub#title": "Node 4f66a6a9-d383-46d7-bea5-1e9f7f128dfb"
}

2021-04-26 22:49:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:49:11 | [Mutex] waiting for: [received:nodes:20a77c52-994e-4c2f-9311-9c9d0eddf963:localhost]

2021-04-26 22:49:11 | [Mutex] received everything.

2021-04-26 22:49:11 | [Mutex] isItemNotified: received:node:20a77c52-994e-4c2f-9311-9c9d0eddf963:localhost:node-4f66a6a9-d383-46d7-bea5-1e9f7f128dfb:Node 4f66a6a9-d383-46d7-bea5-1e9f7f128dfb :: true

deleteNodes 1.025s
2021-04-26 22:49:16 |

2021-04-26 22:49:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:16 | ------------------------------------

2021-04-26 22:49:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4f66a6a9-d383-46d7-bea5-1e9f7f128dfb"
}

2021-04-26 22:49:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:49:17 | [Mutex] waiting for: [received:nodes:c6743a58-d62a-4780-970a-16d3181ce4fc:localhost]

2021-04-26 22:49:17 | [Mutex] received everything.

2021-04-26 22:49:17 | [Mutex] isItemNotified: received:node:c6743a58-d62a-4780-970a-16d3181ce4fc:localhost:node-4f66a6a9-d383-46d7-bea5-1e9f7f128dfb:Node 4f66a6a9-d383-46d7-bea5-1e9f7f128dfb :: false

deleteSubnodes 1.031s
2021-04-26 22:49:15 |

2021-04-26 22:49:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:15 | ------------------------------------

2021-04-26 22:49:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c"
}

2021-04-26 22:49:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-26 22:49:16 | [Mutex] waiting for: [received:nodes:e0b113b0-73a0-488c-ad68-660a713c7640:localhost]

2021-04-26 22:49:16 | [Mutex] received everything.

2021-04-26 22:49:16 | [Mutex] isItemNotified: received:node:e0b113b0-73a0-488c-ad68-660a713c7640:localhost:node-63a097a0-d383-4809-9d00-fbd0bfa4560c:Node 63a097a0-d383-4809-9d00-fbd0bfa4560c :: false

2021-04-26 22:49:16 | [Mutex] waiting for: [received:nodes:5a69cd75-aec5-452b-a65c-32c81e6e43fa:localhost]

2021-04-26 22:49:16 | [Mutex] received everything.

2021-04-26 22:49:16 | [Mutex] isItemNotified: received:node:5a69cd75-aec5-452b-a65c-32c81e6e43fa:localhost:node-63a097a0-d383-4809-9d00-fbd0bfa4560c:Node 63a097a0-d383-4809-9d00-fbd0bfa4560c :: false

publishItemsToNodes 0.066s
2021-04-26 22:49:14 |

2021-04-26 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:14 | ------------------------------------

2021-04-26 22:49:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
    "entry": "<test>item-955523dd-5b1a-4425-a9c1-dcda4765df08</test>",
    "item-id": "item-955523dd-5b1a-4425-a9c1-dcda4765df08"
}

2021-04-26 22:49:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-955523dd-5b1a-4425-a9c1-dcda4765df08"
}

2021-04-26 22:49:14 | [Mutex] waiting for: [published:item:notifieditem-955523dd-5b1a-4425-a9c1-dcda4765df08:admin@test-domain.com]

2021-04-26 22:49:14 | [Mutex] received everything.

2021-04-26 22:49:14 | [Mutex] isItemNotified: published:item:notifieditem-955523dd-5b1a-4425-a9c1-dcda4765df08:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-04-26 22:49:14 |

2021-04-26 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:14 | ------------------------------------

2021-04-26 22:49:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
    "item-id": "item-955523dd-5b1a-4425-a9c1-dcda4765df08"
}

2021-04-26 22:49:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-955523dd-5b1a-4425-a9c1-dcda4765df08"
}

2021-04-26 22:49:14 | [Mutex] received everything.

2021-04-26 22:49:14 | [Mutex] isItemNotified: retracted:item:notifieditem-955523dd-5b1a-4425-a9c1-dcda4765df08:admin@test-domain.com :: true

retrieveItemsFromNodes 0.057s
2021-04-26 22:49:14 |

2021-04-26 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:14 | ------------------------------------

2021-04-26 22:49:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
    "item-id": "item-955523dd-5b1a-4425-a9c1-dcda4765df08"
}

2021-04-26 22:49:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
    "item-id": "item-955523dd-5b1a-4425-a9c1-dcda4765df08",
    "item": [
        "<item id=\"item-955523dd-5b1a-4425-a9c1-dcda4765df08\"><test>item-955523dd-5b1a-4425-a9c1-dcda4765df08</test></item>"
    ]
}

2021-04-26 22:49:14 | [Mutex] notify: [retrieved:item:item-955523dd-5b1a-4425-a9c1-dcda4765df08:payload-matches:true:localhost]

2021-04-26 22:49:14 | [Mutex] received everything.

2021-04-26 22:49:14 | [Mutex] isItemNotified: retrieved:item:item-955523dd-5b1a-4425-a9c1-dcda4765df08:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-04-26 22:49:14 |

2021-04-26 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:14 | ------------------------------------

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

2021-04-26 22:49:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
        "test",
        "node-4f66a6a9-d383-46d7-bea5-1e9f7f128dfb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-26 22:49:14 |

2021-04-26 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:14 | ------------------------------------

2021-04-26 22:49:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-63a097a0-d383-4809-9d00-fbd0bfa4560c)"
}

2021-04-26 22:49:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-04-26 22:49:13 |

2021-04-26 22:49:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:13 | ------------------------------------

2021-04-26 22:49:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-26 22:49:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2021-04-26 22:49:14 |

2021-04-26 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-26 22:49:14 | ------------------------------------

2021-04-26 22:49:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-63a097a0-d383-4809-9d00-fbd0bfa4560c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-26 22:49:14 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}