File tree Expand file tree Collapse file tree 3 files changed +17
-14
lines changed
Expand file tree Collapse file tree 3 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -20,24 +20,27 @@ jobs:
2020
2121 steps :
2222 - name : Install dependencies
23- run : |
23+ run : |
2424 sudo apt-get update && \
2525 sudo apt-get install -y xmlsec1 \
2626 libxmlsec1-dev \
2727 pkg-config \
2828 curl \
2929 software-properties-common \
3030 build-essential \
31- make
31+ make \
32+ python3-pip \
33+ python3-dev \
34+ wget
3235 - uses : actions/checkout@v2
3336 - name : Set up Python ${{ matrix.python-version }}
3437 uses : actions/setup-python@v2
3538 with :
3639 python-version : ${{ matrix.python-version }}
3740 - name : Install python dependencies
3841 run : |
39- python -m pip install --upgrade pip
40- python -m pip install flake8 pytest
42+ python3 -m pip install --upgrade pip
43+ python3 -m pip install flake8 pytest
4144 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4245 pip install -e .
4346 - name : Install Google Chrome # Using shell script to install Google Chrome
6366 - name : run acceptance tests
6467 run : |
6568 pytest test/test_acceptance.py --browser chrome --headless
66- pytest test/test_acceptance.py --browser firefox --headless
6769
6870
Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ RUN apt-get update && \
1010 curl \
1111 software-properties-common \
1212 build-essential \
13- make
14-
15- # RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
16- # apt-get install nodejs && \
17- # npm install -g configurable-http-proxy
13+ make \
14+ pkg-config \
15+ libxml2-dev \
16+ libxmlsec1-openssl \
17+ gcc \
18+ python3-dev
1819
1920RUN pip install --upgrade pip && \
2021 pip install -e .
Original file line number Diff line number Diff line change 11from tornado .httputil import HTTPServerRequest
2- from jupyterhub_saml_auth .handlers import get_request
2+ from jupyterhub_saml_auth .handlers import format_request
33import pytest
44
55@pytest .fixture ()
@@ -15,11 +15,11 @@ def mock_request():
1515
1616 return mock_req
1717
18- def test_get_request_http (mock_request ):
19- res = get_request (mock_request )
18+ def test_format_request_http (mock_request ):
19+ res = format_request (mock_request )
2020 assert res ['https' ] == 'off'
2121
2222def test_get_reqwuest_https (mock_request ):
2323 mock_request .protocol = 'https'
24- res = get_request (mock_request )
24+ res = format_request (mock_request )
2525 assert res ['https' ] == 'on'
You can’t perform that action at this time.
0 commit comments