Generated by TestNG with ReportNG at 22:16 PDT on Tuesday 11 July 2023
root@cc7d7fbb25f7 / Java 17.0.6 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.796s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2023-07-11 22:31:13 |

2023-07-11 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:13 | ------------------------------------

2023-07-11 22:31:13 | [Mutex] waiting for: [configured:node:node-6211fe54-3073-4894-beb2-ea74dd54b914:node-f5aea938-b491-404f-9260-e8f74bc1311d]

2023-07-11 22:31:13 | [Mutex] received everything.

2023-07-11 22:31:13 | [Mutex] isItemNotified: configured:node:node-6211fe54-3073-4894-beb2-ea74dd54b914:node-f5aea938-b491-404f-9260-e8f74bc1311d :: true

2023-07-11 22:31:14 | [Mutex] waiting for: [received:nodes:829a0239-0775-4971-a6b0-8d3c2f6173fc:localhost]

2023-07-11 22:31:14 | [Mutex] received everything.

2023-07-11 22:31:14 | [Mutex] isItemNotified: received:node:829a0239-0775-4971-a6b0-8d3c2f6173fc:localhost:node-6211fe54-3073-4894-beb2-ea74dd54b914:Node 6211fe54-3073-4894-beb2-ea74dd54b914 :: true

2023-07-11 22:31:14 | [Mutex] waiting for: [received:nodes:2ee6146c-439c-46a0-a306-cb625b341ca1:localhost]

2023-07-11 22:31:14 | [Mutex] waiting for: [received:nodes:2ee6146c-439c-46a0-a306-cb625b341ca1:localhost]

2023-07-11 22:31:14 | [Mutex] received everything.

2023-07-11 22:31:14 | [Mutex] isItemNotified: received:node:2ee6146c-439c-46a0-a306-cb625b341ca1:localhost:node-6211fe54-3073-4894-beb2-ea74dd54b914:Node 6211fe54-3073-4894-beb2-ea74dd54b914 :: false

createNodes 1.801s
2023-07-11 22:31:10 |

2023-07-11 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:10 | ------------------------------------

2023-07-11 22:31:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914",
    "pubsub#title": "Node 6211fe54-3073-4894-beb2-ea74dd54b914"
}

2023-07-11 22:31:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:12 | [Mutex] waiting for: [received:nodes:7447d052-8367-43b1-96c6-dd30081dae48:localhost]

2023-07-11 22:31:12 | [Mutex] waiting for: [received:nodes:7447d052-8367-43b1-96c6-dd30081dae48:localhost]

2023-07-11 22:31:12 | [Mutex] waiting for: [received:nodes:7447d052-8367-43b1-96c6-dd30081dae48:localhost]

2023-07-11 22:31:12 | [Mutex] received everything.

2023-07-11 22:31:12 | [Mutex] isItemNotified: received:node:7447d052-8367-43b1-96c6-dd30081dae48:localhost:node-6211fe54-3073-4894-beb2-ea74dd54b914:Node 6211fe54-3073-4894-beb2-ea74dd54b914 :: true

createSubnodes 1.025s
2023-07-11 22:31:12 |

2023-07-11 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:12 | ------------------------------------

2023-07-11 22:31:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f5aea938-b491-404f-9260-e8f74bc1311d",
    "pubsub#title": "Node f5aea938-b491-404f-9260-e8f74bc1311d"
}

2023-07-11 22:31:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:13 | [Mutex] waiting for: [received:nodes:26b00401-a37d-46d6-90ef-59bdfe89e21e:localhost]

2023-07-11 22:31:13 | [Mutex] waiting for: [received:nodes:26b00401-a37d-46d6-90ef-59bdfe89e21e:localhost]

2023-07-11 22:31:13 | [Mutex] waiting for: [received:nodes:26b00401-a37d-46d6-90ef-59bdfe89e21e:localhost]

2023-07-11 22:31:13 | [Mutex] waiting for: [received:nodes:26b00401-a37d-46d6-90ef-59bdfe89e21e:localhost]

2023-07-11 22:31:13 | [Mutex] received everything.

2023-07-11 22:31:13 | [Mutex] isItemNotified: received:node:26b00401-a37d-46d6-90ef-59bdfe89e21e:localhost:node-f5aea938-b491-404f-9260-e8f74bc1311d:Node f5aea938-b491-404f-9260-e8f74bc1311d :: true

deleteNodes 1.027s
2023-07-11 22:31:18 |

2023-07-11 22:31:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:18 | ------------------------------------

2023-07-11 22:31:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f5aea938-b491-404f-9260-e8f74bc1311d"
}

2023-07-11 22:31:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:19 | [Mutex] waiting for: [received:nodes:3cf41e25-3b3c-4f5a-83da-d9f5024d75da:localhost]

2023-07-11 22:31:19 | [Mutex] waiting for: [received:nodes:3cf41e25-3b3c-4f5a-83da-d9f5024d75da:localhost]

2023-07-11 22:31:19 | [Mutex] waiting for: [received:nodes:3cf41e25-3b3c-4f5a-83da-d9f5024d75da:localhost]

2023-07-11 22:31:19 | [Mutex] received everything.

