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: extract response ids in postman collection #352

Conversation

nikschul
Copy link
Contributor

@nikschul nikschul commented Oct 2, 2024

What this PR changes/adds

The functionality to carry over variables from previous responses to following request if applicable. This should make it easier for the user to execute the chain of requests necessary to download data from the other dataspace.

Why it does that

Postman pre- and post-request scripts were added to accomplish this behavior. Also a pre-request check for the respective requests is added to make sure the variables carried over are defined before executing the request

Further notes

Linked Issue(s)

Closes #351

@nikschul nikschul marked this pull request as draft October 2, 2024 06:42
@nikschul nikschul self-assigned this Oct 2, 2024
@nikschul nikschul changed the title Feature/350 extract response ids in postman collection feat: 350 extract response ids in postman collection Oct 2, 2024
@nikschul nikschul changed the title feat: 350 extract response ids in postman collection feat: extract response ids in postman collection Oct 2, 2024
@nikschul nikschul marked this pull request as ready for review October 2, 2024 09:01
Copy link
Member

@paullatzelsperger paullatzelsperger left a comment

Choose a reason for hiding this comment

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

LGTM, but could you add the CI workflow as discussed in the issue? Please also update the documentation where applicable.

@paullatzelsperger
Copy link
Member

also, you should rebase onto main

@nikschul nikschul marked this pull request as draft October 7, 2024 05:46
adding a postman post-request script to add the policy-id of "asset-1" as a postman environment variable of request "Get Cached Catalogs" and reusing it in "Initiate Negotiation".
@nikschul nikschul force-pushed the feature/350-extract_response_ids_in_postman_collection branch from 9e2ce57 to 54d808c Compare October 7, 2024 05:58
@nikschul nikschul force-pushed the feature/350-extract_response_ids_in_postman_collection branch from 8ec1179 to 9ae59ff Compare October 9, 2024 05:42
@@ -48,6 +48,9 @@ jobs:
- name: "Setup Kubectl"
uses: azure/setup-kubectl@v4

- name: "Setup Terraform"
Copy link
Member

Choose a reason for hiding this comment

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

why is this necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see comment on the main thread

with:
node-version: 18

- name: "Install Newman"
Copy link
Member

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can newman be directly used and does not have to be installed first?

Copy link
Member

Choose a reason for hiding this comment

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

i think so. I had to merge the PR now, because I needed the terraform thing in another fix. I'll take care of that

@nikschul
Copy link
Contributor Author

nikschul commented Oct 9, 2024

@paullatzelsperger I've added some tests for the collection which are executed in a new GitHub action workflow "newman_test". Also I had to add an additional terraform setup step in all workflow scrips, as the workflows were failing this morning with "terraform: command not found". I hope this is ok and does not break anything else.

@nikschul nikschul marked this pull request as ready for review October 9, 2024 10:26
@nikschul
Copy link
Contributor Author

nikschul commented Oct 9, 2024

Here is one example of a failing test run, even though I did not change anything regarding this test: https://github.com/eclipse-edc/MinimumViableDataspace/actions/runs/11252232440/job/31284932435

@paullatzelsperger
Copy link
Member

@paullatzelsperger I've added some tests for the collection which are executed in a new GitHub action workflow "newman_test". Also I had to add an additional terraform setup step in all workflow scrips, as the workflows were failing this morning with "terraform: command not found". I hope this is ok and does not break anything else.

huh? that is .... very interesting. stumbled across the same thing too.

@paullatzelsperger paullatzelsperger merged commit d58833a into eclipse-edc:main Oct 9, 2024
7 checks passed
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.

Using Variables to Carry Over ID's of Responses in the Postman Collection
2 participants