orchestracities / ngsi-timeseries-api

QuantumLeap: a FIWARE Generic Enabler to support the usage of NGSIv2 (and NGSI-LD experimentally) data in time-series databases
https://quantumleap.rtfd.io/
MIT License
37 stars 49 forks source link

AssertionError in existing test #701

Closed rohit-vrrr closed 1 year ago

rohit-vrrr commented 1 year ago

Describe the bug

AssertionError occurs in the existing tests.

I have forked this repo and raised a PR with some changes related to LD support. You can view the PR here: https://github.com/orchestracities/ngsi-timeseries-api/pull/695

There has been no changes I've made in the tests as such. But still it throws an AssertionError. Below is the error logs:

src/reporter/tests/test_aggregation_different_attribute_types.py:401: AssertionError
------------------------------ Captured log call -------------------------------
query_NTNENA.py            151 WARNING  usage of id and type rather than entityId and entityType from version 0.9
--------------------------- Captured stdout teardown ---------------------------
SchemaUnknownException[Schema 'mtt1' unknown]
{'S': 'ERROR', 'V': 'ERROR', 'C': '42P01', 'M': 'relation "mtt2.ettestroomaggregationdifferenttypes" does not exist', 'P': '22', 'F': 'parse_relation.c', 'L': '1352', 'R': 'parserOpenTable'}
-- generated xml file: /home/circleci/project/test-results/junit-reporter.xml --

You can view the complete logs here: https://app.circleci.com/pipelines/github/orchestracities/ngsi-timeseries-api/799/workflows/d72334f4-378f-4b91-8068-3f16750689b1/jobs/4936

To Reproduce

Steps to reproduce the behavior:

  1. Just run the tests and this error will come up.

Expected behavior

All the tests should have been cleared.

Environment:

rohit-vrrr commented 1 year ago

Update: I made a small change in the code and pushed it to the repo. That ran the circleci tests and all the tests were passing as usual.

PS: idk why I got this error that one time.