Generated by TestNG with ReportNG at 08:08 PST on Wednesday 16 February 2022
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 : 8.964s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.120s
2022-02-16 08:21:43 |

2022-02-16 08:21:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:43 | ------------------------------------

2022-02-16 08:21:43 | [Mutex] waiting for: [configured:node:node-43fe2ecb-7517-4e24-82ec-f808550bf008:node-421c0998-3c47-4e2b-9f5c-1bb421f9a329]

2022-02-16 08:21:43 | [Mutex] received everything.

2022-02-16 08:21:43 | [Mutex] isItemNotified: configured:node:node-43fe2ecb-7517-4e24-82ec-f808550bf008:node-421c0998-3c47-4e2b-9f5c-1bb421f9a329 :: true

2022-02-16 08:21:44 | [Mutex] waiting for: [received:nodes:e29a4bc3-e0a0-4895-a3c4-dee16d45c87b:localhost]

2022-02-16 08:21:44 | [Mutex] received everything.

2022-02-16 08:21:44 | [Mutex] isItemNotified: received:node:e29a4bc3-e0a0-4895-a3c4-dee16d45c87b:localhost:node-43fe2ecb-7517-4e24-82ec-f808550bf008:Node 43fe2ecb-7517-4e24-82ec-f808550bf008 :: true

2022-02-16 08:21:44 | [Mutex] waiting for: [received:nodes:baa33f81-2336-4ebf-8840-172681e4b4a2:localhost]

2022-02-16 08:21:44 | [Mutex] received everything.

2022-02-16 08:21:44 | [Mutex] isItemNotified: received:node:baa33f81-2336-4ebf-8840-172681e4b4a2:localhost:node-43fe2ecb-7517-4e24-82ec-f808550bf008:Node 43fe2ecb-7517-4e24-82ec-f808550bf008 :: false

createNodes 1.657s
2022-02-16 08:21:40 |

2022-02-16 08:21:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:40 | ------------------------------------

2022-02-16 08:21:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008",
    "pubsub#title": "Node 43fe2ecb-7517-4e24-82ec-f808550bf008"
}

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

2022-02-16 08:21:42 | [Mutex] waiting for: [received:nodes:64e9d301-7ef8-4e9b-ae6e-3ab75b924124:localhost]

2022-02-16 08:21:42 | [Mutex] waiting for: [received:nodes:64e9d301-7ef8-4e9b-ae6e-3ab75b924124:localhost]

2022-02-16 08:21:42 | [Mutex] received everything.

2022-02-16 08:21:42 | [Mutex] isItemNotified: received:node:64e9d301-7ef8-4e9b-ae6e-3ab75b924124:localhost:node-43fe2ecb-7517-4e24-82ec-f808550bf008:Node 43fe2ecb-7517-4e24-82ec-f808550bf008 :: true

createSubnodes 1.024s
2022-02-16 08:21:42 |

2022-02-16 08:21:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:42 | ------------------------------------

2022-02-16 08:21:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-421c0998-3c47-4e2b-9f5c-1bb421f9a329",
    "pubsub#title": "Node 421c0998-3c47-4e2b-9f5c-1bb421f9a329"
}

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

2022-02-16 08:21:43 | [Mutex] waiting for: [received:nodes:149a429c-c844-4cc4-8e7c-94211896fd13:localhost]

2022-02-16 08:21:43 | [Mutex] received everything.

2022-02-16 08:21:43 | [Mutex] isItemNotified: received:node:149a429c-c844-4cc4-8e7c-94211896fd13:localhost:node-421c0998-3c47-4e2b-9f5c-1bb421f9a329:Node 421c0998-3c47-4e2b-9f5c-1bb421f9a329 :: true

deleteNodes 1.024s
2022-02-16 08:21:47 |

2022-02-16 08:21:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:47 | ------------------------------------

2022-02-16 08:21:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-421c0998-3c47-4e2b-9f5c-1bb421f9a329"
}

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

2022-02-16 08:21:48 | [Mutex] waiting for: [received:nodes:28ed082f-d2b9-409e-be7a-f719fe5542af:localhost]

2022-02-16 08:21:48 | [Mutex] received everything.

2022-02-16 08:21:48 | [Mutex] isItemNotified: received:node:28ed082f-d2b9-409e-be7a-f719fe5542af:localhost:node-421c0998-3c47-4e2b-9f5c-1bb421f9a329:Node 421c0998-3c47-4e2b-9f5c-1bb421f9a329 :: false

deleteSubnodes 1.035s
2022-02-16 08:21:46 |

2022-02-16 08:21:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:46 | ------------------------------------

2022-02-16 08:21:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008"
}

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

