Generated by TestNG with ReportNG at 07:46 PDT on Tuesday 12 July 2022
root@7c41cec37518 / 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.759s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.081s
2022-07-12 08:02:03 |

2022-07-12 08:02:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:03 | ------------------------------------

2022-07-12 08:02:03 | [Mutex] waiting for: [configured:node:node-c6e98b79-9d45-475c-848d-63d0e0a5cc75:node-864360ca-3563-47d4-9039-0f4eb9363091]

2022-07-12 08:02:03 | [Mutex] received everything.

2022-07-12 08:02:03 | [Mutex] isItemNotified: configured:node:node-c6e98b79-9d45-475c-848d-63d0e0a5cc75:node-864360ca-3563-47d4-9039-0f4eb9363091 :: true

2022-07-12 08:02:04 | [Mutex] waiting for: [received:nodes:aa19c6be-0cab-4c48-932c-cb5e854413ee:localhost]

2022-07-12 08:02:04 | [Mutex] received everything.

2022-07-12 08:02:04 | [Mutex] isItemNotified: received:node:aa19c6be-0cab-4c48-932c-cb5e854413ee:localhost:node-c6e98b79-9d45-475c-848d-63d0e0a5cc75:Node c6e98b79-9d45-475c-848d-63d0e0a5cc75 :: true

2022-07-12 08:02:04 | [Mutex] waiting for: [received:nodes:2011f46c-1a5a-45d2-94e5-8ff3d545ca08:localhost]

2022-07-12 08:02:04 | [Mutex] waiting for: [received:nodes:2011f46c-1a5a-45d2-94e5-8ff3d545ca08:localhost]

2022-07-12 08:02:04 | [Mutex] received everything.

2022-07-12 08:02:04 | [Mutex] isItemNotified: received:node:2011f46c-1a5a-45d2-94e5-8ff3d545ca08:localhost:node-c6e98b79-9d45-475c-848d-63d0e0a5cc75:Node c6e98b79-9d45-475c-848d-63d0e0a5cc75 :: false

createNodes 1.658s
2022-07-12 08:02:00 |

2022-07-12 08:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:00 | ------------------------------------

2022-07-12 08:02:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75",
    "pubsub#title": "Node c6e98b79-9d45-475c-848d-63d0e0a5cc75"
}

2022-07-12 08:02:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:02:02 | [Mutex] waiting for: [received:nodes:f36ddb75-c7cf-496a-acf0-f4d5fd20b29e:localhost]

2022-07-12 08:02:02 | [Mutex] received everything.

2022-07-12 08:02:02 | [Mutex] isItemNotified: received:node:f36ddb75-c7cf-496a-acf0-f4d5fd20b29e:localhost:node-c6e98b79-9d45-475c-848d-63d0e0a5cc75:Node c6e98b79-9d45-475c-848d-63d0e0a5cc75 :: true

createSubnodes 1.022s
2022-07-12 08:02:02 |

2022-07-12 08:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:02 | ------------------------------------

2022-07-12 08:02:02 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-864360ca-3563-47d4-9039-0f4eb9363091",
    "pubsub#title": "Node 864360ca-3563-47d4-9039-0f4eb9363091"
}

2022-07-12 08:02:02 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:02:03 | [Mutex] waiting for: [received:nodes:2afb7efb-98c7-4c83-aa29-66bf59d747cc:localhost]

2022-07-12 08:02:03 | [Mutex] waiting for: [received:nodes:2afb7efb-98c7-4c83-aa29-66bf59d747cc:localhost]

2022-07-12 08:02:03 | [Mutex] waiting for: [received:nodes:2afb7efb-98c7-4c83-aa29-66bf59d747cc:localhost]

2022-07-12 08:02:03 | [Mutex] waiting for: [received:nodes:2afb7efb-98c7-4c83-aa29-66bf59d747cc:localhost]

2022-07-12 08:02:03 | [Mutex] received everything.

2022-07-12 08:02:03 | [Mutex] isItemNotified: received:node:2afb7efb-98c7-4c83-aa29-66bf59d747cc:localhost:node-864360ca-3563-47d4-9039-0f4eb9363091:Node 864360ca-3563-47d4-9039-0f4eb9363091 :: true

deleteNodes 1.019s
2022-07-12 08:02:08 |

2022-07-12 08:02:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:08 | ------------------------------------

2022-07-12 08:02:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-864360ca-3563-47d4-9039-0f4eb9363091"
}

2022-07-12 08:02:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:02:09 | [Mutex] waiting for: [received:nodes:aea2bfc3-0d1f-4e8f-8835-06bbed3d47a6:localhost]

2022-07-12 08:02:09 | [Mutex] received everything.

