Generated by TestNG with ReportNG at 22:42 PDT on Friday 04 June 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 : 9.212s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2021-06-04 22:57:12 |

2021-06-04 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:57:12 | ------------------------------------

2021-06-04 22:57:12 | [Mutex] waiting for: [configured:node:node-d690353d-b6c6-4138-8383-c72cfb9bd3de:node-24e17b3b-baad-4ab6-8378-94cfd9f4af1d]

2021-06-04 22:57:12 | [Mutex] received everything.

2021-06-04 22:57:12 | [Mutex] isItemNotified: configured:node:node-d690353d-b6c6-4138-8383-c72cfb9bd3de:node-24e17b3b-baad-4ab6-8378-94cfd9f4af1d :: true

2021-06-04 22:57:13 | [Mutex] waiting for: [received:nodes:9938f03a-74c6-4820-a1e8-e3f0d56ce001:localhost]

2021-06-04 22:57:13 | [Mutex] received everything.

2021-06-04 22:57:13 | [Mutex] isItemNotified: received:node:9938f03a-74c6-4820-a1e8-e3f0d56ce001:localhost:node-d690353d-b6c6-4138-8383-c72cfb9bd3de:Node d690353d-b6c6-4138-8383-c72cfb9bd3de :: true

2021-06-04 22:57:13 | [Mutex] waiting for: [received:nodes:d27b627d-4caa-493b-ad67-cd79ff229796:localhost]

2021-06-04 22:57:13 | [Mutex] received everything.

2021-06-04 22:57:13 | [Mutex] isItemNotified: received:node:d27b627d-4caa-493b-ad67-cd79ff229796:localhost:node-d690353d-b6c6-4138-8383-c72cfb9bd3de:Node d690353d-b6c6-4138-8383-c72cfb9bd3de :: false

createNodes 1.879s
2021-06-04 22:57:09 |

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

2021-06-04 22:57:09 | ------------------------------------

2021-06-04 22:57: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-d690353d-b6c6-4138-8383-c72cfb9bd3de",
    "pubsub#title": "Node d690353d-b6c6-4138-8383-c72cfb9bd3de"
}

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

2021-06-04 22:57:11 | [Mutex] waiting for: [received:nodes:e9e875fc-684d-4557-a6e6-1fffa640f9eb:localhost]

2021-06-04 22:57:11 | [Mutex] waiting for: [received:nodes:e9e875fc-684d-4557-a6e6-1fffa640f9eb:localhost]

2021-06-04 22:57:11 | [Mutex] received everything.

2021-06-04 22:57:11 | [Mutex] isItemNotified: received:node:e9e875fc-684d-4557-a6e6-1fffa640f9eb:localhost:node-d690353d-b6c6-4138-8383-c72cfb9bd3de:Node d690353d-b6c6-4138-8383-c72cfb9bd3de :: true

createSubnodes 1.044s
2021-06-04 22:57:11 |

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

2021-06-04 22:57:11 | ------------------------------------

2021-06-04 22:57: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-24e17b3b-baad-4ab6-8378-94cfd9f4af1d",
    "pubsub#title": "Node 24e17b3b-baad-4ab6-8378-94cfd9f4af1d"
}

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

2021-06-04 22:57:12 | [Mutex] waiting for: [received:nodes:68b0be32-686a-4663-82f5-eaf8ce1fd62f:localhost]

2021-06-04 22:57:12 | [Mutex] received everything.

2021-06-04 22:57:12 | [Mutex] isItemNotified: received:node:68b0be32-686a-4663-82f5-eaf8ce1fd62f:localhost:node-24e17b3b-baad-4ab6-8378-94cfd9f4af1d:Node 24e17b3b-baad-4ab6-8378-94cfd9f4af1d :: true

deleteNodes 1.038s
2021-06-04 22:57:17 |

2021-06-04 22:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-06-04 22:57:17 | ------------------------------------

2021-06-04 22:57:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-24e17b3b-baad-4ab6-8378-94cfd9f4af1d"
}

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

2021-06-04 22:57:18 | [Mutex] waiting for: [received:nodes:975d3621-0502-4dcd-919c-acdea14909f2:localhost]

2021-06-04 22:57:18 | [Mutex] waiting for: [received:nodes:975d3621-0502-4dcd-919c-acdea14909f2:localhost]

2021-06-04 22:57:18 | [Mutex] received everything.

2021-06-04 22:57:18 | [Mutex] isItemNotified: received:node:975d3621-0502-4dcd-919c-acdea14909f2:localhost:node-24e17b3b-baad-4ab6-8378-94cfd9f4af1d:Node 24e17b3b-baad-4ab6-8378-94cfd9f4af1d :: false

deleteSubnodes 1.034s
2021-06-04 22:57:16 |

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

2021-06-04 22:57:16 | ------------------------------------

2021-06-04 22:57:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d690353d-b6c6-4138-8383-c72cfb9bd3de"
}

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

2021-06-04 22:57:17 | [Mutex] waiting for: [received:nodes:d9e7c922-b057-4d0e-9f31-6d3db94f6fbd:localhost]

2021-06-04 22:57:17 | [Mutex] received everything.

2021-06-04 22:57:17 | [Mutex] isItemNotified: received:node:d9e7c922-b057-4d0e-9f31-6d3db94f6fbd:localhost:node-d690353d-b6c6-4138-8383-c72cfb9bd3de:Node d690353d-b6c6-4138-8383-c72cfb9bd3de :: false

2021-06-04 22:57:17 | [Mutex] waiting for: [received:nodes:57bd714c-fa3c-4fa2-8cf9-8546be43ffdc:localhost]

2021-06-04 22:57:17 | [Mutex] received everything.

2021-06-04 22:57:17 | [Mutex] isItemNotified: received:node:57bd714c-fa3c-4fa2-8cf9-8546be43ffdc:localhost:node-d690353d-b6c6-4138-8383-c72cfb9bd3de:Node d690353d-b6c6-4138-8383-c72cfb9bd3de :: false

publishItemsToNodes 0.051s
2021-06-04 22:57:14 |

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

2021-06-04 22:57:14 | ------------------------------------

2021-06-04 22:57:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d690353d-b6c6-4138-8383-c72cfb9bd3de",
    "entry": "<test>item-8942ab9f-e1c2-4d70-aea1-754a584d5328</test>",
    "item-id": "item-8942ab9f-e1c2-4d70-aea1-754a584d5328"
}

2021-06-04 22:57:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8942ab9f-e1c2-4d70-aea1-754a584d5328"
}

2021-06-04 22:57:14 | [Mutex] waiting for: [published:item:notifieditem-8942ab9f-e1c2-4d70-aea1-754a584d5328:admin@test-domain.com]

2021-06-04 22:57:14 | [Mutex] received everything.

2021-06-04 22:57:14 | [Mutex] isItemNotified: published:item:notifieditem-8942ab9f-e1c2-4d70-aea1-754a584d5328:admin@test-domain.com :: true

retractItemsFromNodes 0.097s
2021-06-04 22:57:14 |

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

2021-06-04 22:57:14 | ------------------------------------

2021-06-04 22:57:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d690353d-b6c6-4138-8383-c72cfb9bd3de",
    "item-id": "item-8942ab9f-e1c2-4d70-aea1-754a584d5328"
}

2021-06-04 22:57:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8942ab9f-e1c2-4d70-aea1-754a584d5328"
}

2021-06-04 22:57:15 | [Mutex] waiting for: [retracted:item:notifieditem-8942ab9f-e1c2-4d70-aea1-754a584d5328:admin@test-domain.com]

2021-06-04 22:57:15 | [Mutex] received everything.

2021-06-04 22:57:15 | [Mutex] isItemNotified: retracted:item:notifieditem-8942ab9f-e1c2-4d70-aea1-754a584d5328:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2021-06-04 22:57:14 |

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

2021-06-04 22:57:14 | ------------------------------------

2021-06-04 22:57:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d690353d-b6c6-4138-8383-c72cfb9bd3de",
    "item-id": "item-8942ab9f-e1c2-4d70-aea1-754a584d5328"
}

2021-06-04 22:57:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d690353d-b6c6-4138-8383-c72cfb9bd3de",
    "item-id": "item-8942ab9f-e1c2-4d70-aea1-754a584d5328",
    "item": [
        "<item id=\"item-8942ab9f-e1c2-4d70-aea1-754a584d5328\"><test>item-8942ab9f-e1c2-4d70-aea1-754a584d5328</test></item>"
    ]
}

2021-06-04 22:57:14 | [Mutex] notify: [retrieved:item:item-8942ab9f-e1c2-4d70-aea1-754a584d5328:payload-matches:true:localhost]

2021-06-04 22:57:14 | [Mutex] received everything.

2021-06-04 22:57:14 | [Mutex] isItemNotified: retrieved:item:item-8942ab9f-e1c2-4d70-aea1-754a584d5328:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.059s
2021-06-04 22:57:14 |

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

2021-06-04 22:57:14 | ------------------------------------

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

2021-06-04 22:57:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d690353d-b6c6-4138-8383-c72cfb9bd3de",
        "node-24e17b3b-baad-4ab6-8378-94cfd9f4af1d",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-06-04 22:57:14 |

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

2021-06-04 22:57:14 | ------------------------------------

2021-06-04 22:57:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d690353d-b6c6-4138-8383-c72cfb9bd3de)"
}

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

subscribeNodes 1.015s
2021-06-04 22:57:13 |

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

2021-06-04 22:57:13 | ------------------------------------

2021-06-04 22:57:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d690353d-b6c6-4138-8383-c72cfb9bd3de",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.057s
2021-06-04 22:57:15 |

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

2021-06-04 22:57:15 | ------------------------------------

2021-06-04 22:57:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d690353d-b6c6-4138-8383-c72cfb9bd3de",
    "jids": [
        "admin@test-domain.com"
    ]
}

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