Generated by TestNG with ReportNG at 21:21 PST on Monday 01 March 2021
root@eaa73862192b / 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.996s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.131s
2021-03-01 21:36:42 |

2021-03-01 21:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:42 | ------------------------------------

2021-03-01 21:36:42 | [Mutex] waiting for: [configured:node:node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311:node-5ec02f95-d9d8-45d1-a8e2-7fa26e877a92]

2021-03-01 21:36:42 | [Mutex] received everything.

2021-03-01 21:36:42 | [Mutex] isItemNotified: configured:node:node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311:node-5ec02f95-d9d8-45d1-a8e2-7fa26e877a92 :: true

2021-03-01 21:36:43 | [Mutex] waiting for: [received:nodes:c96e9627-e66c-4fec-bee2-e18a235703b6:localhost]

2021-03-01 21:36:43 | [Mutex] waiting for: [received:nodes:c96e9627-e66c-4fec-bee2-e18a235703b6:localhost]

2021-03-01 21:36:43 | [Mutex] received everything.

2021-03-01 21:36:43 | [Mutex] isItemNotified: received:node:c96e9627-e66c-4fec-bee2-e18a235703b6:localhost:node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311:Node 1a3a38bc-fd96-4d48-b6f6-0a29cc79c311 :: true

2021-03-01 21:36:43 | [Mutex] waiting for: [received:nodes:64e7a19e-76c5-4662-960c-6c8fc2602ec7:localhost]

2021-03-01 21:36:43 | [Mutex] waiting for: [received:nodes:64e7a19e-76c5-4662-960c-6c8fc2602ec7:localhost]

2021-03-01 21:36:43 | [Mutex] received everything.

2021-03-01 21:36:43 | [Mutex] isItemNotified: received:node:64e7a19e-76c5-4662-960c-6c8fc2602ec7:localhost:node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311:Node 1a3a38bc-fd96-4d48-b6f6-0a29cc79c311 :: false

createNodes 1.603s
2021-03-01 21:36:39 |

2021-03-01 21:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:39 | ------------------------------------

2021-03-01 21:36:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311",
    "pubsub#title": "Node 1a3a38bc-fd96-4d48-b6f6-0a29cc79c311"
}

2021-03-01 21:36:39 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:36:41 | [Mutex] waiting for: [received:nodes:fed807b2-c823-478d-b3e6-f3764161573e:localhost]

2021-03-01 21:36:41 | [Mutex] received everything.

2021-03-01 21:36:41 | [Mutex] isItemNotified: received:node:fed807b2-c823-478d-b3e6-f3764161573e:localhost:node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311:Node 1a3a38bc-fd96-4d48-b6f6-0a29cc79c311 :: true

createSubnodes 1.025s
2021-03-01 21:36:41 |

2021-03-01 21:36:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:41 | ------------------------------------

2021-03-01 21:36:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5ec02f95-d9d8-45d1-a8e2-7fa26e877a92",
    "pubsub#title": "Node 5ec02f95-d9d8-45d1-a8e2-7fa26e877a92"
}

2021-03-01 21:36:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:36:42 | [Mutex] waiting for: [received:nodes:a456e4cb-5873-495e-ac8c-6e22bf9ec254:localhost]

2021-03-01 21:36:42 | [Mutex] received everything.

2021-03-01 21:36:42 | [Mutex] isItemNotified: received:node:a456e4cb-5873-495e-ac8c-6e22bf9ec254:localhost:node-5ec02f95-d9d8-45d1-a8e2-7fa26e877a92:Node 5ec02f95-d9d8-45d1-a8e2-7fa26e877a92 :: true

deleteNodes 1.019s
2021-03-01 21:36:46 |

2021-03-01 21:36:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:46 | ------------------------------------

2021-03-01 21:36:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5ec02f95-d9d8-45d1-a8e2-7fa26e877a92"
}

2021-03-01 21:36:46 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:36:47 | [Mutex] waiting for: [received:nodes:15cc71ee-7c01-4bea-9235-f5ca92fdba01:localhost]

