Generated by TestNG with ReportNG at 22:51 PDT on Thursday 04 August 2022
root@f9c07ffec79b / 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.847s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-08-04 23:07:04 |

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

2022-08-04 23:07:04 | ------------------------------------

2022-08-04 23:07:04 | [Mutex] waiting for: [configured:node:node-75876bfc-096d-4b3b-a986-8c75a1f32564:node-0a1b3ad1-fc7d-485b-8991-bfcfcac716fa]

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

2022-08-04 23:07:04 | [Mutex] isItemNotified: configured:node:node-75876bfc-096d-4b3b-a986-8c75a1f32564:node-0a1b3ad1-fc7d-485b-8991-bfcfcac716fa :: true

2022-08-04 23:07:05 | [Mutex] waiting for: [received:nodes:16204f48-8f79-4b2b-8c4d-8cf722dc30ed:localhost]

2022-08-04 23:07:05 | [Mutex] received everything.

2022-08-04 23:07:05 | [Mutex] isItemNotified: received:node:16204f48-8f79-4b2b-8c4d-8cf722dc30ed:localhost:node-75876bfc-096d-4b3b-a986-8c75a1f32564:Node 75876bfc-096d-4b3b-a986-8c75a1f32564 :: true

2022-08-04 23:07:05 | [Mutex] waiting for: [received:nodes:203f0b49-9fe4-4e61-a1db-944855569738:localhost]

2022-08-04 23:07:05 | [Mutex] waiting for: [received:nodes:203f0b49-9fe4-4e61-a1db-944855569738:localhost]

2022-08-04 23:07:05 | [Mutex] received everything.

2022-08-04 23:07:05 | [Mutex] isItemNotified: received:node:203f0b49-9fe4-4e61-a1db-944855569738:localhost:node-75876bfc-096d-4b3b-a986-8c75a1f32564:Node 75876bfc-096d-4b3b-a986-8c75a1f32564 :: false

createNodes 1.675s
2022-08-04 23:07:01 |

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

2022-08-04 23:07:01 | ------------------------------------

2022-08-04 23:07: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-75876bfc-096d-4b3b-a986-8c75a1f32564",
    "pubsub#title": "Node 75876bfc-096d-4b3b-a986-8c75a1f32564"
}

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

2022-08-04 23:07:02 | [Mutex] waiting for: [received:nodes:f2ad1cb1-e77c-428f-85a6-101cbfe419d5:localhost]

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

2022-08-04 23:07:02 | [Mutex] isItemNotified: received:node:f2ad1cb1-e77c-428f-85a6-101cbfe419d5:localhost:node-75876bfc-096d-4b3b-a986-8c75a1f32564:Node 75876bfc-096d-4b3b-a986-8c75a1f32564 :: true

createSubnodes 1.021s
2022-08-04 23:07:02 |

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

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

2022-08-04 23:07: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-0a1b3ad1-fc7d-485b-8991-bfcfcac716fa",
    "pubsub#title": "Node 0a1b3ad1-fc7d-485b-8991-bfcfcac716fa"
}

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

2022-08-04 23:07:04 | [Mutex] waiting for: [received:nodes:dfdfeb5e-8f31-4b58-a13c-84311d5f0908:localhost]

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

2022-08-04 23:07:04 | [Mutex] isItemNotified: received:node:dfdfeb5e-8f31-4b58-a13c-84311d5f0908:localhost:node-0a1b3ad1-fc7d-485b-8991-bfcfcac716fa:Node 0a1b3ad1-fc7d-485b-8991-bfcfcac716fa :: true

deleteNodes 1.022s
2022-08-04 23:07:08 |

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

2022-08-04 23:07:08 | ------------------------------------

2022-08-04 23:07:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0a1b3ad1-fc7d-485b-8991-bfcfcac716fa"
}

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

2022-08-04 23:07:09 | [Mutex] waiting for: [received:nodes:a8e8a906-8bf4-429f-8a2c-580ba8c26f6d:localhost]

2022-08-04 23:07:09 | [Mutex] received everything.

2022-08-04 23:07:09 | [Mutex] isItemNotified: received:node:a8e8a906-8bf4-429f-8a2c-580ba8c26f6d:localhost:node-0a1b3ad1-fc7d-485b-8991-bfcfcac716fa:Node 0a1b3ad1-fc7d-485b-8991-bfcfcac716fa :: false

