Skip to content
New issue

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

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

Already on GitHub? # to your account

Allowed compressed result file upload #149 using two approaches : archived data in form-data or archived data in body #263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ostryak
Copy link

@Ostryak Ostryak commented Aug 16, 2024

added new logic to upload allure results to implement #149

  1. create zip archive with all allure results files.
  2. upload zip archive using two different options
  3. send zip archive via POST /send-results curl -X POST "$ALLURE_SERVER/allure-docker-service/send-results?project_id=$PROJECT_ID" -H 'Content-Type: multipart/form-data' "-F zip=allure-results-example/allure-results-example.zip" -ik
  4. or send zip archive via POST /send-results with Content-Type: application/zip and zip archive as body
    curl -X POST "$ALLURE_SERVER/allure-docker-service/send-results?project_id=$PROJECT_ID" -H 'Content-Type: application/zip' --data-binary @'allure-results-example/allure-results-example.zip' -ik

also tar.gz can be used to POST data to /send-results:
curl -X POST "$ALLURE_SERVER/allure-docker-service/send-results?project_id=$PROJECT_ID" -H 'Content-Type: application/gzip' --data-binary @'allure-results-example/allure-results-example.tar.gz' -ik

I'm not sure about correct implementation for scheduled reports generation, as described in the comment #149 (comment)

3. Put the zip inside the container in path /tmp and extract it in there with a directory with a UID name.
4. Move the files extracted to the allure-results directory

…es :

- using formdata
- using application/zip and body
@disastrous-charly
Copy link

Hello,
Any update?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants