Generated by TestNG with ReportNG at 23:06 PDT on Monday 19 October 2020
root@43fec6d4badf / 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.992s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2020-10-19 23:22:30 |

2020-10-19 23:22:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:30 | ------------------------------------

2020-10-19 23:22:30 | [Mutex] waiting for: [configured:node:node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8:node-d12c265b-abf0-4e91-9d60-6dfeed4db67d]

2020-10-19 23:22:30 | [Mutex] received everything.

2020-10-19 23:22:30 | [Mutex] isItemNotified: configured:node:node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8:node-d12c265b-abf0-4e91-9d60-6dfeed4db67d :: true

2020-10-19 23:22:31 | [Mutex] waiting for: [received:nodes:1977f5f3-6977-4781-adba-9d92120f68bb:localhost]

2020-10-19 23:22:31 | [Mutex] received everything.

2020-10-19 23:22:31 | [Mutex] isItemNotified: received:node:1977f5f3-6977-4781-adba-9d92120f68bb:localhost:node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8:Node bdec0b92-6f6f-49e2-b452-3a6595fa59f8 :: true

2020-10-19 23:22:31 | [Mutex] waiting for: [received:nodes:6ec7998d-7729-4bc6-9009-b98eb8759ec0:localhost]

2020-10-19 23:22:31 | [Mutex] waiting for: [received:nodes:6ec7998d-7729-4bc6-9009-b98eb8759ec0:localhost]

2020-10-19 23:22:31 | [Mutex] waiting for: [received:nodes:6ec7998d-7729-4bc6-9009-b98eb8759ec0:localhost]

2020-10-19 23:22:31 | [Mutex] received everything.

2020-10-19 23:22:31 | [Mutex] isItemNotified: received:node:6ec7998d-7729-4bc6-9009-b98eb8759ec0:localhost:node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8:Node bdec0b92-6f6f-49e2-b452-3a6595fa59f8 :: false

createNodes 1.576s
2020-10-19 23:22:28 |

2020-10-19 23:22:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:28 | ------------------------------------

2020-10-19 23:22:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
    "pubsub#title": "Node bdec0b92-6f6f-49e2-b452-3a6595fa59f8"
}

2020-10-19 23:22:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-19 23:22:29 | [Mutex] waiting for: [received:nodes:9ec4522b-144e-4dc0-a95f-6792d0a54f1a:localhost]

2020-10-19 23:22:29 | [Mutex] waiting for: [received:nodes:9ec4522b-144e-4dc0-a95f-6792d0a54f1a:localhost]

2020-10-19 23:22:29 | [Mutex] received everything.

2020-10-19 23:22:29 | [Mutex] isItemNotified: received:node:9ec4522b-144e-4dc0-a95f-6792d0a54f1a:localhost:node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8:Node bdec0b92-6f6f-49e2-b452-3a6595fa59f8 :: true

createSubnodes 1.035s
2020-10-19 23:22:29 |

2020-10-19 23:22:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:29 | ------------------------------------

2020-10-19 23:22:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d12c265b-abf0-4e91-9d60-6dfeed4db67d",
    "pubsub#title": "Node d12c265b-abf0-4e91-9d60-6dfeed4db67d"
}

2020-10-19 23:22:29 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-19 23:22:30 | [Mutex] waiting for: [received:nodes:14912152-515c-489f-b12d-e955618bdf9c:localhost]

2020-10-19 23:22:30 | [Mutex] waiting for: [received:nodes:14912152-515c-489f-b12d-e955618bdf9c:localhost]

2020-10-19 23:22:30 | [Mutex] received everything.

2020-10-19 23:22:30 | [Mutex] isItemNotified: received:node:14912152-515c-489f-b12d-e955618bdf9c:localhost:node-d12c265b-abf0-4e91-9d60-6dfeed4db67d:Node d12c265b-abf0-4e91-9d60-6dfeed4db67d :: true

deleteNodes 1.030s
2020-10-19 23:22:35 |

2020-10-19 23:22:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:35 | ------------------------------------

2020-10-19 23:22:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d12c265b-abf0-4e91-9d60-6dfeed4db67d"
}

2020-10-19 23:22:35 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-19 23:22:36 | [Mutex] waiting for: [received:nodes:8c445ce7-9eba-4f7f-8005-84ce9727e874:localhost]

2020-10-19 23:22:36 | [Mutex] received everything.

2020-10-19 23:22:36 | [Mutex] isItemNotified: received:node:8c445ce7-9eba-4f7f-8005-84ce9727e874:localhost:node-d12c265b-abf0-4e91-9d60-6dfeed4db67d:Node d12c265b-abf0-4e91-9d60-6dfeed4db67d :: false

deleteSubnodes 1.032s
2020-10-19 23:22:34 |

2020-10-19 23:22:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:34 | ------------------------------------

2020-10-19 23:22:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8"
}

2020-10-19 23:22:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-19 23:22:35 | [Mutex] waiting for: [received:nodes:07b6ff04-7b78-42b8-b53d-f088f54fdcf9:localhost]

2020-10-19 23:22:35 | [Mutex] waiting for: [received:nodes:07b6ff04-7b78-42b8-b53d-f088f54fdcf9:localhost]

2020-10-19 23:22:35 | [Mutex] received everything.

2020-10-19 23:22:35 | [Mutex] isItemNotified: received:node:07b6ff04-7b78-42b8-b53d-f088f54fdcf9:localhost:node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8:Node bdec0b92-6f6f-49e2-b452-3a6595fa59f8 :: false

2020-10-19 23:22:35 | [Mutex] waiting for: [received:nodes:20cd67b3-c262-41f8-9afc-96c083033e97:localhost]

2020-10-19 23:22:35 | [Mutex] received everything.

2020-10-19 23:22:35 | [Mutex] isItemNotified: received:node:20cd67b3-c262-41f8-9afc-96c083033e97:localhost:node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8:Node bdec0b92-6f6f-49e2-b452-3a6595fa59f8 :: false

publishItemsToNodes 0.056s
2020-10-19 23:22:33 |

2020-10-19 23:22:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:33 | ------------------------------------

2020-10-19 23:22:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
    "entry": "<test>item-d910c80d-4ac6-4725-bf9f-3a1883a31744</test>",
    "item-id": "item-d910c80d-4ac6-4725-bf9f-3a1883a31744"
}

2020-10-19 23:22:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d910c80d-4ac6-4725-bf9f-3a1883a31744"
}

2020-10-19 23:22:33 | [Mutex] waiting for: [published:item:notifieditem-d910c80d-4ac6-4725-bf9f-3a1883a31744:admin@test-domain.com]

2020-10-19 23:22:33 | [Mutex] received everything.

2020-10-19 23:22:33 | [Mutex] isItemNotified: published:item:notifieditem-d910c80d-4ac6-4725-bf9f-3a1883a31744:admin@test-domain.com :: true

retractItemsFromNodes 0.073s
2020-10-19 23:22:33 |

2020-10-19 23:22:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:33 | ------------------------------------

2020-10-19 23:22:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
    "item-id": "item-d910c80d-4ac6-4725-bf9f-3a1883a31744"
}

2020-10-19 23:22:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d910c80d-4ac6-4725-bf9f-3a1883a31744"
}

2020-10-19 23:22:33 | [Mutex] waiting for: [retracted:item:notifieditem-d910c80d-4ac6-4725-bf9f-3a1883a31744:admin@test-domain.com]

2020-10-19 23:22:33 | [Mutex] received everything.

2020-10-19 23:22:33 | [Mutex] isItemNotified: retracted:item:notifieditem-d910c80d-4ac6-4725-bf9f-3a1883a31744:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2020-10-19 23:22:33 |

2020-10-19 23:22:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:33 | ------------------------------------

2020-10-19 23:22:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
    "item-id": "item-d910c80d-4ac6-4725-bf9f-3a1883a31744"
}

2020-10-19 23:22:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
    "item-id": "item-d910c80d-4ac6-4725-bf9f-3a1883a31744",
    "item": [
        "<item id=\"item-d910c80d-4ac6-4725-bf9f-3a1883a31744\"><test>item-d910c80d-4ac6-4725-bf9f-3a1883a31744</test></item>"
    ]
}

2020-10-19 23:22:33 | [Mutex] notify: [retrieved:item:item-d910c80d-4ac6-4725-bf9f-3a1883a31744:payload-matches:true:localhost]

2020-10-19 23:22:33 | [Mutex] received everything.

2020-10-19 23:22:33 | [Mutex] isItemNotified: retrieved:item:item-d910c80d-4ac6-4725-bf9f-3a1883a31744:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.071s
2020-10-19 23:22:33 |

2020-10-19 23:22:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:33 | ------------------------------------

2020-10-19 23:22:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-10-19 23:22:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
        "test",
        "node-d12c265b-abf0-4e91-9d60-6dfeed4db67d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-10-19 23:22:33 |

2020-10-19 23:22:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:33 | ------------------------------------

2020-10-19 23:22:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8)"
}

2020-10-19 23:22:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-10-19 23:22:31 |

2020-10-19 23:22:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:31 | ------------------------------------

2020-10-19 23:22:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-19 23:22:32 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.082s
2020-10-19 23:22:33 |

2020-10-19 23:22:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 23:22:33 | ------------------------------------

2020-10-19 23:22:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bdec0b92-6f6f-49e2-b452-3a6595fa59f8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-19 23:22:33 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}