From 8127e6681e47ffabea9669f926d640228c638cc2 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 11:27:50 +0200 Subject: [PATCH 01/61] Creazione primo test --- .github/workflows/main.yml | 120 +++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..215c8af51 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,120 @@ +name: OpenSTAManager CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + tests: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9] + php-version: ['8.0'] + + steps: + - uses: actions/checkout@v2 + + - name: Shutdown Ubuntu MySQL (SUDO) + run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it + + - name: Set up MySQL + uses: mirromutth/mysql-action@v1.1 + with: + mysql database: 'osm' + mysql root password: '' + mysql user: 'root' + mysql password: '' + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.python-version }} + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.php-version }} + + - name: Install SeleniumBase + with: + repository: seleniumbase/SeleniumBase + path: selenium-base + run: | + cd selenium-base + python setup.py install + + - name: Install Chrome and Firefox + run: | + sudo apt install google-chrome-stable + sudo apt-get install firefox + + - name: Check the console scripts interface + run: | + seleniumbase + sbase + + - name: Install chromedriver and geckodriver (Firefox Webdriver) + run: | + seleniumbase install chromedriver + seleniumbase install geckodriver + + - name: Make sure pytest is working + run: | + echo "def test_1(): pass" > nothing.py + pytest nothing.py + + - name: Make sure nosetests is working + run: | + echo "def test_2(): pass" > nothing2.py + nosetests nothing2.py + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install Composer dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + + - name: Use NPM and Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + - name: Install NPM and compile assets + run: | + yarn install + npm run build-OSM + + - name: Directory Permissions + run: chmod -R 777 files backup logs + + - name: Check out test repository + with: + repository: devcode-it/openstamanager-tests + path: python-tests + + - name: Install Python dependencies + run: | + cd python-tests/ + python -m pip install --upgrade pip + python -m pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Init test configuration + run: | + cd python-tests/ + echo """{\n "login": {\n "password": "",\n "username": ""\n },\n "server": "http://localhost/openstamanager",\n "browser": "chrome",\n "headless": true\n}""" >| cache/config.json + pytest Init.py + + - name: Execute tests + run: | + cd python-tests/ + pytest tests From f728a2323599a58d57c8aaac48894e542c2d2be7 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 11:49:37 +0200 Subject: [PATCH 02/61] Correzione CI --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 215c8af51..9960a6036 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,6 +43,8 @@ jobs: with: repository: seleniumbase/SeleniumBase path: selenium-base + + - name: Configure SeleniumBase run: | cd selenium-base python setup.py install From 16e5b19ca66ec35399122a56850f1dd698583e3b Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 11:54:10 +0200 Subject: [PATCH 03/61] OpenSTAManager CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9960a6036..3c58e510c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: with: repository: seleniumbase/SeleniumBase path: selenium-base - + - name: Configure SeleniumBase run: | cd selenium-base From b4c091c0f81e6b630f120017af231c2ec9586f0d Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 12:07:48 +0200 Subject: [PATCH 04/61] CI --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c58e510c..2f0312f0c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,8 +38,9 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.php-version }} - + - name: Install SeleniumBase + uses: actions/checkout@v2 with: repository: seleniumbase/SeleniumBase path: selenium-base From 8ad5bc12eaba3caae4ffe7c7505436d663120dae Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 12:30:29 +0200 Subject: [PATCH 05/61] CI --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f0312f0c..d44183ced 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -100,6 +100,7 @@ jobs: run: chmod -R 777 files backup logs - name: Check out test repository + uses: actions/checkout@v2 with: repository: devcode-it/openstamanager-tests path: python-tests From ac1a3ac499a821423a9c85519b73a46c58470241 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 12:33:11 +0200 Subject: [PATCH 06/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d44183ced..01ae48c0c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: mysql database: 'osm' mysql root password: '' mysql user: 'root' - mysql password: '' + mysql password: 'root' - name: Set up PHP uses: shivammathur/setup-php@v2 From 4bb2a0b2ba386efc1cc39887ca09983e54732ebc Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 12:36:30 +0200 Subject: [PATCH 07/61] CI --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01ae48c0c..3818cb21d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,15 +29,15 @@ jobs: mysql user: 'root' mysql password: 'root' - - name: Set up PHP + - name: Set up PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.python-version }} + php-version: ${{ matrix.php-version }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: ${{ matrix.php-version }} + python-version: ${{ matrix.python-version }} - name: Install SeleniumBase uses: actions/checkout@v2 From 04548ab1e7be70a08b2bf64736b08e62d994f273 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 12:38:27 +0200 Subject: [PATCH 08/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3818cb21d..3acdcf1e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: uses: mirromutth/mysql-action@v1.1 with: mysql database: 'osm' - mysql root password: '' + mysql root password: 'root' mysql user: 'root' mysql password: 'root' From 22ae77f4643409bdc0e29178a098461cc78fca14 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 12:46:17 +0200 Subject: [PATCH 09/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3acdcf1e8..b21b78414 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo """{\n "login": {\n "password": "",\n "username": ""\n },\n "server": "http://localhost/openstamanager",\n "browser": "chrome",\n "headless": true\n}""" >| cache/config.json + echo -ne """{\n "login": {\n "password": "admin",\n "username": "admin"\n },\n "server": "http://localhost/openstamanager",\n "browser": "chrome",\n "headless": true\n}""" > config.json pytest Init.py - name: Execute tests From e5cbc02479afe4ffe9221025124ae567d373cbd9 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 12:53:20 +0200 Subject: [PATCH 10/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b21b78414..9350d2f28 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne """{\n "login": {\n "password": "admin",\n "username": "admin"\n },\n "server": "http://localhost/openstamanager",\n "browser": "chrome",\n "headless": true\n}""" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"chrome\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From 88b305b4361ea0bbc763cad9605c290fc1db92f4 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 13:06:54 +0200 Subject: [PATCH 11/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9350d2f28..d0aae0c37 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"chrome\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": false\n}" > config.json pytest Init.py - name: Execute tests From b245f2a98f93f99e47401c19f9d3028bdbf1df5d Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 13:17:13 +0200 Subject: [PATCH 12/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0aae0c37..ab2aec31c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": false\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From 9088f39d8e02d61e68132759eef33a82585cdc35 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 14:57:01 +0200 Subject: [PATCH 13/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab2aec31c..0f6286c98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From d26a16c678b6710b06e92dd3db14d2273093039d Mon Sep 17 00:00:00 2001 From: loviuz Date: Sat, 15 May 2021 14:59:52 +0200 Subject: [PATCH 14/61] Miglioramento logo durante installazione --- include/init/configuration.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/init/configuration.php b/include/init/configuration.php index 3dd39b02d..90034cefb 100755 --- a/include/init/configuration.php +++ b/include/init/configuration.php @@ -329,8 +329,7 @@ if (empty($creation) && (!file_exists('config.inc.php') || !$valid_config)) { echo '
- '.tr('OSM Logo').' -

'.tr('OpenSTAManager').'

+ '.tr('OSM Logo').'
From b3ad9287e7f9d956e1b26e77477a62db3014d7ec Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:09:32 +0200 Subject: [PATCH 15/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0f6286c98..390757e7b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"chrome\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From 575c538369e4dbedb82fec6e2ce6c62a6b6896af Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:25:33 +0200 Subject: [PATCH 16/61] CI --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 390757e7b..2854d27eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,9 @@ jobs: steps: - uses: actions/checkout@v2 + + - name: Startup Apache2 + run: sudo service apache2 start - name: Shutdown Ubuntu MySQL (SUDO) run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it From 8d1d031c9eda4ea682d7e9ab721b9fac7a41ffdd Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:37:16 +0200 Subject: [PATCH 17/61] CI --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2854d27eb..e96167f2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,8 +8,10 @@ on: jobs: tests: - runs-on: ubuntu-latest + env: + working-directory: /var/www/html + strategy: matrix: python-version: [3.9] From e7d916c28ab4033cdaf68bd74a19f63b9c4cf3e9 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:42:36 +0200 Subject: [PATCH 18/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e96167f2c..ac72bec1b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -120,7 +120,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"chrome\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From 9b0e1b6a889e9a861e90975409b77fd6a4fbedab Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:51:36 +0200 Subject: [PATCH 19/61] CI --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac72bec1b..429ee9ec8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,11 +6,13 @@ on: pull_request: branches: [ master ] +defaults: + run: + working-directory: /var/www/html + jobs: tests: runs-on: ubuntu-latest - env: - working-directory: /var/www/html strategy: matrix: From 0de30dd70ffc1644c2cab064116e58ed91b77db7 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:53:57 +0200 Subject: [PATCH 20/61] CI --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 429ee9ec8..55bce9f33 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,10 +6,6 @@ on: pull_request: branches: [ master ] -defaults: - run: - working-directory: /var/www/html - jobs: tests: runs-on: ubuntu-latest @@ -22,6 +18,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Move OSM to apache directory + run: mv ../openstamanager /var/www/html/openstamanager + - name: Startup Apache2 run: sudo service apache2 start From 26324c140a8d923a587a77907a13cad55ce68726 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:55:09 +0200 Subject: [PATCH 21/61] CI --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55bce9f33..a3ec1ac99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - name: Move OSM to apache directory - run: mv ../openstamanager /var/www/html/openstamanager + run: sudo mv ../openstamanager /var/www/html/openstamanager - name: Startup Apache2 run: sudo service apache2 start @@ -103,7 +103,7 @@ jobs: npm run build-OSM - name: Directory Permissions - run: chmod -R 777 files backup logs + run: chmod -R 777 /var/www/html/openstamanager - name: Check out test repository uses: actions/checkout@v2 From 80e78cebd16422a40e39c7e5b57c16bd511833a1 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 15:57:22 +0200 Subject: [PATCH 22/61] CI --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3ec1ac99..f9c8b0730 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Move OSM to apache directory - run: sudo mv ../openstamanager /var/www/html/openstamanager - - name: Startup Apache2 run: sudo service apache2 start @@ -102,6 +99,9 @@ jobs: yarn install npm run build-OSM + - name: Move OSM to apache directory + run: sudo mv ../openstamanager /var/www/html/openstamanager + - name: Directory Permissions run: chmod -R 777 /var/www/html/openstamanager From 9351789653789774c65be55b911f2cb909f09c66 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:03:14 +0200 Subject: [PATCH 23/61] CI --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9c8b0730..ae7ce9408 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -100,10 +100,10 @@ jobs: npm run build-OSM - name: Move OSM to apache directory - run: sudo mv ../openstamanager /var/www/html/openstamanager - - - name: Directory Permissions - run: chmod -R 777 /var/www/html/openstamanager + run: | + sudo mv ../openstamanager /var/www/html/openstamanager + sudo chmod -R 0777 /var/www/html/openstamanager + cd /var/www/html/openstamanager - name: Check out test repository uses: actions/checkout@v2 From 22b53ab20460f449862715acf611dc144b44cc28 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:15:00 +0200 Subject: [PATCH 24/61] CI --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae7ce9408..b7b228daf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -103,28 +103,28 @@ jobs: run: | sudo mv ../openstamanager /var/www/html/openstamanager sudo chmod -R 0777 /var/www/html/openstamanager - cd /var/www/html/openstamanager - name: Check out test repository uses: actions/checkout@v2 with: repository: devcode-it/openstamanager-tests path: python-tests + working-directory: /var/www/html/openstamanager - name: Install Python dependencies run: | - cd python-tests/ + cd /var/www/html/python-tests/ python -m pip install --upgrade pip python -m pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Init test configuration run: | - cd python-tests/ + cd /var/www/html/python-tests/ echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests run: | - cd python-tests/ + cd /var/www/html/python-tests/ pytest tests From cad519009dc5bb8aa4fd18790e6c3eee34e7e7a9 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:21:47 +0200 Subject: [PATCH 25/61] CI --- .github/workflows/main.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b7b228daf..4e2a37336 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,10 @@ on: jobs: tests: runs-on: ubuntu-latest - + defaults: + run: + working-directory: /var/www/html/openstamanager + strategy: matrix: python-version: [3.9] @@ -18,6 +21,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Creating working directory + run: sudo mkdir /var/www/html/openstamanager + - name: Startup Apache2 run: sudo service apache2 start @@ -109,22 +115,21 @@ jobs: with: repository: devcode-it/openstamanager-tests path: python-tests - working-directory: /var/www/html/openstamanager - name: Install Python dependencies run: | - cd /var/www/html/python-tests/ + cd python-tests/ python -m pip install --upgrade pip python -m pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Init test configuration run: | - cd /var/www/html/python-tests/ + cd python-tests/ echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests run: | - cd /var/www/html/python-tests/ + cd python-tests/ pytest tests From 182843fe791427bd77404767f65056a2420b7f30 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:25:56 +0200 Subject: [PATCH 26/61] CI --- .github/workflows/main.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e2a37336..210170228 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,9 +9,6 @@ on: jobs: tests: runs-on: ubuntu-latest - defaults: - run: - working-directory: /var/www/html/openstamanager strategy: matrix: @@ -21,9 +18,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Creating working directory - run: sudo mkdir /var/www/html/openstamanager - - name: Startup Apache2 run: sudo service apache2 start @@ -105,11 +99,6 @@ jobs: yarn install npm run build-OSM - - name: Move OSM to apache directory - run: | - sudo mv ../openstamanager /var/www/html/openstamanager - sudo chmod -R 0777 /var/www/html/openstamanager - - name: Check out test repository uses: actions/checkout@v2 with: @@ -126,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From 8b83aeedc4f1c2d2a1b7763f17e702f186fbd4b6 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:41:32 +0200 Subject: [PATCH 27/61] CI --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 210170228..703c90f8a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,8 +8,25 @@ on: jobs: tests: + needs: build runs-on: ubuntu-latest + container: + image: php:7.4-apache + ports: + - 80:80 + options: --network-alias=testserver + + env: + TEST_BASE_URL: http://testserver + SELENIUM_HOST: http://selenium:4444/wd/hub + + services: + selenium: + image: selenium/standalone-chrome + ports: + - 4444:4444 + strategy: matrix: python-version: [3.9] @@ -105,6 +122,12 @@ jobs: repository: devcode-it/openstamanager-tests path: python-tests + - name: Copy OSM to www root + run: | + sudo cp -R * /var/www/html/ + sudo rm /var/www/html/index.html + sudo chmod -R 0777 /var/www/html/ + - name: Install Python dependencies run: | cd python-tests/ From 0b43e63d02d44701802c3561f7c3cabe0d938488 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:42:08 +0200 Subject: [PATCH 28/61] CI --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 703c90f8a..4494a4463 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,6 @@ on: jobs: tests: - needs: build runs-on: ubuntu-latest container: From 9411e66c41201dde5bf9f945df969fe57a1f550e Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:44:14 +0200 Subject: [PATCH 29/61] CI --- .github/workflows/main.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4494a4463..633e945a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,9 +33,6 @@ jobs: steps: - uses: actions/checkout@v2 - - - name: Startup Apache2 - run: sudo service apache2 start - name: Shutdown Ubuntu MySQL (SUDO) run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it From ea225d430251c6c299d69e32aee498642a7dd0d5 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 17:06:24 +0200 Subject: [PATCH 30/61] CI --- .github/workflows/main.yml | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 633e945a8..480ce8b00 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,22 +10,6 @@ jobs: tests: runs-on: ubuntu-latest - container: - image: php:7.4-apache - ports: - - 80:80 - options: --network-alias=testserver - - env: - TEST_BASE_URL: http://testserver - SELENIUM_HOST: http://selenium:4444/wd/hub - - services: - selenium: - image: selenium/standalone-chrome - ports: - - 4444:4444 - strategy: matrix: python-version: [3.9] @@ -33,17 +17,6 @@ jobs: steps: - uses: actions/checkout@v2 - - - name: Shutdown Ubuntu MySQL (SUDO) - run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it - - - name: Set up MySQL - uses: mirromutth/mysql-action@v1.1 - with: - mysql database: 'osm' - mysql root password: 'root' - mysql user: 'root' - mysql password: 'root' - name: Set up PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@v2 @@ -130,6 +103,12 @@ jobs: python -m pip install --upgrade pip python -m pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Restart apache + run: sudo service apache2 restart + + - name: Restart MySQL + run: sudo service mysql restart - name: Init test configuration run: | From 205e8f32082ab6e25cae0d4ee8f298117d4f70ba Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 17:16:49 +0200 Subject: [PATCH 31/61] CI --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 480ce8b00..f3801ded5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: python-version: [3.9] - php-version: ['8.0'] + php-version: ['7.4'] steps: - uses: actions/checkout@v2 @@ -22,6 +22,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} + extensions: zip, mbstring, pdo_mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From f22adf57781d8c65e2a6dd415b7fd6e5ef6b566f Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 17:28:10 +0200 Subject: [PATCH 32/61] CI --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3801ded5..6e160b32a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - extensions: zip, mbstring, pdo_mysql, dom, xsl, openssl, intl, curl, soap, gd + extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 @@ -97,6 +97,7 @@ jobs: sudo cp -R * /var/www/html/ sudo rm /var/www/html/index.html sudo chmod -R 0777 /var/www/html/ + sudo rm /var/www/html/.htaccess - name: Install Python dependencies run: | From 5bbdb362c2a8e16ef8226d8ab52a23549e383be2 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 17:35:00 +0200 Subject: [PATCH 33/61] CI --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6e160b32a..74c65f17e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -86,19 +86,19 @@ jobs: yarn install npm run build-OSM + + - name: Copy OSM to www root + run: | + sudo cp -R /home/runner/work/openstamanager/openstamanager /var/www/html/ + sudo chmod -R 0777 /var/www/html/openstamanager + sudo rm /var/www/html/openstamanager/.htaccess + - name: Check out test repository uses: actions/checkout@v2 with: repository: devcode-it/openstamanager-tests path: python-tests - - name: Copy OSM to www root - run: | - sudo cp -R * /var/www/html/ - sudo rm /var/www/html/index.html - sudo chmod -R 0777 /var/www/html/ - sudo rm /var/www/html/.htaccess - - name: Install Python dependencies run: | cd python-tests/ From 49d247bae16ac9a10f55a139f6843656c76910a3 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 17:44:45 +0200 Subject: [PATCH 34/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74c65f17e..8d4ef8ed5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,7 +115,7 @@ jobs: - name: Init test configuration run: | cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From e3636d39ee6a783ca98761b5968488b499e8b8e5 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 17:53:39 +0200 Subject: [PATCH 35/61] CI --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d4ef8ed5..817209b64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -114,6 +114,8 @@ jobs: - name: Init test configuration run: | + curl http://localhost/openstamanager + sudo cat /var/log/apache2/access.log cd python-tests/ echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py From abae152a13ed9a55956d4b129c2071ea2158ea48 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 17:59:38 +0200 Subject: [PATCH 36/61] CI --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 817209b64..0da52e027 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -114,10 +114,10 @@ jobs: - name: Init test configuration run: | - curl http://localhost/openstamanager + curl http://localhost/openstamanager/ sudo cat /var/log/apache2/access.log cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager/\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From 09661743b30f7defa7fed7de6d03367540ef5354 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:17:52 +0200 Subject: [PATCH 37/61] CI --- .github/workflows/main.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0da52e027..5a7df4777 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,12 +18,15 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up PHP ${{ matrix.php-version }} - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - +# - name: Set up PHP ${{ matrix.php-version }} +# uses: shivammathur/setup-php@v2 +# with: +# php-version: ${{ matrix.php-version }} +# extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd + + - name: Setup PHP + run: sudo apt -y install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: From 90ede96e56ddd5f55c88cb52d68fc1615acdffbb Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:23:05 +0200 Subject: [PATCH 38/61] CI --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5a7df4777..c276c5e23 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,10 @@ jobs: # extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Setup PHP - run: sudo apt -y install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath + run: sudo apt -y install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath libapache2-mod-php + + - name: Enabling PHP module + run: sudo a2enmod php - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From 9f84281858e4a320a32a9c3e4677392488b0e454 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:26:23 +0200 Subject: [PATCH 39/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c276c5e23..9b6390e47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: # extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Setup PHP - run: sudo apt -y install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath libapache2-mod-php + run: sudo apt -y install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath libapache2-mod-php7.4 - name: Enabling PHP module run: sudo a2enmod php From 2decfe3f263d9797f820e3a3db08cc33c960d159 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:27:59 +0200 Subject: [PATCH 40/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b6390e47..15706b805 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: # extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Setup PHP - run: sudo apt -y install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath libapache2-mod-php7.4 + run: sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-pear php7.4-bcmath php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 - name: Enabling PHP module run: sudo a2enmod php From baa92d7c5b54f05f3dd3804fc62823d9e87499fd Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:28:57 +0200 Subject: [PATCH 41/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15706b805..841ba6b09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: # extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Setup PHP - run: sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-pear php7.4-bcmath php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 + run: sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 - name: Enabling PHP module run: sudo a2enmod php From aba01504736ab46bcafdf06be216a6653fdfb1ad Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:30:41 +0200 Subject: [PATCH 42/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 841ba6b09..aa97f359f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: # extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Setup PHP - run: sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 + run: sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap - name: Enabling PHP module run: sudo a2enmod php From 7ab200148668cbb54c12931e6b137f3f584c92b1 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:32:02 +0200 Subject: [PATCH 43/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa97f359f..0c2f6b6c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,7 +28,7 @@ jobs: run: sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap - name: Enabling PHP module - run: sudo a2enmod php + run: sudo a2enmod php7.4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From d0d993a2e2ac5a7b080e4ed3f99fa05e156c688c Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:32:56 +0200 Subject: [PATCH 44/61] CI --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c2f6b6c3..c89f25bd9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,9 @@ jobs: # extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd - name: Setup PHP - run: sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap + run: | + sudo apt-cache search php + sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap - name: Enabling PHP module run: sudo a2enmod php7.4 From ad01ad61a805198c72fd5da56605b520d4235782 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:36:13 +0200 Subject: [PATCH 45/61] CI --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c89f25bd9..806819d9b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,8 +26,8 @@ jobs: - name: Setup PHP run: | - sudo apt-cache search php - sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap + sudo apt -y remove libapache2-mod-php libapache2-mod-php7.4 + sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 - name: Enabling PHP module run: sudo a2enmod php7.4 From 58c85ca64d09eb7a4c378488a5b981ab2bc2037b Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:38:20 +0200 Subject: [PATCH 46/61] CI --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 806819d9b..b52aa85ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,11 +26,10 @@ jobs: - name: Setup PHP run: | - sudo apt -y remove libapache2-mod-php libapache2-mod-php7.4 - sudo apt -y install php7.4 php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 + sudo apt -y install php php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-xsl php-intl php-soap libapache2-mod-php - name: Enabling PHP module - run: sudo a2enmod php7.4 + run: sudo a2enmod php - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From ef79b2dcf6ac13545d144d298115f42db99412f7 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:41:26 +0200 Subject: [PATCH 47/61] CI --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b52aa85ec..0c01663e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,7 @@ jobs: - name: Setup PHP run: | + sudo apt-get update && sudo apt-get -y upgrade sudo apt -y install php php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-xsl php-intl php-soap libapache2-mod-php - name: Enabling PHP module From 2db955ebcb95b075d21123cb9eb9f704358a45b7 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:43:48 +0200 Subject: [PATCH 48/61] CI --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c01663e8..91298db70 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,11 +26,11 @@ jobs: - name: Setup PHP run: | - sudo apt-get update && sudo apt-get -y upgrade - sudo apt -y install php php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-xsl php-intl php-soap libapache2-mod-php + sudo apt-get update + sudo apt -y install php7.4 php7.4-json php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 - name: Enabling PHP module - run: sudo a2enmod php + run: sudo a2enmod php7.4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From aac9ff9f383659ff21edb893b8f60375814187df Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:45:41 +0200 Subject: [PATCH 49/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 91298db70..d9fc053ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ on: jobs: tests: - runs-on: ubuntu-latest + runs-on: ubuntu-1804 strategy: matrix: From 88b73646df8ac56c7f8680ff04233cca4ad2ea3f Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:46:20 +0200 Subject: [PATCH 50/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9fc053ec..e10af89ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ on: jobs: tests: - runs-on: ubuntu-1804 + runs-on: ubuntu1804 strategy: matrix: From 9a8679d05a2f3b0e45cb404cf367db92331e407b Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:47:38 +0200 Subject: [PATCH 51/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e10af89ff..924dc8da4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ on: jobs: tests: - runs-on: ubuntu1804 + runs-on: ubuntu-18.04 strategy: matrix: From b83c4baefc3ffe58ad063483a263f6c9483db71f Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:55:57 +0200 Subject: [PATCH 52/61] CI --- .github/workflows/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 924dc8da4..58d576d47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,11 +26,8 @@ jobs: - name: Setup PHP run: | - sudo apt-get update - sudo apt -y install php7.4 php7.4-json php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-xsl php7.4-intl php7.4-soap libapache2-mod-php7.4 - - - name: Enabling PHP module - run: sudo a2enmod php7.4 + sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/apache2/php.ini + sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/apache2/php.ini - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From 6d83822959d54f4fb029181032b38c0dd209300d Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:57:15 +0200 Subject: [PATCH 53/61] CI --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 58d576d47..c27f5e1f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,7 @@ jobs: - name: Setup PHP run: | + sudo find /etc -name php\.ini sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/apache2/php.ini sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/apache2/php.ini From 1e44962713a99089582f604704ab243e8d6e6e07 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 18:59:13 +0200 Subject: [PATCH 54/61] CI --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c27f5e1f1..8a19eb3e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,9 +26,9 @@ jobs: - name: Setup PHP run: | - sudo find /etc -name php\.ini - sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/apache2/php.ini - sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/apache2/php.ini + sudo find / -name php\.ini + sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/cgi/php.ini + sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/cgi/php.ini - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From 63605a3836db21fb87c09eb55419f21afa96fd5e Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 19:21:47 +0200 Subject: [PATCH 55/61] CI --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a19eb3e1..9feb78115 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,7 @@ jobs: sudo find / -name php\.ini sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/cgi/php.ini sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/cgi/php.ini + sudo a2enmod php7.4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From b5f9d4d8b3dce45379f1a1ed3e057b0941713c59 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 19:26:42 +0200 Subject: [PATCH 56/61] CI --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9feb78115..ea8246216 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,7 @@ jobs: sudo find / -name php\.ini sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/cgi/php.ini sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/cgi/php.ini + sudo apt install libapache2-mod-php7.4 sudo a2enmod php7.4 - name: Set up Python ${{ matrix.python-version }} From d4983d308b667418a7b2e189e07418bfea37c6d4 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 19:40:31 +0200 Subject: [PATCH 57/61] CI --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea8246216..dddd34a26 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,8 +29,14 @@ jobs: sudo find / -name php\.ini sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/cgi/php.ini sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/cgi/php.ini + + sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/fpm/php.ini + sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/fpm/php.ini + + sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/hhvm/php.ini + sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/hhvm/php.ini + sudo apt install libapache2-mod-php7.4 - sudo a2enmod php7.4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From 2ff6c22e88457af1b6f5af91ab81590af3f03b22 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 19:47:39 +0200 Subject: [PATCH 58/61] CI --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dddd34a26..09f0d70fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,8 +33,8 @@ jobs: sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/fpm/php.ini sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/fpm/php.ini - sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/hhvm/php.ini - sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/hhvm/php.ini + sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/hhvm/php.ini + sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/hhvm/php.ini sudo apt install libapache2-mod-php7.4 From 118015adf79f0cb19757dd9939052a3fdb841b94 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 19:52:13 +0200 Subject: [PATCH 59/61] CI --- .github/workflows/main.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 09f0d70fc..42dcfecfb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,17 +26,9 @@ jobs: - name: Setup PHP run: | - sudo find / -name php\.ini - sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/cgi/php.ini - sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/cgi/php.ini - - sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/fpm/php.ini - sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/fpm/php.ini - - sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/hhvm/php.ini - sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/hhvm/php.ini - sudo apt install libapache2-mod-php7.4 + sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/apache2/php.ini + sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/apache2/php.ini - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From d8799d6e2f39f6664df3dad0aa4561bb147e3401 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 20:58:17 +0200 Subject: [PATCH 60/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42dcfecfb..682a0caee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -123,7 +123,7 @@ jobs: curl http://localhost/openstamanager/ sudo cat /var/log/apache2/access.log cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager/\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"adminadmin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager/\",\n \"browser\": \"chrome\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests From 7ce96a3a396337d8477764c07124c7a399e36cd7 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 21:08:51 +0200 Subject: [PATCH 61/61] CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 682a0caee..47349d58e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -123,7 +123,7 @@ jobs: curl http://localhost/openstamanager/ sudo cat /var/log/apache2/access.log cd python-tests/ - echo -ne "{\n \"login\": {\n \"password\": \"adminadmin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager/\",\n \"browser\": \"chrome\",\n \"headless\": true\n}" > config.json + echo -ne "{\n \"login\": {\n \"password\": \"adminadmin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager/\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json pytest Init.py - name: Execute tests