2022-07-12 08:02:09 | [Mutex] isItemNotified: received:node:aea2bfc3-0d1f-4e8f-8835-06bbed3d47a6:localhost:node-864360ca-3563-47d4-9039-0f4eb9363091:Node 864360ca-3563-47d4-9039-0f4eb9363091 :: false

deleteSubnodes 1.026s
2022-07-12 08:02:06 |

2022-07-12 08:02:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:06 | ------------------------------------

2022-07-12 08:02:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75"
}

2022-07-12 08:02:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:02:07 | [Mutex] waiting for: [received:nodes:f8b20c9b-816d-45c9-b9a3-300cb9126642:localhost]

2022-07-12 08:02:07 | [Mutex] waiting for: [received:nodes:f8b20c9b-816d-45c9-b9a3-300cb9126642:localhost]

2022-07-12 08:02:07 | [Mutex] received everything.

2022-07-12 08:02:07 | [Mutex] isItemNotified: received:node:f8b20c9b-816d-45c9-b9a3-300cb9126642:localhost:node-c6e98b79-9d45-475c-848d-63d0e0a5cc75:Node c6e98b79-9d45-475c-848d-63d0e0a5cc75 :: false

2022-07-12 08:02:07 | [Mutex] waiting for: [received:nodes:e26de4fc-c27e-40c2-a33b-781942e4d4c1:localhost]

2022-07-12 08:02:08 | [Mutex] received everything.

2022-07-12 08:02:08 | [Mutex] isItemNotified: received:node:e26de4fc-c27e-40c2-a33b-781942e4d4c1:localhost:node-c6e98b79-9d45-475c-848d-63d0e0a5cc75:Node c6e98b79-9d45-475c-848d-63d0e0a5cc75 :: false

publishItemsToNodes 0.047s
2022-07-12 08:02:05 |

2022-07-12 08:02:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:05 | ------------------------------------

2022-07-12 08:02:05 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75",
    "entry": "<test>item-462949f6-cf05-40ce-837c-a987646ad993</test>",
    "item-id": "item-462949f6-cf05-40ce-837c-a987646ad993"
}

2022-07-12 08:02:05 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-462949f6-cf05-40ce-837c-a987646ad993"
}

2022-07-12 08:02:05 | [Mutex] received everything.

2022-07-12 08:02:05 | [Mutex] isItemNotified: published:item:notifieditem-462949f6-cf05-40ce-837c-a987646ad993:admin@test-domain.com :: true

retractItemsFromNodes 0.144s
2022-07-12 08:02:05 |

2022-07-12 08:02:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:05 | ------------------------------------

2022-07-12 08:02:05 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75",
    "item-id": "item-462949f6-cf05-40ce-837c-a987646ad993"
}

2022-07-12 08:02:05 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-462949f6-cf05-40ce-837c-a987646ad993"
}

2022-07-12 08:02:05 | [Mutex] received everything.

2022-07-12 08:02:05 | [Mutex] isItemNotified: retracted:item:notifieditem-462949f6-cf05-40ce-837c-a987646ad993:admin@test-domain.com :: true

retrieveItemsFromNodes 0.090s
2022-07-12 08:02:05 |

2022-07-12 08:02:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:05 | ------------------------------------

2022-07-12 08:02:05 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75",
    "item-id": "item-462949f6-cf05-40ce-837c-a987646ad993"
}

2022-07-12 08:02:05 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75",
    "item-id": "item-462949f6-cf05-40ce-837c-a987646ad993",
    "item": [
        "<item id=\"item-462949f6-cf05-40ce-837c-a987646ad993\"><test>item-462949f6-cf05-40ce-837c-a987646ad993</test></item>"
    ]
}

2022-07-12 08:02:05 | [Mutex] notify: [retrieved:item:item-462949f6-cf05-40ce-837c-a987646ad993:payload-matches:true:localhost]

2022-07-12 08:02:05 | [Mutex] received everything.

2022-07-12 08:02:05 | [Mutex] isItemNotified: retrieved:item:item-462949f6-cf05-40ce-837c-a987646ad993:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-12 08:02:05 |

2022-07-12 08:02:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:05 | ------------------------------------

2022-07-12 08:02:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-12 08:02:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-864360ca-3563-47d4-9039-0f4eb9363091",
        "test",
        "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-12 08:02:05 |

2022-07-12 08:02:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:05 | ------------------------------------

2022-07-12 08:02:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c6e98b79-9d45-475c-848d-63d0e0a5cc75)"
}

2022-07-12 08:02:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2022-07-12 08:02:04 |

2022-07-12 08:02:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:04 | ------------------------------------

2022-07-12 08:02:04 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 08:02:04 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2022-07-12 08:02:05 |

2022-07-12 08:02:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:02:05 | ------------------------------------

2022-07-12 08:02:05 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c6e98b79-9d45-475c-848d-63d0e0a5cc75",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 08:02:05 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}