Skip to content

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

Open
Ostryak wants to merge 1 commit into
fescobar:masterfrom
Ostryak:master
Open

Allowed compressed result file upload #149 using two approaches : archived data in form-data or archived data in body#263
Ostryak wants to merge 1 commit into
fescobar:masterfrom
Ostryak:master

Conversation

@Ostryak

@Ostryak Ostryak commented Aug 16, 2024

Copy link
Copy Markdown

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
Copy Markdown

Hello,
Any update?

@starwarsfan

Copy link
Copy Markdown

Any news at this point?

@GSergeevich

Copy link
Copy Markdown

This is definitely a very useful feature,any updates?

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.

4 participants