Generated by TestNG with ReportNG at 22:34 PDT on Thursday 25 March 2021
root@87f6aca6b6f2 / 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 : 9.279s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.139s
2021-03-25 22:49:11 |

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

2021-03-25 22:49:11 | ------------------------------------

2021-03-25 22:49:11 | [Mutex] waiting for: [configured:node:node-a551c931-7b60-4079-a009-869d4fd4506f:node-5aa6af5c-5388-481b-b2c3-3822a1e964aa]

2021-03-25 22:49:11 | [Mutex] received everything.

2021-03-25 22:49:11 | [Mutex] isItemNotified: configured:node:node-a551c931-7b60-4079-a009-869d4fd4506f:node-5aa6af5c-5388-481b-b2c3-3822a1e964aa :: true

2021-03-25 22:49:12 | [Mutex] waiting for: [received:nodes:67844708-e614-465a-bafc-4c749981a424:localhost]

2021-03-25 22:49:12 | [Mutex] waiting for: [received:nodes:67844708-e614-465a-bafc-4c749981a424:localhost]

2021-03-25 22:49:12 | [Mutex] received everything.

2021-03-25 22:49:12 | [Mutex] isItemNotified: received:node:67844708-e614-465a-bafc-4c749981a424:localhost:node-a551c931-7b60-4079-a009-869d4fd4506f:Node a551c931-7b60-4079-a009-869d4fd4506f :: true

2021-03-25 22:49:12 | [Mutex] waiting for: [received:nodes:bf1d06c7-42ec-4bd9-8f4f-22dcd5a9e1f8:localhost]

2021-03-25 22:49:12 | [Mutex] waiting for: [received:nodes:bf1d06c7-42ec-4bd9-8f4f-22dcd5a9e1f8:localhost]

2021-03-25 22:49:12 | [Mutex] received everything.

2021-03-25 22:49:12 | [Mutex] isItemNotified: received:node:bf1d06c7-42ec-4bd9-8f4f-22dcd5a9e1f8:localhost:node-a551c931-7b60-4079-a009-869d4fd4506f:Node a551c931-7b60-4079-a009-869d4fd4506f :: false

createNodes 1.707s
2021-03-25 22:49:08 |

2021-03-25 22:49:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:49:08 | ------------------------------------

2021-03-25 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-a551c931-7b60-4079-a009-869d4fd4506f",
    "pubsub#title": "Node a551c931-7b60-4079-a009-869d4fd4506f"
}

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

2021-03-25 22:49:10 | [Mutex] waiting for: [received:nodes:2eea5468-9a00-4813-9062-364f3a72ae2f:localhost]

2021-03-25 22:49:10 | [Mutex] received everything.

2021-03-25 22:49:10 | [Mutex] isItemNotified: received:node:2eea5468-9a00-4813-9062-364f3a72ae2f:localhost:node-a551c931-7b60-4079-a009-869d4fd4506f:Node a551c931-7b60-4079-a009-869d4fd4506f :: true

createSubnodes 1.044s
2021-03-25 22:49:10 |

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

2021-03-25 22:49:10 | ------------------------------------

2021-03-25 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-5aa6af5c-5388-481b-b2c3-3822a1e964aa",
    "pubsub#title": "Node 5aa6af5c-5388-481b-b2c3-3822a1e964aa"
}

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

2021-03-25 22:49:11 | [Mutex] waiting for: [received:nodes:ecd253d5-9d8b-4666-9b72-54a871c4822b:localhost]

2021-03-25 22:49:11 | [Mutex] waiting for: [received:nodes:ecd253d5-9d8b-4666-9b72-54a871c4822b:localhost]

2021-03-25 22:49:11 | [Mutex] received everything.

2021-03-25 22:49:11 | [Mutex] isItemNotified: received:node:ecd253d5-9d8b-4666-9b72-54a871c4822b:localhost:node-5aa6af5c-5388-481b-b2c3-3822a1e964aa:Node 5aa6af5c-5388-481b-b2c3-3822a1e964aa :: true

deleteNodes 1.023s
2021-03-25 22:49:16 |

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

2021-03-25 22:49:16 | ------------------------------------

2021-03-25 22:49:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5aa6af5c-5388-481b-b2c3-3822a1e964aa"
}

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

2021-03-25 22:49:17 | [Mutex] waiting for: [received:nodes:c34b4cbd-95f6-450c-8714-7d5598b122ac:localhost]

2021-03-25 22:49:17 | [Mutex] received everything.

2021-03-25 22:49:17 | [Mutex] isItemNotified: received:node:c34b4cbd-95f6-450c-8714-7d5598b122ac:localhost:node-5aa6af5c-5388-481b-b2c3-3822a1e964aa:Node 5aa6af5c-5388-481b-b2c3-3822a1e964aa :: false

deleteSubnodes 1.034s
2021-03-25 22:49:15 |

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

2021-03-25 22:49:15 | ------------------------------------

2021-03-25 22:49:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a551c931-7b60-4079-a009-869d4fd4506f"
}

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

2021-03-25 22:49:16 | [Mutex] waiting for: [received:nodes:4b98b0e4-286c-496c-8185-80dd94238c88:localhost]

2021-03-25 22:49:16 | [Mutex] waiting for: [received:nodes:4b98b0e4-286c-496c-8185-80dd94238c88:localhost]

2021-03-25 22:49:16 | [Mutex] waiting for: [received:nodes:4b98b0e4-286c-496c-8185-80dd94238c88:localhost]

2021-03-25 22:49:16 | [Mutex] waiting for: [received:nodes:4b98b0e4-286c-496c-8185-80dd94238c88:localhost]

2021-03-25 22:49:16 | [Mutex] received everything.

2021-03-25 22:49:16 | [Mutex] isItemNotified: received:node:4b98b0e4-286c-496c-8185-80dd94238c88:localhost:node-a551c931-7b60-4079-a009-869d4fd4506f:Node a551c931-7b60-4079-a009-869d4fd4506f :: false

2021-03-25 22:49:16 | [Mutex] waiting for: [received:nodes:80fa2c14-6206-454c-883f-7615e0cb404b:localhost]

2021-03-25 22:49:16 | [Mutex] received everything.

2021-03-25 22:49:16 | [Mutex] isItemNotified: received:node:80fa2c14-6206-454c-883f-7615e0cb404b:localhost:node-a551c931-7b60-4079-a009-869d4fd4506f:Node a551c931-7b60-4079-a009-869d4fd4506f :: false

publishItemsToNodes 0.073s
2021-03-25 22:49:13 |

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

2021-03-25 22:49:13 | ------------------------------------

2021-03-25 22:49:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a551c931-7b60-4079-a009-869d4fd4506f",
    "entry": "<test>item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932</test>",
    "item-id": "item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932"
}

2021-03-25 22:49:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932"
}

2021-03-25 22:49:13 | [Mutex] waiting for: [published:item:notifieditem-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932:admin@test-domain.com]

2021-03-25 22:49:13 | [Mutex] received everything.

2021-03-25 22:49:13 | [Mutex] isItemNotified: published:item:notifieditem-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932:admin@test-domain.com :: true

retractItemsFromNodes 0.082s
2021-03-25 22:49:14 |

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

2021-03-25 22:49:14 | ------------------------------------

2021-03-25 22:49:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a551c931-7b60-4079-a009-869d4fd4506f",
    "item-id": "item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932"
}

2021-03-25 22:49:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932"
}

2021-03-25 22:49:14 | [Mutex] waiting for: [retracted:item:notifieditem-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932:admin@test-domain.com]

2021-03-25 22:49:14 | [Mutex] received everything.

2021-03-25 22:49:14 | [Mutex] isItemNotified: retracted:item:notifieditem-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2021-03-25 22:49:13 |

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

2021-03-25 22:49:13 | ------------------------------------

2021-03-25 22:49:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a551c931-7b60-4079-a009-869d4fd4506f",
    "item-id": "item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932"
}

2021-03-25 22:49:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a551c931-7b60-4079-a009-869d4fd4506f",
    "item-id": "item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932",
    "item": [
        "<item id=\"item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932\"><test>item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932</test></item>"
    ]
}

2021-03-25 22:49:13 | [Mutex] notify: [retrieved:item:item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932:payload-matches:true:localhost]

2021-03-25 22:49:13 | [Mutex] received everything.

2021-03-25 22:49:13 | [Mutex] isItemNotified: retrieved:item:item-02c9bf4f-c0ea-4a39-b6a1-f0a4f9b2e932:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.124s
2021-03-25 22:49:13 |

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

2021-03-25 22:49:13 | ------------------------------------

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

2021-03-25 22:49:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-5aa6af5c-5388-481b-b2c3-3822a1e964aa",
        "test",
        "node-a551c931-7b60-4079-a009-869d4fd4506f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-03-25 22:49:14 |

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

2021-03-25 22:49:14 | ------------------------------------

2021-03-25 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-a551c931-7b60-4079-a009-869d4fd4506f)"
}

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

subscribeNodes 1.015s
2021-03-25 22:49:12 |

2021-03-25 22:49:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-25 22:49:12 | ------------------------------------

2021-03-25 22:49:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a551c931-7b60-4079-a009-869d4fd4506f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.096s
2021-03-25 22:49:14 |

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

2021-03-25 22:49:14 | ------------------------------------

2021-03-25 22:49:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a551c931-7b60-4079-a009-869d4fd4506f",
    "jids": [
        "admin@test-domain.com"
    ]
}

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