-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
[plugin-rest-api] Post executed requests in a curl syntax in allure attachments #4724
Open
abudevich
wants to merge
1
commit into
vividus-framework:master
Choose a base branch
from
abudevich:328-curl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4724 +/- ##
=========================================
Coverage 97.41% 97.42%
- Complexity 6591 6606 +15
=========================================
Files 918 919 +1
Lines 18986 19038 +52
Branches 1269 1274 +5
=========================================
+ Hits 18496 18548 +52
Misses 384 384
Partials 106 106 ☔ View full report in Codecov by Sentry. |
valfirst
changed the title
[plugin-rest-api] Post executed requests in a curl syntax in allure a…
[plugin-rest-api] Post executed requests in a curl syntax in allure attachments
Jan 12, 2024
valfirst
requested changes
Jan 12, 2024
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/resources/org/vividus/http/attachment/api-message.ftl
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/PublishingAttachmentInterceptor.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/resources/org/vividus/http/attachment/api-message.ftl
Show resolved
Hide resolved
valfirst
requested changes
Jan 15, 2024
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/PublishingAttachmentInterceptor.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/resources/org/vividus/http/attachment/api-message.ftl
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/resources/org/vividus/http/attachment/api-message.ftl
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/resources/org/vividus/http/attachment/api-message.ftl
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/test/java/org/vividus/http/CurlUtilsTests.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/test/java/org/vividus/http/CurlUtilsTests.java
Outdated
Show resolved
Hide resolved
...dus-plugin-rest-api/src/test/java/org/vividus/http/PublishingAttachmentInterceptorTests.java
Outdated
Show resolved
Hide resolved
valfirst
requested changes
Jan 16, 2024
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/resources/org/vividus/http/attachment/api-message.ftl
Outdated
Show resolved
Hide resolved
abudevich
force-pushed
the
328-curl
branch
2 times, most recently
from
January 17, 2024 08:31
38834ca
to
14c97eb
Compare
valfirst
reviewed
Jan 17, 2024
vividus-plugin-rest-api/src/main/java/org/vividus/http/PublishingAttachmentInterceptor.java
Outdated
Show resolved
Hide resolved
valfirst
requested changes
Jan 18, 2024
vividus-plugin-rest-api/src/main/java/org/vividus/http/MimeTypeUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/MimeTypeUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/PublishingAttachmentInterceptor.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/resources/org/vividus/http/attachment/api-message.ftl
Show resolved
Hide resolved
abudevich
force-pushed
the
328-curl
branch
2 times, most recently
from
January 19, 2024 08:57
d3176fe
to
48fbdf2
Compare
valfirst
requested changes
Jan 23, 2024
vividus-plugin-rest-api/src/main/java/org/vividus/http/ContentTypeHeaderParser.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/PublishingAttachmentInterceptor.java
Outdated
Show resolved
Hide resolved
vividus-plugin-rest-api/src/main/java/org/vividus/http/PublishingAttachmentInterceptor.java
Outdated
Show resolved
Hide resolved
.orElseGet(() -> | ||
Optional.ofNullable(ContentType.parseLenient(entity.getContentType())) | ||
.orElse(ContentType.DEFAULT_TEXT).getMimeType() | ||
); | ||
isBinaryContent = entity instanceof ByteArrayEntity; |
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.
it's not always true:
- if mimetype is textual, then it's not binary (even if it's of
ByteArrayEntity
) - if mimetype is not textual or not present, then we assume the content is binary, if it's not of
StringEntity
valfirst
reviewed
Jan 23, 2024
vividus-plugin-rest-api/src/main/java/org/vividus/http/CurlUtils.java
Outdated
Show resolved
Hide resolved
valfirst
reviewed
Jan 23, 2024
valfirst
reviewed
Jan 23, 2024
abudevich
force-pushed
the
328-curl
branch
2 times, most recently
from
February 2, 2024 15:35
a3644a1
to
8ce42c5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #328