Generated by TestNG with ReportNG at 21:40 PST on Monday 06 December 2021
root@b2c2a8eba6e6 / 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 : 9.048s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.176s
2021-12-06 21:54:10 |

2021-12-06 21:54:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:10 | ------------------------------------

2021-12-06 21:54:10 | [Mutex] waiting for: [configured:node:node-f65431ac-7226-474b-b6fb-d83b4ecb7832:node-a9c010b1-61b3-45c1-9a7f-90ceca44d41d]

2021-12-06 21:54:10 | [Mutex] received everything.

2021-12-06 21:54:10 | [Mutex] isItemNotified: configured:node:node-f65431ac-7226-474b-b6fb-d83b4ecb7832:node-a9c010b1-61b3-45c1-9a7f-90ceca44d41d :: true

2021-12-06 21:54:11 | [Mutex] waiting for: [received:nodes:9748d72e-0d1a-4d56-8aee-fe8d180a03d3:localhost]

2021-12-06 21:54:11 | [Mutex] received everything.

2021-12-06 21:54:11 | [Mutex] isItemNotified: received:node:9748d72e-0d1a-4d56-8aee-fe8d180a03d3:localhost:node-f65431ac-7226-474b-b6fb-d83b4ecb7832:Node f65431ac-7226-474b-b6fb-d83b4ecb7832 :: true

2021-12-06 21:54:11 | [Mutex] waiting for: [received:nodes:166cbdf4-47d6-4844-923b-f6cf1cc54e2b:localhost]

2021-12-06 21:54:11 | [Mutex] received everything.

2021-12-06 21:54:11 | [Mutex] isItemNotified: received:node:166cbdf4-47d6-4844-923b-f6cf1cc54e2b:localhost:node-f65431ac-7226-474b-b6fb-d83b4ecb7832:Node f65431ac-7226-474b-b6fb-d83b4ecb7832 :: false

createNodes 1.668s
2021-12-06 21:54:08 |

2021-12-06 21:54:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:08 | ------------------------------------

2021-12-06 21:54:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832",
    "pubsub#title": "Node f65431ac-7226-474b-b6fb-d83b4ecb7832"
}

2021-12-06 21:54:08 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 21:54:09 | [Mutex] waiting for: [received:nodes:a8cb0000-a730-4b39-8091-85b11ea3b348:localhost]

2021-12-06 21:54:09 | [Mutex] received everything.

2021-12-06 21:54:09 | [Mutex] isItemNotified: received:node:a8cb0000-a730-4b39-8091-85b11ea3b348:localhost:node-f65431ac-7226-474b-b6fb-d83b4ecb7832:Node f65431ac-7226-474b-b6fb-d83b4ecb7832 :: true

createSubnodes 1.033s
2021-12-06 21:54:09 |

2021-12-06 21:54:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:09 | ------------------------------------

2021-12-06 21:54:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a9c010b1-61b3-45c1-9a7f-90ceca44d41d",
    "pubsub#title": "Node a9c010b1-61b3-45c1-9a7f-90ceca44d41d"
}

2021-12-06 21:54:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 21:54:10 | [Mutex] waiting for: [received:nodes:4ae6e4ac-e2da-42ef-836e-1ef1e4258511:localhost]

2021-12-06 21:54:10 | [Mutex] received everything.

2021-12-06 21:54:10 | [Mutex] isItemNotified: received:node:4ae6e4ac-e2da-42ef-836e-1ef1e4258511:localhost:node-a9c010b1-61b3-45c1-9a7f-90ceca44d41d:Node a9c010b1-61b3-45c1-9a7f-90ceca44d41d :: true

deleteNodes 1.028s
2021-12-06 21:54:15 |

2021-12-06 21:54:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:15 | ------------------------------------

2021-12-06 21:54:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a9c010b1-61b3-45c1-9a7f-90ceca44d41d"
}

2021-12-06 21:54:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 21:54:16 | [Mutex] waiting for: [received:nodes:dfaa80ae-c8e0-4d60-bd6b-712701aef4e7:localhost]

2021-12-06 21:54:16 | [Mutex] received everything.

2021-12-06 21:54:16 | [Mutex] isItemNotified: received:node:dfaa80ae-c8e0-4d60-bd6b-712701aef4e7:localhost:node-a9c010b1-61b3-45c1-9a7f-90ceca44d41d:Node a9c010b1-61b3-45c1-9a7f-90ceca44d41d :: false

deleteSubnodes 1.038s
2021-12-06 21:54:14 |

2021-12-06 21:54:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:14 | ------------------------------------

2021-12-06 21:54:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832"
}

2021-12-06 21:54:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-12-06 21:54:15 | [Mutex] waiting for: [received:nodes:272443e4-2e86-476a-b32e-a37b71df9c65:localhost]

