Skip to content

test(28664): add tests #2619

test(28664): add tests

test(28664): add tests #2619

Triggered via push December 9, 2024 14:33
Status Failure
Total duration 16m 37s
Artifacts 2

frontend-cli.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 7 warnings
src/api/hooks/useTopicFilters/useListTopicFilters.spec.ts > useListTopicFilters > should load the data : hivemq-edge/src/frontend/src/api/hooks/useTopicFilters/useListTopicFilters.spec.ts#L25
AssertionError: expected { items: [ { …(3) } ] } to strictly equal { items: [ { …(2) } ] } - Expected + Received Object { "items": Array [ Object { "description": "This is a topic filter", + "schema": "data:application/json;base64,ewogICJ0eXBlIjogIm9iamVjdCIsCiAgInRpdGxlIjogIlRoaXMgaXMgYSBzaW1wbGUgc2NoZW1hIiwKICAicHJvcGVydGllcyI6IHsKICAgICJkZXNjcmlwdGlvbiI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgInRpdGxlIjogImRlc2NyaXB0aW9uIiwKICAgICAgImRlc2NyaXB0aW9uIjogIlRoZSBkZXNjcmlwdGlvbiBvZiB0aGUgaXRlbSIKICAgIH0sCiAgICAibmFtZSI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgInRpdGxlIjogIm5hbWUiLAogICAgICAiZGVzY3JpcHRpb24iOiAiVGhlIG5hbWUgb2YgdGhlIGl0ZW0iCiAgICB9CiAgfSwKICAicmVxdWlyZWQiOiBbCiAgICAiZGVzY3JpcHRpb24iLAogICAgIm5hbWUiCiAgXQp9Cg==", "topicFilter": "a/topic/+/filter", }, ], } ❯ src/api/hooks/useTopicFilters/useListTopicFilters.spec.ts:25:33
src/modules/TopicFilters/hooks/useTopicFilterManager.spec.ts > useTopicFilterManager > should return the manager: hivemq-edge/src/frontend/src/modules/TopicFilters/hooks/useTopicFilterManager.spec.ts#L23
AssertionError: expected { context: { …(3) }, …(9) } to strictly equal ObjectContaining{…} - Expected + Received - ObjectContaining { + Object { + "context": Object { + "formData": Object { + "items": Array [ + Object { + "description": "This is a topic filter", + "schema": "data:application/json;base64,ewogICJ0eXBlIjogIm9iamVjdCIsCiAgInRpdGxlIjogIlRoaXMgaXMgYSBzaW1wbGUgc2NoZW1hIiwKICAicHJvcGVydGllcyI6IHsKICAgICJkZXNjcmlwdGlvbiI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgInRpdGxlIjogImRlc2NyaXB0aW9uIiwKICAgICAgImRlc2NyaXB0aW9uIjogIlRoZSBkZXNjcmlwdGlvbiBvZiB0aGUgaXRlbSIKICAgIH0sCiAgICAibmFtZSI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgInRpdGxlIjogIm5hbWUiLAogICAgICAiZGVzY3JpcHRpb24iOiAiVGhlIG5hbWUgb2YgdGhlIGl0ZW0iCiAgICB9CiAgfSwKICAicmVxdWlyZWQiOiBbCiAgICAiZGVzY3JpcHRpb24iLAogICAgIm5hbWUiCiAgXQp9Cg==", + "topicFilter": "a/topic/+/filter", + }, + ], + }, + "schema": Object { + "definitions": Object { + "TopicFilter": Object { + "description": "List of result items that are returned by this endpoint", + "properties": Object { + "description": Object { + "description": "The name for this topic filter.", + "type": "string", + }, + "schema": Object { + "description": "The optional json schema for this topic filter in the data uri format.", + "type": "string", + }, + "topicFilter": Object { + "description": "The topic filter according to the MQTT specification.", + "format": "mqtt-topic-filter", + "isRequired": true, + "type": "string", + }, + }, + "required": Array [ + "topicFilter", + ], + }, + }, + "properties": Object { + "items": Object { + "items": Object { + "$ref": "#/definitions/TopicFilter", + }, + "type": "array", + }, + }, + }, + "uiSchema": Object { + "items": Object { + "items": Object { + "schema": Object { + "ui:widget": "hidden", + }, + "ui:order": Array [ + "topicFilter", + "*", + ], + }, + "ui:title": "Topic Filters", + }, + "ui:submitButtonOptions": Object { + "norender": true, + }, + }, + }, "data": Object { "items": Array [ Object { "description": "This is a topic filter", + "schema": "data:application/json;base64,ewogICJ0eXBlIjogIm9iamVjdCIsCiAgInRpdGxlIjogIlRoaXMgaXMgYSBzaW1wbGUgc2NoZW1hIiwKICAicHJvcGVydGllcyI6IHsKICAgICJkZXNjcmlwdGlvbiI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgInRpdGxlIjogImRlc2NyaXB0aW9uIiwKICAgICAgImRlc2NyaXB0aW9uIjogIlRoZSBkZXNjcmlwdGlvbiBvZiB0aGUgaXRlbSIKICAgIH0sCiAgICAibmFtZSI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgInRpdGxlIjogIm5hbWUiLAogICAgICAiZGVzY3JpcHRpb24iOiAiVGhlIG5hbWUgb2YgdGhlIGl0ZW0iCiAgICB9CiAgfSwKICAicmVxdWlyZWQiOiBbCiAgICAiZGVzY3JpcHRpb24iLAogICAgIm5hbWUiCiAgXQp9Cg==", "topicFilter": "a/topic/+/filter", }, ], }, "error": null, "isError": false, "isLoading": false, "isPending": false, + "onCreate": [Function onCreate], + "onDelete": [Function onDelete], + "onUpdate": [Function onUpdate], + "onUpdateCollection": [Function onUpdateCollection], } ❯ src/modules/TopicFilters/hooks/useTopicFilterManager.spec.ts:23:28
unit_tests
Process completed with exit code 1.
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
unit_tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build_production
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lighthouse
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lighthouse
1 result for http://localhost:42533/app/login Report: https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1733754990932-72772.report.html ⚠️ `categories.seo` warning for `minScore` assertion Expected >= 1, but found 0.83
e2e_tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
component_tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
application Expired
16.3 MB
lighthouse-results
786 KB