2022-02-16 08:21:47 | [Mutex] waiting for: [received:nodes:ea127ef2-62ae-4f81-8f4d-66b52c87306e:localhost]

2022-02-16 08:21:47 | [Mutex] received everything.

2022-02-16 08:21:47 | [Mutex] isItemNotified: received:node:ea127ef2-62ae-4f81-8f4d-66b52c87306e:localhost:node-43fe2ecb-7517-4e24-82ec-f808550bf008:Node 43fe2ecb-7517-4e24-82ec-f808550bf008 :: false

2022-02-16 08:21:47 | [Mutex] waiting for: [received:nodes:bba51996-1e95-4d4c-891d-b4b2e37ed25b:localhost]

2022-02-16 08:21:47 | [Mutex] received everything.

2022-02-16 08:21:47 | [Mutex] isItemNotified: received:node:bba51996-1e95-4d4c-891d-b4b2e37ed25b:localhost:node-43fe2ecb-7517-4e24-82ec-f808550bf008:Node 43fe2ecb-7517-4e24-82ec-f808550bf008 :: false

publishItemsToNodes 0.050s
2022-02-16 08:21:45 |

2022-02-16 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:45 | ------------------------------------

2022-02-16 08:21:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008",
    "entry": "<test>item-e33451b9-e2c2-4ca3-8a29-35a697ed3064</test>",
    "item-id": "item-e33451b9-e2c2-4ca3-8a29-35a697ed3064"
}

2022-02-16 08:21:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e33451b9-e2c2-4ca3-8a29-35a697ed3064"
}

2022-02-16 08:21:45 | [Mutex] waiting for: [published:item:notifieditem-e33451b9-e2c2-4ca3-8a29-35a697ed3064:admin@test-domain.com]

2022-02-16 08:21:45 | [Mutex] received everything.

2022-02-16 08:21:45 | [Mutex] isItemNotified: published:item:notifieditem-e33451b9-e2c2-4ca3-8a29-35a697ed3064:admin@test-domain.com :: true

retractItemsFromNodes 0.073s
2022-02-16 08:21:45 |

2022-02-16 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:45 | ------------------------------------

2022-02-16 08:21:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008",
    "item-id": "item-e33451b9-e2c2-4ca3-8a29-35a697ed3064"
}

2022-02-16 08:21:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e33451b9-e2c2-4ca3-8a29-35a697ed3064"
}

2022-02-16 08:21:45 | [Mutex] waiting for: [retracted:item:notifieditem-e33451b9-e2c2-4ca3-8a29-35a697ed3064:admin@test-domain.com]

2022-02-16 08:21:45 | [Mutex] received everything.

2022-02-16 08:21:45 | [Mutex] isItemNotified: retracted:item:notifieditem-e33451b9-e2c2-4ca3-8a29-35a697ed3064:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2022-02-16 08:21:45 |

2022-02-16 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:45 | ------------------------------------

2022-02-16 08:21:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008",
    "item-id": "item-e33451b9-e2c2-4ca3-8a29-35a697ed3064"
}

2022-02-16 08:21:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008",
    "item-id": "item-e33451b9-e2c2-4ca3-8a29-35a697ed3064",
    "item": [
        "<item id=\"item-e33451b9-e2c2-4ca3-8a29-35a697ed3064\"><test>item-e33451b9-e2c2-4ca3-8a29-35a697ed3064</test></item>"
    ]
}

2022-02-16 08:21:45 | [Mutex] notify: [retrieved:item:item-e33451b9-e2c2-4ca3-8a29-35a697ed3064:payload-matches:true:localhost]

2022-02-16 08:21:45 | [Mutex] received everything.

2022-02-16 08:21:45 | [Mutex] isItemNotified: retrieved:item:item-e33451b9-e2c2-4ca3-8a29-35a697ed3064:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-02-16 08:21:45 |

2022-02-16 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:45 | ------------------------------------

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

2022-02-16 08:21:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-421c0998-3c47-4e2b-9f5c-1bb421f9a329",
        "node-43fe2ecb-7517-4e24-82ec-f808550bf008"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-16 08:21:45 |

2022-02-16 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:45 | ------------------------------------

2022-02-16 08:21:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-43fe2ecb-7517-4e24-82ec-f808550bf008)"
}

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

subscribeNodes 1.010s
2022-02-16 08:21:44 |

2022-02-16 08:21:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:44 | ------------------------------------

2022-02-16 08:21:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.086s
2022-02-16 08:21:45 |

2022-02-16 08:21:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 08:21:45 | ------------------------------------

2022-02-16 08:21:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-43fe2ecb-7517-4e24-82ec-f808550bf008",
    "jids": [
        "admin@test-domain.com"
    ]
}

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