Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mqtt internal url in tests #239

Conversation

djs0109
Copy link
Contributor

@djs0109 djs0109 commented Feb 6, 2024

close #238

@djs0109 djs0109 requested a review from RCX112 February 6, 2024 10:28
Copy link
Collaborator

@RCX112 RCX112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is exactly what I mean with the MQTT subscriptions. More general, in the Issue #238 we would also need an internal URL for other FIWARE components such as the OCB, for example in

def test_input_endpoints(self) -> None:

@@ -533,6 +534,7 @@ def on_disconnect(client, userdata, reasonCode, properties=None):
cb_url=settings.CB_URL)
def test_notification(self):
mqtt_sub_url = settings.MQTT_BROKER_URL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would rename mqtt_sub_url to mqtt_url because only the internal URL is the subscription URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been changed now

@RCX112
Copy link
Collaborator

RCX112 commented Feb 14, 2024

@djs0109 If I checked everything correctly, the only missing thing is an internal cb_url for the timeseries test function which I mentioned on the top:

def test_input_endpoints(self) -> None:

@djs0109
Copy link
Contributor Author

djs0109 commented Feb 14, 2024

@RCX112 I would rather not implement it, because this API has been deprecated in QL1.0.0 (see here orchestracities/ngsi-timeseries-api#493). I will open up another issue to test the capability with QL 1.0.0 and remove this test

@djs0109
Copy link
Contributor Author

djs0109 commented Feb 14, 2024

@RCX112 Could you check again, whether it is good to merge?

Copy link
Collaborator

@RCX112 RCX112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djs0109 Looks good, we can merge :)

@djs0109 djs0109 merged commit 3acda05 into master Feb 14, 2024
1 check passed
@djs0109 djs0109 deleted the 238-Adding-a-second-Test-configuration-when-using-FIWARE-components-inside-Docker branch February 14, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a second Test configuration when using FIWARE components inside Docker
2 participants