2021-12-06 21:54:15 | [Mutex] waiting for: [received:nodes:272443e4-2e86-476a-b32e-a37b71df9c65:localhost]

2021-12-06 21:54:15 | [Mutex] received everything.

2021-12-06 21:54:15 | [Mutex] isItemNotified: received:node:272443e4-2e86-476a-b32e-a37b71df9c65:localhost:node-f65431ac-7226-474b-b6fb-d83b4ecb7832:Node f65431ac-7226-474b-b6fb-d83b4ecb7832 :: false

2021-12-06 21:54:15 | [Mutex] waiting for: [received:nodes:442584e1-b81b-476d-a067-4eb30b8b9334:localhost]

2021-12-06 21:54:15 | [Mutex] received everything.

2021-12-06 21:54:15 | [Mutex] isItemNotified: received:node:442584e1-b81b-476d-a067-4eb30b8b9334:localhost:node-f65431ac-7226-474b-b6fb-d83b4ecb7832:Node f65431ac-7226-474b-b6fb-d83b4ecb7832 :: false

publishItemsToNodes 0.076s
2021-12-06 21:54:12 |

2021-12-06 21:54:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:12 | ------------------------------------

2021-12-06 21:54:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832",
    "entry": "<test>item-6475fcd0-872e-402f-a78b-2412e137c0a9</test>",
    "item-id": "item-6475fcd0-872e-402f-a78b-2412e137c0a9"
}

2021-12-06 21:54:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6475fcd0-872e-402f-a78b-2412e137c0a9"
}

2021-12-06 21:54:12 | [Mutex] waiting for: [published:item:notifieditem-6475fcd0-872e-402f-a78b-2412e137c0a9:admin@test-domain.com]

2021-12-06 21:54:13 | [Mutex] received everything.

2021-12-06 21:54:13 | [Mutex] isItemNotified: published:item:notifieditem-6475fcd0-872e-402f-a78b-2412e137c0a9:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2021-12-06 21:54:13 |

2021-12-06 21:54:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:13 | ------------------------------------

2021-12-06 21:54:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832",
    "item-id": "item-6475fcd0-872e-402f-a78b-2412e137c0a9"
}

2021-12-06 21:54:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6475fcd0-872e-402f-a78b-2412e137c0a9"
}

2021-12-06 21:54:13 | [Mutex] waiting for: [retracted:item:notifieditem-6475fcd0-872e-402f-a78b-2412e137c0a9:admin@test-domain.com]

2021-12-06 21:54:13 | [Mutex] received everything.

2021-12-06 21:54:13 | [Mutex] isItemNotified: retracted:item:notifieditem-6475fcd0-872e-402f-a78b-2412e137c0a9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.044s
2021-12-06 21:54:13 |

2021-12-06 21:54:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:13 | ------------------------------------

2021-12-06 21:54:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832",
    "item-id": "item-6475fcd0-872e-402f-a78b-2412e137c0a9"
}

2021-12-06 21:54:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832",
    "item-id": "item-6475fcd0-872e-402f-a78b-2412e137c0a9",
    "item": [
        "<item id=\"item-6475fcd0-872e-402f-a78b-2412e137c0a9\"><test>item-6475fcd0-872e-402f-a78b-2412e137c0a9</test></item>"
    ]
}

2021-12-06 21:54:13 | [Mutex] notify: [retrieved:item:item-6475fcd0-872e-402f-a78b-2412e137c0a9:payload-matches:true:localhost]

2021-12-06 21:54:13 | [Mutex] received everything.

2021-12-06 21:54:13 | [Mutex] isItemNotified: retrieved:item:item-6475fcd0-872e-402f-a78b-2412e137c0a9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.060s
2021-12-06 21:54:13 |

2021-12-06 21:54:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:13 | ------------------------------------

2021-12-06 21:54:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-12-06 21:54:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a9c010b1-61b3-45c1-9a7f-90ceca44d41d",
        "node-f65431ac-7226-474b-b6fb-d83b4ecb7832"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-12-06 21:54:13 |

2021-12-06 21:54:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:13 | ------------------------------------

2021-12-06 21:54:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f65431ac-7226-474b-b6fb-d83b4ecb7832)"
}

2021-12-06 21:54:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2021-12-06 21:54:11 |

2021-12-06 21:54:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:11 | ------------------------------------

2021-12-06 21:54:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-06 21:54:11 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-12-06 21:54:13 |

2021-12-06 21:54:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-12-06 21:54:13 | ------------------------------------

2021-12-06 21:54:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f65431ac-7226-474b-b6fb-d83b4ecb7832",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-12-06 21:54:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}