From 43a33896d48afe05d20621f23dd0ed381b3dcfed Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Wed, 3 Aug 2022 11:34:42 -0300 Subject: [PATCH 1/4] docs: change to use YAML literals instead of lists Signed-off-by: Felipe Zipitria --- docs/YAMLFormat.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/YAMLFormat.md b/docs/YAMLFormat.md index 5a2640e..60159e8 100644 --- a/docs/YAMLFormat.md +++ b/docs/YAMLFormat.md @@ -284,26 +284,26 @@ version data ---- -**Description**: The optional data portion of the HTTP request. Typically these are provided with the content-type header. Data can be provided as a string or as a YAML list. +**Description**: The optional data portion of the HTTP request. Typically these are provided with the content-type header. Data can be provided as a string (if one liner) or as a [YAML literal](https://yaml.org/spec/1.2.2/#812-literal-style). -**Syntax:** ```data: ""``` +**Syntax:** ```data: ""``` **Example Usage (string):** ```data: "xyz=123"`` -**Example Usage (list):** +**Example Usage (YAML literal):** ``` - data: - - "----------397236876" - - "Content-Disposition: form-data; name=\"text\";" - - "" - - "test default" - - "----------397236876" - - "Content-Disposition: form-data; name=\"file1\"; filename=\"a.txt\"" - - "Content-Type: text/plain" - - "" - - "Content of a.txt." - - "" - - "----------397236876--" + data: | + ----------397236876 + Content-Disposition: form-data; name="text"; + + test default + ----------397236876 + Content-Disposition: form-data; name="file1"; filename="a.txt" + Content-Type: text/plain + + Content of a.txt. + + ----------397236876-- ``` **Default Value:** "" @@ -312,6 +312,7 @@ data **Added Version:** 0.1 +*Note: prefer YAML literal if you need multi-line strings. *Note: literals \r and \n will be replaced be replaced with CRLF when stop_magic is on.* *Note: if urlencoded content-type header is provided and parameters aren't in name=value form, data will be made empty, unless stop_magic is on.* From 705811aaa813102f19d7bba25a228bd3e19fa400 Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Thu, 19 Jan 2023 10:06:15 -0300 Subject: [PATCH 2/4] fix(ci): update actions versions Signed-off-by: Felipe Zipitria --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be7cfb3..1299737 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,9 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install requirements From d44ce74972f6a9fdaa969a978904dbd507e4659f Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Thu, 19 Jan 2023 10:09:32 -0300 Subject: [PATCH 3/4] feat(ci): add caching to python requirements Signed-off-by: Felipe Zipitria --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1299737..2628935 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,10 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: | + requirements.txt + setup.py - name: Install requirements run: | python -m pip install -r requirements.txt From 037c2fa5bc605a983445784e6db9c0b4c8587c7b Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Thu, 19 Jan 2023 10:11:02 -0300 Subject: [PATCH 4/4] fix: remove unsupported 3.6 version Signed-off-by: Felipe Zipitria --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2628935..f5dba11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,12 +4,11 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ] + python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] steps: - name: Checkout repo