Generated by TestNG with ReportNG at 22:21 PDT on Tuesday 27 September 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (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.601s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2022-09-27 22:36:52 |

2022-09-27 22:36:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:52 | ------------------------------------

2022-09-27 22:36:52 | [Mutex] waiting for: [configured:node:node-c285a075-031f-4a3e-872b-d30c8e5d617c:node-a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e]

2022-09-27 22:36:52 | [Mutex] received everything.

2022-09-27 22:36:52 | [Mutex] isItemNotified: configured:node:node-c285a075-031f-4a3e-872b-d30c8e5d617c:node-a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e :: true

2022-09-27 22:36:53 | [Mutex] waiting for: [received:nodes:8c683d71-605c-41c0-b0ad-66cb5b25697e:localhost]

2022-09-27 22:36:53 | [Mutex] received everything.

2022-09-27 22:36:53 | [Mutex] isItemNotified: received:node:8c683d71-605c-41c0-b0ad-66cb5b25697e:localhost:node-c285a075-031f-4a3e-872b-d30c8e5d617c:Node c285a075-031f-4a3e-872b-d30c8e5d617c :: true

2022-09-27 22:36:53 | [Mutex] waiting for: [received:nodes:f2b9d55f-31cd-4f10-a69a-1a0c176bfcee:localhost]

2022-09-27 22:36:53 | [Mutex] waiting for: [received:nodes:f2b9d55f-31cd-4f10-a69a-1a0c176bfcee:localhost]

2022-09-27 22:36:53 | [Mutex] received everything.

2022-09-27 22:36:53 | [Mutex] isItemNotified: received:node:f2b9d55f-31cd-4f10-a69a-1a0c176bfcee:localhost:node-c285a075-031f-4a3e-872b-d30c8e5d617c:Node c285a075-031f-4a3e-872b-d30c8e5d617c :: false

createNodes 1.565s
2022-09-27 22:36:49 |

2022-09-27 22:36:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:49 | ------------------------------------

2022-09-27 22:36:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
    "pubsub#title": "Node c285a075-031f-4a3e-872b-d30c8e5d617c"
}

2022-09-27 22:36:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 22:36:51 | [Mutex] waiting for: [received:nodes:0d075871-b3e8-4960-9011-caac14bdc40e:localhost]

2022-09-27 22:36:51 | [Mutex] waiting for: [received:nodes:0d075871-b3e8-4960-9011-caac14bdc40e:localhost]

2022-09-27 22:36:51 | [Mutex] received everything.

2022-09-27 22:36:51 | [Mutex] isItemNotified: received:node:0d075871-b3e8-4960-9011-caac14bdc40e:localhost:node-c285a075-031f-4a3e-872b-d30c8e5d617c:Node c285a075-031f-4a3e-872b-d30c8e5d617c :: true

createSubnodes 1.025s
2022-09-27 22:36:51 |

2022-09-27 22:36:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:51 | ------------------------------------

2022-09-27 22:36:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e",
    "pubsub#title": "Node a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e"
}

2022-09-27 22:36:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 22:36:52 | [Mutex] waiting for: [received:nodes:f4f9952a-174e-424d-84b8-8b20c7099109:localhost]

2022-09-27 22:36:52 | [Mutex] received everything.

2022-09-27 22:36:52 | [Mutex] isItemNotified: received:node:f4f9952a-174e-424d-84b8-8b20c7099109:localhost:node-a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e:Node a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e :: true

deleteNodes 1.021s
2022-09-27 22:36:56 |

2022-09-27 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:56 | ------------------------------------

2022-09-27 22:36:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e"
}

2022-09-27 22:36:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 22:36:57 | [Mutex] waiting for: [received:nodes:330bcfc8-d288-43a6-b4ee-5a0f2de416db:localhost]

2022-09-27 22:36:57 | [Mutex] waiting for: [received:nodes:330bcfc8-d288-43a6-b4ee-5a0f2de416db:localhost]

2022-09-27 22:36:57 | [Mutex] received everything.

2022-09-27 22:36:57 | [Mutex] isItemNotified: received:node:330bcfc8-d288-43a6-b4ee-5a0f2de416db:localhost:node-a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e:Node a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e :: false

deleteSubnodes 1.030s
2022-09-27 22:36:55 |

2022-09-27 22:36:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:55 | ------------------------------------

2022-09-27 22:36:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c"
}

2022-09-27 22:36:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-27 22:36:56 | [Mutex] waiting for: [received:nodes:ffdd88f6-33d0-40d2-9626-1d337959b9d5:localhost]

2022-09-27 22:36:56 | [Mutex] waiting for: [received:nodes:ffdd88f6-33d0-40d2-9626-1d337959b9d5:localhost]

2022-09-27 22:36:56 | [Mutex] received everything.

2022-09-27 22:36:56 | [Mutex] isItemNotified: received:node:ffdd88f6-33d0-40d2-9626-1d337959b9d5:localhost:node-c285a075-031f-4a3e-872b-d30c8e5d617c:Node c285a075-031f-4a3e-872b-d30c8e5d617c :: false

2022-09-27 22:36:56 | [Mutex] waiting for: [received:nodes:f53d4c89-56f2-4ade-b8f5-877fa0c9889d:localhost]

2022-09-27 22:36:56 | [Mutex] received everything.

2022-09-27 22:36:56 | [Mutex] isItemNotified: received:node:f53d4c89-56f2-4ade-b8f5-877fa0c9889d:localhost:node-c285a075-031f-4a3e-872b-d30c8e5d617c:Node c285a075-031f-4a3e-872b-d30c8e5d617c :: false

publishItemsToNodes 0.052s
2022-09-27 22:36:54 |

2022-09-27 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:54 | ------------------------------------

2022-09-27 22:36:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
    "entry": "<test>item-4f9fc146-33ac-4125-ba86-c9f64072e710</test>",
    "item-id": "item-4f9fc146-33ac-4125-ba86-c9f64072e710"
}

2022-09-27 22:36:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f9fc146-33ac-4125-ba86-c9f64072e710"
}

2022-09-27 22:36:54 | [Mutex] waiting for: [published:item:notifieditem-4f9fc146-33ac-4125-ba86-c9f64072e710:admin@test-domain.com]

2022-09-27 22:36:54 | [Mutex] received everything.

2022-09-27 22:36:54 | [Mutex] isItemNotified: published:item:notifieditem-4f9fc146-33ac-4125-ba86-c9f64072e710:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2022-09-27 22:36:54 |

2022-09-27 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:54 | ------------------------------------

2022-09-27 22:36:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
    "item-id": "item-4f9fc146-33ac-4125-ba86-c9f64072e710"
}

2022-09-27 22:36:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4f9fc146-33ac-4125-ba86-c9f64072e710"
}

2022-09-27 22:36:54 | [Mutex] received everything.

2022-09-27 22:36:54 | [Mutex] isItemNotified: retracted:item:notifieditem-4f9fc146-33ac-4125-ba86-c9f64072e710:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-09-27 22:36:54 |

2022-09-27 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:54 | ------------------------------------

2022-09-27 22:36:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
    "item-id": "item-4f9fc146-33ac-4125-ba86-c9f64072e710"
}

2022-09-27 22:36:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
    "item-id": "item-4f9fc146-33ac-4125-ba86-c9f64072e710",
    "item": [
        "<item id=\"item-4f9fc146-33ac-4125-ba86-c9f64072e710\"><test>item-4f9fc146-33ac-4125-ba86-c9f64072e710</test></item>"
    ]
}

2022-09-27 22:36:54 | [Mutex] notify: [retrieved:item:item-4f9fc146-33ac-4125-ba86-c9f64072e710:payload-matches:true:localhost]

2022-09-27 22:36:54 | [Mutex] received everything.

2022-09-27 22:36:54 | [Mutex] isItemNotified: retrieved:item:item-4f9fc146-33ac-4125-ba86-c9f64072e710:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-27 22:36:54 |

2022-09-27 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:54 | ------------------------------------

2022-09-27 22:36:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-27 22:36:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
        "node-a746d43f-ff1b-4a6a-b9cf-4ffdda2a056e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-09-27 22:36:54 |

2022-09-27 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:54 | ------------------------------------

2022-09-27 22:36:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c285a075-031f-4a3e-872b-d30c8e5d617c)"
}

2022-09-27 22:36:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-09-27 22:36:53 |

2022-09-27 22:36:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:53 | ------------------------------------

2022-09-27 22:36:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-27 22:36:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2022-09-27 22:36:54 |

2022-09-27 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-27 22:36:54 | ------------------------------------

2022-09-27 22:36:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c285a075-031f-4a3e-872b-d30c8e5d617c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-27 22:36:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}