Skip to content
Snippets Groups Projects
Commit 5083b198 authored by Marco Malavolti's avatar Marco Malavolti
Browse files

Update requirements.txt

parent 6cbcef87
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ The tool uses following status for IdPs: ...@@ -104,7 +104,7 @@ The tool uses following status for IdPs:
## Download ECCS2 Repository ## Download ECCS2 Repository
* `cd $HOME ; git clone https://github.com/malavolti/eccs2.git` * `cd $HOME ; git clone https://gitlab.geant.org/marco.malavolti/eccs2.git`
## Install Python 3.9.x ## Install Python 3.9.x
...@@ -159,10 +159,12 @@ The tool uses following status for IdPs: ...@@ -159,10 +159,12 @@ The tool uses following status for IdPs:
# Install Google Chrome needed by Selenium # Install Google Chrome needed by Selenium
* Debian (64 bit): * Debian (64 bit):
* `cd $HOME/eccs2`
* `sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb` * `sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb`
* `sudo apt install ./google-chrome-stable_current_amd64.deb` * `sudo apt install ./google-chrome-stable_current_amd64.deb`
* CentOS (64 bit): * CentOS (64 bit):
* `cd $HOME/eccs2`
* `sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm` * `sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm`
* `sudo yum install ./google-chrome-stable_current_x86_64.rpm` * `sudo yum install ./google-chrome-stable_current_x86_64.rpm`
...@@ -181,10 +183,10 @@ The tool uses following status for IdPs: ...@@ -181,10 +183,10 @@ The tool uses following status for IdPs:
4. Use the version number retrieved from the previous step to construct the URL to download ChromeDriver. With version `72.0.3626.69`, the URL would be "https://chromedriver.storage.googleapis.com/index.html?path=73.0.3683.68/" 4. Use the version number retrieved from the previous step to construct the URL to download ChromeDriver. With version `72.0.3626.69`, the URL would be "https://chromedriver.storage.googleapis.com/index.html?path=73.0.3683.68/"
5. Download the Chromedriver and extract it with: 5. Download the Chromedriver and extract it with:
* `wget https://chromedriver.storage.googleapis.com/73.0.3683.75/chromedriver_linux64.zip -O $HOME/eccs2/chromedriver_linux64.zip`
* `cd $HOME/eccs2` * `cd $HOME/eccs2`
* `wget https://chromedriver.storage.googleapis.com/73.0.3683.75/chromedriver_linux64.zip`
* `unzip chromedriver_linux64.zip` * `unzip chromedriver_linux64.zip`
* `rm chromedriver_linux64.zip` * `rm chromedriver_linux64.zip google-chrome-stable_current_amd64.deb`
**Note:** **Note:**
After the initial download, it is recommended that you occasionally go through the above process again to see if there are any bug fix releases. After the initial download, it is recommended that you occasionally go through the above process again to see if there are any bug fix releases.
...@@ -196,6 +198,7 @@ After the initial download, it is recommended that you occasionally go through t ...@@ -196,6 +198,7 @@ After the initial download, it is recommended that you occasionally go through t
* `cd $HOME/eccs2` * `cd $HOME/eccs2`
* `./python/bin/python3.9 -m pip install virtualenv` * `./python/bin/python3.9 -m pip install virtualenv`
* `$HOME/eccs2/python/bin/virtualenv --python=$HOME/eccs2/python/bin/python3.9 eccs2venv` * `$HOME/eccs2/python/bin/virtualenv --python=$HOME/eccs2/python/bin/python3.9 eccs2venv`
* `$HOME/eccs2/eccs2venv/bin/python -m pip install --upgrade pip`
* `source eccs2venv/bin/activate` (`deactivate` to exit Virtualenv) * `source eccs2venv/bin/activate` (`deactivate` to exit Virtualenv)
* `python -m pip install -r requirements.txt` * `python -m pip install -r requirements.txt`
...@@ -216,8 +219,10 @@ After the initial download, it is recommended that you occasionally go through t ...@@ -216,8 +219,10 @@ After the initial download, it is recommended that you occasionally go through t
fi fi
``` ```
* `source $HOME/.bash_profile`
* Debian: * Debian:
* `vim $HOME/.profile` * `vim $HOME/.bash_profile`
* Add the following lines at the tail: * Add the following lines at the tail:
```bash ```bash
...@@ -227,6 +232,8 @@ After the initial download, it is recommended that you occasionally go through t ...@@ -227,6 +232,8 @@ After the initial download, it is recommended that you occasionally go through t
fi fi
``` ```
* `source $HOME/.bash_profile`
3. Configure ECCS2 cron job for the local user: 3. Configure ECCS2 cron job for the local user:
* `crontab -e` * `crontab -e`
...@@ -313,6 +320,14 @@ To perform a restart after an API change use the following command: ...@@ -313,6 +320,14 @@ To perform a restart after an API change use the following command:
* 'OK' * 'OK'
* 'ERROR' * 'ERROR'
* 'DISABLED' * 'DISABLED'
* `check_result=`
* `OK`
* `Timeout`
* `Invalid-Form`
* `Connection-Error`
* `No-eduGAIN-Metadata`
* `SSL-Error`
* `DISABLED`
* `reg_auth=https://reg.auth.example.org` (select a specific Registration Authority) * `reg_auth=https://reg.auth.example.org` (select a specific Registration Authority)
* `format=simple` (retrieve results in a simple format) * `format=simple` (retrieve results in a simple format)
* `/api/fedstats` * `/api/fedstats`
...@@ -322,6 +337,8 @@ To perform a restart after an API change use the following command: ...@@ -322,6 +337,8 @@ To perform a restart after an API change use the following command:
The available dates are provided by the first and the last file created into the `output/` directory The available dates are provided by the first and the last file created into the `output/` directory
## Clean old results
To clean the ECCS2 results from files older than last 7 days use (modify it on your needs): To clean the ECCS2 results from files older than last 7 days use (modify it on your needs):
* `crontab -e` * `crontab -e`
...@@ -332,6 +349,23 @@ To clean the ECCS2 results from files older than last 7 days use (modify it on y ...@@ -332,6 +349,23 @@ To clean the ECCS2 results from files older than last 7 days use (modify it on y
0 10 * * * /bin/bash $HOME/eccs2/clean7daysOldFiles.sh > $HOME/eccs2/logs/clean7daysOldFiles.log 2>&1 0 10 * * * /bin/bash $HOME/eccs2/clean7daysOldFiles.sh > $HOME/eccs2/logs/clean7daysOldFiles.log 2>&1
``` ```
## User interface
The eduGAIN Connectivity Check 2 test web page is available at https://technical-test.edugain.org/eccs2
## User interface parameters
| Parameter name | Example |
| -------------- | -------------------------------------------- |
| `date` | `date=2020-02-20` |
| `reg_auth` | `reg_auth=https://reg.auth.example.org` |
| `idp` | `idp=https://idp.example.org/idp/shibboleth` |
| `status` | `status=ERROR` |
| `check_result` | `check_result=Timeout` |
**Example:**
`https://technical-test.edugain.org/eccs2?reg_auth=http://www.idem.garr.it/&check_result=SSL-Error`
# Utility for developers # Utility for developers
## ECCS2 API Development Server ## ECCS2 API Development Server
......
urllib3==1.26.6 click==7.1.2
Flask==1.1.2 Flask==1.1.2
Flask-RESTful==0.3.9 Flask-RESTful==0.3.9
requests==2.25.1 requests==2.25.1
selenium==3.141.0 selenium==3.141.0
uWSGI==2.0.19.1 uWSGI==2.0.19.1
Click==7.1.2 urllib3==1.26.6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment