Граф коммитов

181 Коммитов

Автор SHA1 Сообщение Дата
Christian Wolf 1a6f4d574c
Corrected namespaces of tests
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-10 12:46:24 +02:00
Christian Wolf e3f2442ab3
Added further test case to migration check
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 17:17:44 +02:00
Christian Wolf bb73591864
Corrected code styling
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 17:08:55 +02:00
Christian Wolf 0d261a356e
Fix old NC instances with correct dependencies
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:52:23 +02:00
Christian Wolf 81df5bac73
Usage of query for older NC instances
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:23 +02:00
Christian Wolf 3b8fb3dc31
Mark test to cover only correct migration
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:23 +02:00
Christian Wolf 1ad3f83fe4
Usage of internal migration service
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:23 +02:00
Christian Wolf 1f9444b7b4
Fetch the DB connection from the server
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:23 +02:00
Christian Wolf 193304ec68
Corrected code styling
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:22 +02:00
Christian Wolf 05c2fb7ef2
Usage of migration service allows to track code coverage
Signed-off-by: Christian Wolf <github@christianwolf.email>

Remove instanciated object on tear down

Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:22 +02:00
Christian Wolf 0ff915a10d
Added correct tearDown code to handle failures correctly
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:50:22 +02:00
Christian Wolf 33de349948
Activate testing
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:49:17 +02:00
Christian Wolf fe85aaa4b0
Create first strucutre to test migration issue, implementation issue with PHPUnit
Signed-off-by: Christian Wolf <github@christianwolf.email>

Make running test case valid

Signed-off-by: Christian Wolf <github@christianwolf.email>

Tidy up test case

Signed-off-by: Christian Wolf <github@christianwolf.email>

Update phpunit configuration file

Signed-off-by: Christian Wolf <github@christianwolf.email>

Rename cases to avoid spaces in names

Signed-off-by: Christian Wolf <github@christianwolf.email>

Corrected assertions and sorting

Signed-off-by: Christian Wolf <github@christianwolf.email>

Updated test code to have corrct array keys involved.

Signed-off-by: Christian Wolf <github@christianwolf.email>

Added some comments

Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-08-09 16:49:16 +02:00
Christian Wolf bcd9c765a6
Corrected styling in PHP files
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-04-25 17:53:46 +02:00
Christian Wolf cc9e3b5ac2
Updated styling of code according to cs fixer
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-03-27 18:45:15 +01:00
Christian Wolf c88deb8112
Added test code to reset environment using phpunit test cases
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-02-07 15:26:52 +01:00
Christian Wolf 40cd320dc6
Verify context on check for valid schema org object
Signed-off-by: Christian Wolf <github@christianwolf.email>
2021-01-23 18:12:20 +01:00
Christian Wolf bb59f146e5
Corrected style of PHP files to be consistent
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-17 17:06:20 +01:00
Christian Wolf 51ac3a8a22
Added comments to assertions
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-15 12:12:31 +01:00
Christian Wolf 7475ac9995
Increase code coverage to 100%
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-15 12:12:22 +01:00
Christian Wolf 788700a5f7
Corrected namespaces of classes
Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-11-15 11:57:42 +01:00
Tobiasff3200 ae9d631148
Added test for the JsonService
Signed-off-by: Tobias Mieves <tobias.mieves@tu-dortmund.de>
2020-11-14 23:38:46 +01:00
Christian Wolf 037a640f52
Squash-merge to replace travis by Github Actions
This should close #337.

Squashed commit of the following:

commit 96bae53015
Author: Christian Wolf <github@christianwolf.email>
Date:   Mon Oct 19 16:10:31 2020 +0200

    Removal of travis as it is no longer in use

commit 9d8fc5c2be
Author: Christian Wolf <github@christianwolf.email>
Date:   Fri Oct 9 12:58:26 2020 +0200

    Removed debugging step

commit 0eabb1c39f
Author: Christian Wolf <github@christianwolf.email>
Date:   Fri Oct 9 12:44:18 2020 +0200

    Corrected path to be consistent

commit 848fb2a9e1
Author: Christian Wolf <github@christianwolf.email>
Date:   Fri Oct 9 12:35:27 2020 +0200

    Enable test-only mode for quick local tests

commit ebb5e9056b
Author: Christian Wolf <github@christianwolf.email>
Date:   Fri Oct 9 12:21:46 2020 +0200

    Enable running of the test during local run

commit 774e085f84
Author: Christian Wolf <github@christianwolf.email>
Date:   Fri Oct 9 12:21:22 2020 +0200

    Use copy of source code to avoid damage during tests

    If anything goes wrong, the source code is not destoyed.

commit 51b81e4524
Author: Christian Wolf <github@christianwolf.email>
Date:   Fri Oct 9 08:26:18 2020 +0200

    Updated docker-compose to be valid

commit dd53e76cac
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 17:32:45 2020 +0200

    Usage of boolean values for mayFail

commit f8b17685a4
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 17:30:59 2020 +0200

    Moved app to main apps folder during testing

commit 32a3f77afc
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 17:28:06 2020 +0200

    Create a local docker compose file for testing

commit 3ff062e824
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 17:24:38 2020 +0200

    Removed workdir from git listening

commit 3e2e63ef81
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 17:24:11 2020 +0200

    Instal of NPM during docker build run

commit 84714d11fd
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 15:41:06 2020 +0200

    Allow to run container as non-root using sudo

commit 2c168d849c
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 15:29:11 2020 +0200

    Create home directory for runner in image

commit 383d19767d
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 15:02:40 2020 +0200

    Allow change of UID for running user in container

commit 8f5c30948b
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 14:22:09 2020 +0200

    Added test against master branch of main NC server

commit faa021d1a7
Author: Christian Wolf <github@christianwolf.email>
Date:   Thu Oct 8 14:21:17 2020 +0200

    Prepare for optinal test against master

commit eb2144975a
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 21:56:24 2020 +0200

    Make the nextcloud log file world readable

commit c5e4ae0177
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 21:50:16 2020 +0200

    Switch to correct directory

commit 0943accc07
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 21:44:39 2020 +0200

    Added parameter passing check

commit 6c0848cd54
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 21:43:27 2020 +0200

    Allow access to data folder to extract log file

commit 799c48133d
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:59:35 2020 +0200

    Added debug output regarding artifact issue

commit 0022c29eb6
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:57:30 2020 +0200

    Added parameter to install script call

commit 832dab970b
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:36:03 2020 +0200

    Extracted install script into bash script

commit 723c2cb3f5
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:24:20 2020 +0200

    Upload the nextcloud log files as artifacts

commit c86902ee5b
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:18:14 2020 +0200

    Differentiate different options for PHP 7.2

commit 696f17b6f6
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:16:33 2020 +0200

    Removed unneeded DISPLAY environemnt variable

commit 6535a750e3
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:11:09 2020 +0200

    Disable fast-failing for better debugging

commit f0eb6e4304
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 19:03:50 2020 +0200

    Removed obsolete PHP versions

commit 90e54404b0
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 18:54:37 2020 +0200

    Reduced number of jobs to be run

commit 77416142c7
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 18:32:31 2020 +0200

    Build for different PHP versions

commit b4af06c5cc
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 18:31:55 2020 +0200

    Build for different core versions

commit 755e21ec30
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 18:31:32 2020 +0200

    Enable sqlite building

commit d341b38472
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 18:15:35 2020 +0200

    Corrected name of parameter

commit 1b529d35ea
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 18:09:40 2020 +0200

    Corrected hostname

commit b727229201
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 17:57:50 2020 +0200

    Removed pgsql issues

commit 7604ae2092
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 17:48:42 2020 +0200

    Removed obsolete comments

commit bfd0edbe60
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 17:48:01 2020 +0200

    Build a matrix

commit 1c71f301df
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 17:47:15 2020 +0200

    Enable PostgresSQL server as an option

