-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix: add missing json fields for sample streaming http-to-http #335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'We are always happy to welcome new contributors ❤️ To make things easier for everyone, please - make sure to follow our contribution guidelines, - check if you have already signed the ECA, and - relate this pull request to an existing issue or discussion.'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while are you working on this field, could you change the Streaming01httpToHttpTest
to use these files instead of building the requests from scratch?
You can get some inspiration from Transfer02consumerPullTest
(that already does this).
plus, please update the PR name according to the convention? (info here)
@ndr-brt: I flew over the convention slightly, does the new name match? |
link is broken, but you can find it under |
Almost all links are broken, unfortunately ;-) For me, it still does not work for half of the test cases, since Testcontainers does not recognize the docker-engine. |
contributions are the key ;)
I'm also using docker engine on ubuntu without issues, it worked out-of-the-box, there's no need to do changes, as long as |
Strange. Advanced01openTelemetryTest > runSampleSteps() FAILED
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
at org.testcontainers.dockerclient.DockerClientProviderStrategy.lambda$getFirstValidStrategy$7(DockerClientProviderStrategy.java:274) |
It seems to be one of those funny things where installing OS updates and rebooting fixes it. |
@ndr-brt: Took me a long time, but I fixed it. |
I think it is becuse your first commit, that has no email reported: 2f00b9d maybe you could squash the three commits into one that has the correct info checkstyle warnings need to be fixed as well |
@ndr-brt: Haven't seen the checkstyle errors during testing, fixed those as well. Btw: Is there a way to only run a certain test? It was quite annoying, since though I tried some things from the Gradle docs, .\gradlew test -DrunAllTests="true" |
if you are using Intellij you just need to add the |
But this would still run all tests, doesn't it? Checks look good now, right? |
no, this will say to junit: "run the test you want without considering the tag attached to it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a little thing to fix then we'll be ready to merge
var catalogDatasetId = CONSUMER.fetchDatasetFromCatalog(getFileContentFromRelativePath(SAMPLE_FOLDER + "/get-dataset.json")); | ||
var negotiateContractBody = getFileContentFromRelativePath(SAMPLE_FOLDER + "/negotiate-contract.json") | ||
.replace("{{offerId}}", catalogDatasetId); | ||
//assertThat(catalogDatasetId).isEqualTo("test", catalogDatasetId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented out line should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good catch.
Had been too long yesterday, obviously.
That was my way to find out how to fix the issue that jsonPath rejects colons if not escaped.
A bit tricky when it is the first time to use it at all ;-)
I have amended it to the last commit to not have too many.
Ok, might work with IDEA. You don't know a way to run a specific test through CLI? |
sure, for this one just execute:
|
Haven't tried it yet, but sounds as if it could work. Thank you. |
the For this test, this command does the same exact thing as the one before
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anyway, thanks for the contribution, I'm gonna merge this 🚀
Thank you for the explanation (and preventing me from dying uneducated ;-)). |
Perfect, thanks. You are welcome. Hope it helps somebody. |
What this PR changes/adds
Fixes issues #244 and #334 for sample transfer/streaming/streaming-01-http-to-http
assigner
field in contract requesttransferType
in transfer requestWhy it does that
Sample can not be executed completely.
Further notes
Linked Issue(s)
Closes #244
Closes #334