deleteSubnodes 1.025s
2022-08-04 23:07:07 |

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

2022-08-04 23:07:07 | ------------------------------------

2022-08-04 23:07:07 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-75876bfc-096d-4b3b-a986-8c75a1f32564"
}

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

2022-08-04 23:07:08 | [Mutex] waiting for: [received:nodes:340ef5b2-54a1-4dad-ad7d-65ef22edc047:localhost]

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

2022-08-04 23:07:08 | [Mutex] isItemNotified: received:node:340ef5b2-54a1-4dad-ad7d-65ef22edc047:localhost:node-75876bfc-096d-4b3b-a986-8c75a1f32564:Node 75876bfc-096d-4b3b-a986-8c75a1f32564 :: false

2022-08-04 23:07:08 | [Mutex] waiting for: [received:nodes:220d9523-b512-424c-afd5-d605a9f5fa8b:localhost]

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

2022-08-04 23:07:08 | [Mutex] isItemNotified: received:node:220d9523-b512-424c-afd5-d605a9f5fa8b:localhost:node-75876bfc-096d-4b3b-a986-8c75a1f32564:Node 75876bfc-096d-4b3b-a986-8c75a1f32564 :: false

publishItemsToNodes 0.041s
2022-08-04 23:07:06 |

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

2022-08-04 23:07:06 | ------------------------------------

2022-08-04 23:07:06 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-75876bfc-096d-4b3b-a986-8c75a1f32564",
    "entry": "<test>item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54</test>",
    "item-id": "item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54"
}

2022-08-04 23:07:06 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54"
}

2022-08-04 23:07:06 | [Mutex] waiting for: [published:item:notifieditem-060ffab2-7fb7-4c9a-9ea9-af9b90154a54:admin@test-domain.com]

2022-08-04 23:07:06 | [Mutex] received everything.

2022-08-04 23:07:06 | [Mutex] isItemNotified: published:item:notifieditem-060ffab2-7fb7-4c9a-9ea9-af9b90154a54:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-08-04 23:07:06 |

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

2022-08-04 23:07:06 | ------------------------------------

2022-08-04 23:07:06 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-75876bfc-096d-4b3b-a986-8c75a1f32564",
    "item-id": "item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54"
}

2022-08-04 23:07:06 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54"
}

2022-08-04 23:07:06 | [Mutex] received everything.

2022-08-04 23:07:06 | [Mutex] isItemNotified: retracted:item:notifieditem-060ffab2-7fb7-4c9a-9ea9-af9b90154a54:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2022-08-04 23:07:06 |

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

2022-08-04 23:07:06 | ------------------------------------

2022-08-04 23:07:06 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-75876bfc-096d-4b3b-a986-8c75a1f32564",
    "item-id": "item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54"
}

2022-08-04 23:07:06 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-75876bfc-096d-4b3b-a986-8c75a1f32564",
    "item-id": "item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54",
    "item": [
        "<item id=\"item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54\"><test>item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54</test></item>"
    ]
}

2022-08-04 23:07:06 | [Mutex] notify: [retrieved:item:item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54:payload-matches:true:localhost]

2022-08-04 23:07:06 | [Mutex] received everything.

2022-08-04 23:07:06 | [Mutex] isItemNotified: retrieved:item:item-060ffab2-7fb7-4c9a-9ea9-af9b90154a54:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-08-04 23:07:06 |

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

2022-08-04 23:07:06 | ------------------------------------

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

2022-08-04 23:07:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-75876bfc-096d-4b3b-a986-8c75a1f32564",
        "node-0a1b3ad1-fc7d-485b-8991-bfcfcac716fa"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-04 23:07:06 |

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

2022-08-04 23:07:06 | ------------------------------------

2022-08-04 23:07:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-75876bfc-096d-4b3b-a986-8c75a1f32564)"
}

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

subscribeNodes 1.008s
2022-08-04 23:07:05 |

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

2022-08-04 23:07:05 | ------------------------------------

2022-08-04 23:07:05 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-75876bfc-096d-4b3b-a986-8c75a1f32564",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.048s
2022-08-04 23:07:06 |

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

2022-08-04 23:07:06 | ------------------------------------

2022-08-04 23:07:06 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-75876bfc-096d-4b3b-a986-8c75a1f32564",
    "jids": [
        "admin@test-domain.com"
    ]
}

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