commit 09434d80d0
Author: Christian Wolf <github@christianwolf.email>
Date:   Wed Oct 7 17:46:18 2020 +0200

    Remove containers after termination

commit c32c2d17da
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 12:11:32 2020 +0200

    Corrected method signature

commit 74958bcb11
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 12:06:39 2020 +0200

    Removed test cases as method was refactored

commit 9d24c24bc6
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:43:09 2020 +0200

    Remove obsolete test case in unit tests

commit 0a4c065820
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:41:59 2020 +0200

    Added parameter to constructor in test case

commit b4f8577edc
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:32:05 2020 +0200

    Update test definition

commit 0bc24b4707
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:31:13 2020 +0200

    Make setUp function call compatible with phpunit

commit 2c5531f718
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:22:12 2020 +0200

    Use service container as database

commit 5fdc379f37
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:21:40 2020 +0200

    Break up large line into multiple ones

commit c329d25d46
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:17:40 2020 +0200

    Add sqlite PDO

commit e4ebb0b303
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 11:15:36 2020 +0200

    Installing PDO drivers

commit d08724c2ff
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 10:59:50 2020 +0200

    Added install of zip extension

commit 6aba6bb7b3
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 10:56:47 2020 +0200

    Typo in dependencies

commit 1913ced401
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 10:54:12 2020 +0200

    Install additional php dependencies

commit 3f90e73b93
Author: Christian <github@christianwolf.email>
Date:   Wed Oct 7 10:37:36 2020 +0200

    Added fetching of submodules to nextcloud server

commit cab92b48bc
Author: Christian <github@christianwolf.email>
Date:   Tue Oct 6 22:59:33 2020 +0200

    Start mysql contaiiner instead of only creating it

commit 9cf144578d
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 20:24:07 2020 +0200

    Reverted to mysql name

commit 87a91df55a
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 20:20:57 2020 +0200

    Removed complexity of YAML file

commit ed1ab1c6cb
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 20:18:03 2020 +0200

    Corrected YAML syntax

commit df2a4f88ba
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 20:15:29 2020 +0200

    Usage of separate network in docker

commit f206e4531b
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 20:04:21 2020 +0200

    Docker service on separate network

commit 6fa4e5674c
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 19:52:01 2020 +0200

    Using of YAML access to DB input

commit d34c6e0eb9
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 19:46:59 2020 +0200

    Make build env visible

commit c87a90eb51
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 19:29:49 2020 +0200

    Install npm dependencies

commit 3d36d989bf
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 19:21:26 2020 +0200

    Corrected YAML syntax

commit baa83809d1
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 19:14:47 2020 +0200

    Reformatted long docker call and removed missing -e

commit f3f7294a42
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 19:10:22 2020 +0200

    Removed composer from installation as it causes issues with the apt-get install

commit bc231f9469
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 19:09:59 2020 +0200

    Pass GITHUB environment to docker container

commit 3c4add8edf
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 18:46:46 2020 +0200

    Added some dependencies to the install commanbds

commit 2d1417bf81
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 18:42:44 2020 +0200

    Copied over the main tests from travis to action code

commit 3377dd241f
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 18:00:17 2020 +0200

    Corrected name of docker image

commit c3fa8b1af5
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:49:32 2020 +0200

    Running of the docker container again

commit 37a85f5a6e
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:49:03 2020 +0200

    Removed obsolete files

commit 351397a13a
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:45:47 2020 +0200

    REmoved part of the debugging and reenabled docker building

commit 98f31a2239
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:37:09 2020 +0200

    Tried to use YAML syntax

commit 8fc371d8a5
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:35:28 2020 +0200

    Removed quotes

commit ac28787a42
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:32:39 2020 +0200

    Removed syntax error

commit 2b0a06a13e
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:31:08 2020 +0200

    Removed docker in docker structure

commit ff6f1dc123
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:22:16 2020 +0200

    Added debug statements

commit 1fc2934c60
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 17:01:06 2020 +0200

    Tried workaround using environment file

commit ad45b9f350
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:58:16 2020 +0200

    Removed syntax bug