2021-03-01 21:36:47 | [Mutex] received everything.

2021-03-01 21:36:47 | [Mutex] isItemNotified: received:node:15cc71ee-7c01-4bea-9235-f5ca92fdba01:localhost:node-5ec02f95-d9d8-45d1-a8e2-7fa26e877a92:Node 5ec02f95-d9d8-45d1-a8e2-7fa26e877a92 :: false

deleteSubnodes 1.025s
2021-03-01 21:36:45 |

2021-03-01 21:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:45 | ------------------------------------

2021-03-01 21:36:45 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311"
}

2021-03-01 21:36:45 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:36:46 | [Mutex] waiting for: [received:nodes:cf60f33b-e390-4ed7-a5be-b443853f9491:localhost]

2021-03-01 21:36:46 | [Mutex] received everything.

2021-03-01 21:36:46 | [Mutex] isItemNotified: received:node:cf60f33b-e390-4ed7-a5be-b443853f9491:localhost:node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311:Node 1a3a38bc-fd96-4d48-b6f6-0a29cc79c311 :: false

2021-03-01 21:36:46 | [Mutex] waiting for: [received:nodes:e2245474-cfa7-445b-bc65-c5b64d543d3c:localhost]

2021-03-01 21:36:46 | [Mutex] received everything.

2021-03-01 21:36:46 | [Mutex] isItemNotified: received:node:e2245474-cfa7-445b-bc65-c5b64d543d3c:localhost:node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311:Node 1a3a38bc-fd96-4d48-b6f6-0a29cc79c311 :: false

publishItemsToNodes 0.041s
2021-03-01 21:36:44 |

2021-03-01 21:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:44 | ------------------------------------

2021-03-01 21:36:44 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311",
    "entry": "<test>item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9</test>",
    "item-id": "item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9"
}

2021-03-01 21:36:44 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9"
}

2021-03-01 21:36:44 | [Mutex] received everything.

2021-03-01 21:36:44 | [Mutex] isItemNotified: published:item:notifieditem-11ed7409-0eaf-46c5-be56-2db2ceee7ce9:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-03-01 21:36:44 |

2021-03-01 21:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:44 | ------------------------------------

2021-03-01 21:36:44 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311",
    "item-id": "item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9"
}

2021-03-01 21:36:44 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9"
}

2021-03-01 21:36:44 | [Mutex] received everything.

2021-03-01 21:36:44 | [Mutex] isItemNotified: retracted:item:notifieditem-11ed7409-0eaf-46c5-be56-2db2ceee7ce9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.073s
2021-03-01 21:36:44 |

2021-03-01 21:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:44 | ------------------------------------

2021-03-01 21:36:44 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311",
    "item-id": "item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9"
}

2021-03-01 21:36:44 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311",
    "item-id": "item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9",
    "item": [
        "<item id=\"item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9\"><test>item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9</test></item>"
    ]
}

2021-03-01 21:36:44 | [Mutex] notify: [retrieved:item:item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9:payload-matches:true:localhost]

2021-03-01 21:36:44 | [Mutex] received everything.

2021-03-01 21:36:44 | [Mutex] isItemNotified: retrieved:item:item-11ed7409-0eaf-46c5-be56-2db2ceee7ce9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2021-03-01 21:36:44 |

2021-03-01 21:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:44 | ------------------------------------

2021-03-01 21:36:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-01 21:36:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5ec02f95-d9d8-45d1-a8e2-7fa26e877a92",
        "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-03-01 21:36:44 |

2021-03-01 21:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:44 | ------------------------------------

2021-03-01 21:36:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311)"
}

2021-03-01 21:36:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2021-03-01 21:36:43 |

2021-03-01 21:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:43 | ------------------------------------

2021-03-01 21:36:43 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-01 21:36:43 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2021-03-01 21:36:44 |

2021-03-01 21:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:36:44 | ------------------------------------

2021-03-01 21:36:44 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1a3a38bc-fd96-4d48-b6f6-0a29cc79c311",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-01 21:36:44 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}