2023-07-11 22:31:19 | [Mutex] isItemNotified: received:node:3cf41e25-3b3c-4f5a-83da-d9f5024d75da:localhost:node-f5aea938-b491-404f-9260-e8f74bc1311d:Node f5aea938-b491-404f-9260-e8f74bc1311d :: false

deleteSubnodes 1.026s
2023-07-11 22:31:17 |

2023-07-11 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:17 | ------------------------------------

2023-07-11 22:31:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914"
}

2023-07-11 22:31:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:18 | [Mutex] waiting for: [received:nodes:53f6922a-d31f-434f-afa1-b61a2a0ca967:localhost]

2023-07-11 22:31:18 | [Mutex] waiting for: [received:nodes:53f6922a-d31f-434f-afa1-b61a2a0ca967:localhost]

2023-07-11 22:31:18 | [Mutex] waiting for: [received:nodes:53f6922a-d31f-434f-afa1-b61a2a0ca967:localhost]

2023-07-11 22:31:18 | [Mutex] received everything.

2023-07-11 22:31:18 | [Mutex] isItemNotified: received:node:53f6922a-d31f-434f-afa1-b61a2a0ca967:localhost:node-6211fe54-3073-4894-beb2-ea74dd54b914:Node 6211fe54-3073-4894-beb2-ea74dd54b914 :: false

2023-07-11 22:31:18 | [Mutex] waiting for: [received:nodes:8e0fd31c-e34f-46d8-88f0-9eabf1d4d5b8:localhost]

2023-07-11 22:31:18 | [Mutex] received everything.

2023-07-11 22:31:18 | [Mutex] isItemNotified: received:node:8e0fd31c-e34f-46d8-88f0-9eabf1d4d5b8:localhost:node-6211fe54-3073-4894-beb2-ea74dd54b914:Node 6211fe54-3073-4894-beb2-ea74dd54b914 :: false

publishItemsToNodes 0.051s
2023-07-11 22:31:15 |

2023-07-11 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:15 | ------------------------------------

2023-07-11 22:31:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914",
    "entry": "<test>item-dac2c820-6db2-4c9a-aee4-668487dfb910</test>",
    "item-id": "item-dac2c820-6db2-4c9a-aee4-668487dfb910"
}

2023-07-11 22:31:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dac2c820-6db2-4c9a-aee4-668487dfb910"
}

2023-07-11 22:31:15 | [Mutex] waiting for: [published:item:notifieditem-dac2c820-6db2-4c9a-aee4-668487dfb910:admin@test-domain.com]

2023-07-11 22:31:15 | [Mutex] received everything.

2023-07-11 22:31:15 | [Mutex] isItemNotified: published:item:notifieditem-dac2c820-6db2-4c9a-aee4-668487dfb910:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-07-11 22:31:16 |

2023-07-11 22:31:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:16 | ------------------------------------

2023-07-11 22:31:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914",
    "item-id": "item-dac2c820-6db2-4c9a-aee4-668487dfb910"
}

2023-07-11 22:31:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dac2c820-6db2-4c9a-aee4-668487dfb910"
}

2023-07-11 22:31:16 | [Mutex] received everything.

2023-07-11 22:31:16 | [Mutex] isItemNotified: retracted:item:notifieditem-dac2c820-6db2-4c9a-aee4-668487dfb910:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2023-07-11 22:31:15 |

2023-07-11 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:15 | ------------------------------------

2023-07-11 22:31:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914",
    "item-id": "item-dac2c820-6db2-4c9a-aee4-668487dfb910"
}

2023-07-11 22:31:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914",
    "item-id": "item-dac2c820-6db2-4c9a-aee4-668487dfb910",
    "item": [
        "<item id=\"item-dac2c820-6db2-4c9a-aee4-668487dfb910\"><test>item-dac2c820-6db2-4c9a-aee4-668487dfb910</test></item>"
    ]
}

2023-07-11 22:31:15 | [Mutex] notify: [retrieved:item:item-dac2c820-6db2-4c9a-aee4-668487dfb910:payload-matches:true:localhost]

2023-07-11 22:31:15 | [Mutex] received everything.

2023-07-11 22:31:15 | [Mutex] isItemNotified: retrieved:item:item-dac2c820-6db2-4c9a-aee4-668487dfb910:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.068s
2023-07-11 22:31:15 |

2023-07-11 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:15 | ------------------------------------

2023-07-11 22:31:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-11 22:31:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6211fe54-3073-4894-beb2-ea74dd54b914",
        "node-f5aea938-b491-404f-9260-e8f74bc1311d",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.063s
2023-07-11 22:31:16 |

2023-07-11 22:31:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:16 | ------------------------------------

2023-07-11 22:31:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6211fe54-3073-4894-beb2-ea74dd54b914)"
}

2023-07-11 22:31:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2023-07-11 22:31:14 |

2023-07-11 22:31:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:14 | ------------------------------------

2023-07-11 22:31:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-11 22:31:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2023-07-11 22:31:16 |

2023-07-11 22:31:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:16 | ------------------------------------

2023-07-11 22:31:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6211fe54-3073-4894-beb2-ea74dd54b914",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-11 22:31:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}