commit 0e784fefca
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:54:45 2020 +0200

    Usage of workaround without env vars

commit 6e6862f312
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:43:18 2020 +0200

    Another test to get the envvar parsed

commit 57e3fb8359
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:39:16 2020 +0200

    Still not expanding the variables

commit bcefde3b0f
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:36:54 2020 +0200

    Env var is not expanded

commit 5cd2800fb3
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:34:43 2020 +0200

    Usage of the host workspace variable

commit 9c3288e510
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:29:33 2020 +0200

    Corrected syntax according to example

commit 9f4e07c6b3
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:21:47 2020 +0200

    Disable caching for tests

commit 6b2b3b9889
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 16:12:19 2020 +0200

    Test to pass variables from inputs to docker actions

commit 66e364bdb8
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:51:28 2020 +0200

    Added more debug information

commit 1fab9ba3a9
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:43:34 2020 +0200

    Enable mounting of workspace in testing container

commit 38952d3e69
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:30:40 2020 +0200

    wakey wakey GitHub Actions

commit a5833f57d3
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:29:35 2020 +0200

    Enable docker layer caching

commit e5db7a7623
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:20:21 2020 +0200

    Disabled travis building

commit ffc19ac33e
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:18:54 2020 +0200

    Corrected paths

commit f6dba1d30e
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:16:37 2020 +0200

    Corrected syntax for checkout action

commit 869d8ca736
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 15:15:26 2020 +0200

    Test the current state if all variables are passed along

commit 2f4db8aa09
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:55:25 2020 +0200

    Removed a bit of unneeded stuff

commit 335fe0c3b8
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:50:27 2020 +0200

    Removed bugs in env variable passing

commit adbe514925
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:46:33 2020 +0200

    Removed bug in build script

commit 96ef38b0b3
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:44:38 2020 +0200

    Workaround for missing build-arg in github actions

    See https://github.com/JavierZolotarchuk/parameterizable-docker-action-example

commit da22280f40
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:24:44 2020 +0200

    Added default php version to Dockerfile

commit f5f9c92059
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:22:19 2020 +0200

    Added build-arg to action

commit 625f2f0d8a
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:15:26 2020 +0200

    Make the PHP version variable explicit in curly brances

commit 7816360c97
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:12:06 2020 +0200

    Add a second action to workflow

commit 8d3e840923
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:09:33 2020 +0200

    wakey wakey GitHub Actions

commit c6544716ef
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:04:34 2020 +0200

    Add checkout for app code

commit 52759fc4bf
Author: Christian Wolf <github@christianwolf.email>
Date:   Tue Oct 6 14:04:20 2020 +0200

    Created basic docker file

commit 9c1661f0bb
Author: Christian <github@christianwolf.email>
Date:   Tue Oct 6 13:22:14 2020 +0200

    Crea empty test.yml file

Signed-off-by: Christian Wolf <github@christianwolf.email>
2020-10-19 16:12:06 +02:00
mrzapp 6479c469d5 Fixes #132 2020-01-02 12:17:43 +00:00
Daniel Röhrig 004f0b4269 Expand test with a data provider to quickly add more tests data sets 2019-11-13 22:21:00 +01:00
Daniel Röhrig 360660da1b Write a rudimentary unit test for the validateDuration method 2019-11-13 22:21:00 +01:00
Daniel Röhrig 805de39e88 Basic integration tests framework in place 2019-10-22 21:21:08 +02:00
Daniel Röhrig 4b8dae01a3 Basic unit tests framework in place
No real tests yet, just the infrastructure.
2019-10-22 21:02:04 +02:00
Daniel Röhrig 3fb563fcb0 Making the test run, but not do anything useful
Still figuring out, what to test and how
2019-10-22 20:22:11 +02:00
Daniel Röhrig adc8547d2a Including the core tests bootstrap file
That eliminates the need to include the base file or the other
workarounds.
2019-10-22 20:22:11 +02:00
mrzapp a14d2d5614 NC app 2019-03-11 03:04:20 +01:00