ISAITB / gitb

The Interoperability Test Bed is a service offered by the European Commission’s DIGIT for the conformance testing of IT systems. It is based on the GITB CEN Workshop Agreement and was originally forked from the GITB PoC software (available at https://github.com/srdc/gitb).
https://joinup.ec.europa.eu/solution/interoperability-test-bed/about
Other
20 stars 4 forks source link

[QUESTION] Increase the maximal volume size of inputs #72

Closed EliottPaillard closed 1 month ago

EliottPaillard commented 1 month ago

Hey @costas80,

I noticed while testing the interact interface that you can not provide a file bigger than 5120KBs. Even zipped, some files might exceed this volume.

So I was wondering if it would be possible to manually set in the step a higher volume limit?

costas80 commented 1 month ago

Hi @EliottPaillard. You can adapt this limit via environment variable on the gitb-ui container. The variable is called SAVED_FILE_MAX_SIZE which quoting from the configuration reference is:

The maximum size (in KBs) for uploaded files that are to be persisted in the test bed’s database (not email attachments).

An an example, to double the current limit you would configure:

   gitb-ui:
      image: isaitb/gitb-ui
      ...
      environment:
         ...
         - SAVED_FILE_MAX_SIZE=10240
...

The reason why this is managed as a Test Bed wide configuration property is to limit abuse. On a multitenant instance, if a specific test case, or even community could set an arbitrarily large limit for individually uploaded files you could end up with an easy way to strain the overall service's resources.

Note that even with this env variable however, you can't increase the limit indefinitely. There is currently a hard cap of 100MBs on accepted requests by the Test Bed's underlying server (although I doubt you would need to manage such large files in tests).