mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 19:42:07 +03:00
Merge pull request #141 from Orange-OpenSource/feature/add-tests-artifact
Add tests artifact
This commit is contained in:
commit
d4c734de60
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
@ -61,7 +61,7 @@ jobs:
|
||||
cargo build --verbose
|
||||
- name: Test Prequisites
|
||||
run: |
|
||||
pip3 install Flask && cd integration && python3 server.py &
|
||||
pip3 install Flask && cd integration && python3 server.py >server.log 2>&1 &
|
||||
wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz && ./mitmdump -p 8888 --modify-header "/From-Proxy/Hello" &
|
||||
- name: Run Tests
|
||||
run: |
|
||||
@ -69,7 +69,14 @@ jobs:
|
||||
- name: Run Integration Tests
|
||||
run: |
|
||||
export PATH="$PWD/target/debug:$PATH"
|
||||
integration/integration.py
|
||||
cd integration
|
||||
./integration.py
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-ubuntu-${{ matrix.rust }}-artifacts
|
||||
path: integration/server.log
|
||||
|
||||
test-osx:
|
||||
runs-on: macos-latest
|
||||
@ -94,7 +101,7 @@ jobs:
|
||||
cargo build --verbose
|
||||
- name: Test Prequisites
|
||||
run: |
|
||||
pip3 install Flask && cd integration && python3 server.py &
|
||||
pip3 install Flask && cd integration && python3 server.py >server.log 2>&1 &
|
||||
wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-osx.tar.gz -O - | tar -xz && ./mitmdump -p 8888 --modify-header "/From-Proxy/Hello" &
|
||||
- name: Run Tests
|
||||
run: |
|
||||
@ -102,4 +109,11 @@ jobs:
|
||||
- name: Run Integration Tests
|
||||
run: |
|
||||
export PATH="$PWD/target/debug:$PATH"
|
||||
integration/integration.py
|
||||
cd integration
|
||||
./integration.py
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: tests-osx-${{ matrix.rust }}-artifacts
|
||||
path: integration/server.log
|
||||
|
@ -1 +1 @@
|
||||
<div class="hurl-file"><div class="hurl-entry"><div class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/cookie_file</span></span></div></div><span class="line"></span></div>
|
||||
<div class="hurl-file"><div class="hurl-entry"><div class="request"><span class="line"><span class="comment"># curl --cookie tests/cookie_file.cookies http://localhost:8000/cookie_file</span></span><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/cookie_file</span></span></div><div class="response"><span class="line"><span class="version">HTTP/*</span> <span class="status">200</span></span></div></div></div>
|
@ -1,2 +1,3 @@
|
||||
# curl --cookie tests/cookie_file.cookies http://localhost:8000/cookie_file
|
||||
GET http://localhost:8000/cookie_file
|
||||
|
||||
HTTP/* 200
|
||||
|
@ -1 +1 @@
|
||||
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/cookie_file"}}]}
|
||||
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/cookie_file"},"response":{"status":200}}]}
|
@ -1 +1 @@
|
||||
--cookie cookie_file.cookies
|
||||
--cookie tests/cookie_file.cookies
|
||||
|
Loading…
Reference in New Issue
Block a user