Sebastian Serth
4b4942ef08
Seeds: Increase memory limit for Java 8 environment
2023-02-15 19:11:48 +01:00
Karol
637f872f34
add file_extension validation for file_type
2023-02-09 18:42:24 +01:00
Sebastian Serth
2679f5fa56
Allow random selection for ProxyExercise
2023-01-20 21:02:20 +01:00
Sebastian Serth
574e99eddd
Fix rubocop offenses - Requires Ruby 3.1+
2022-11-25 11:10:06 +01:00
Sebastian Serth
4b00eb1e8c
Allow internal users to switch their current study group
2022-09-26 16:30:54 +02:00
Sebastian Serth
eb188dcd71
Add privilegedExecution flag to database and Poseidon Strategy
2022-09-24 22:32:41 +02:00
Sebastian Serth
e3018c1847
Refactor consumer factory
2022-09-22 19:24:26 +02:00
Sebastian Serth
936c11e31f
Refactor authentication token for new study-group-based authorization
2022-09-22 19:24:26 +02:00
Sebastian Serth
9c9f45ff77
Redefine user roles with their role in a study group
2022-09-22 19:24:26 +02:00
Sebastian Serth
cb0f30768f
Change HTTP links to HTTPS
2022-08-17 01:29:27 +02:00
Janis4411
4615a49e62
added strong params to comments_controller to prevent users from editing attributes which are not intended to be edited, also created specs to test this behaviour
2022-08-09 14:45:16 +02:00
Janis4411
1a987a65d4
added new AuthenticationToken factory, as well as new tests to check if access is denied when the token is expired, smaller optimalization changes to the user_mailer_spec and authentication_spec
2022-08-05 08:05:07 +02:00
Sebastian Serth
7f47af99cb
Fix order-dependent specs
2021-11-04 19:15:33 +01:00
Sebastian Serth
0db6f20933
Move MemoryLimit to Execution Environment
2021-11-01 17:13:06 +01:00
Sebastian Serth
06ef4430f5
Change exposed_ports to array
2021-11-01 17:13:02 +01:00
Felix Auringer
b847daf823
Remove waiting_time from runner model
...
After removing the logic that stores the duration that has been
waited for a runner in the runner, this now also removes the column
from the database as it is not used anymore.
2021-11-01 17:12:49 +01:00
Felix Auringer
d0d1b1bffd
Introduce strategy for runner behavior
...
The runner model is only a class responsible for storing information
now. Based on the configuration it picks a strategy for the runner
management. The Poseidon strategy is already implemented and tested.
The Docker strategy will follow.
2021-11-01 17:12:49 +01:00
Felix Auringer
0978a3be83
Add tests for the different runner errors
2021-11-01 17:12:48 +01:00
Konrad Hanff
d22d24df4d
Add tests for execution environment copy to Poseidon
2021-11-01 17:12:48 +01:00
Sebastian Serth
ae824565db
Use older images in FactoryBot models
2021-09-11 21:29:10 +02:00
Sebastian Serth
bf8d8284e2
Prevent creation of temporary users while seeding
2021-07-12 20:43:16 +02:00
Sebastian Serth
da0a682ffb
Apply manual rubocop fixes
2021-05-14 22:03:06 +02:00
Sebastian Serth
6cbecb5b39
Apply automatic rubocop fixes
2021-05-14 22:03:06 +02:00
Sebastian Serth
076812b2e7
Seeds: Fix some rubocop offenses
2021-04-07 14:06:33 +02:00
Sebastian Serth
0a475f37b8
Add factory for internal user with learner role
2021-04-07 14:06:33 +02:00
Sebastian Serth
58ffe061b3
Refactor exercise factories to pass user attribute to associations
2021-04-07 14:06:32 +02:00
Tobias Kantusch
44b32b6f6a
#46 Add Prometheus exporter
2021-04-07 14:06:32 +02:00
Sebastian Serth
635b9aa16f
Fix RSpec/FactoryBot/FactoryClassName offenses automatically
...
* Fixed with `rubocop -a --only RSpec/FactoryBot/FactoryClassName`
2021-02-12 00:17:49 +01:00
Maximilian Pass
028fc2989a
#18 Add sql index for unpublished exercises
...
And remove spec for remove feature
2020-12-15 12:17:11 +01:00
Karol
46e7853465
specs for services
2019-12-09 20:35:49 +01:00
Karol
5625fa63b0
add controller specs
2019-12-06 17:25:00 +01:00
Sebastian Serth
59257d17f2
Add user (ID and type) to proxy exercise
...
This is required for the existing policies to work
2018-12-06 00:31:45 +01:00
Sebastian Serth
56c59a616e
Completely remove old non-structured errors and migrate existing ones.
2018-11-30 11:27:25 +01:00
Sebastian Serth
efacb5a6a9
Completely remove old hints connected to the execution environment
2018-11-28 01:21:13 +01:00
Sebastian Serth
90defa8f89
Fix tests and rename request
variable in specs to perform_request
...
Explanation: Using the variable name `request` might interfere with methods in Rails core system prevent successful test execution. See this issue: https://github.com/turbolinks/turbolinks-rails/issues/38
2018-11-06 16:49:42 +01:00
Sebastian Serth
9666683bd7
Fix error, submission, hints and help views
2018-11-06 16:46:01 +01:00
Sebastian Serth
de52db89f0
Upgrade Rails to version 5.2.1 and adopt code & specs where necessary
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:46:00 +01:00
Sebastian Serth
108190c242
Create three traits in FactoryBot to prevent deprecation warning
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:46:00 +01:00
Sebastian Serth
ff24a0bf0b
Move non-empty files from test dir to spec and adopt specs
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:45:59 +01:00
Sebastian Serth
1f12b39731
Hide FactoryBot deprecation warning by changing static assignment
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:45:59 +01:00
Sebastian Serth
3916f66695
Fix Factories
2018-02-22 17:19:53 +01:00
Ralf Teusner
0e26ab98c8
rename factory_girl_(rails) to factory_bot_(rails)
2017-11-15 15:18:07 +01:00
Ralf Teusner
ac14e2d0ca
first steps towards testing the redirect with regards to user_feedbacks
2017-11-01 11:57:56 +01:00
Thomas Hille
d5b2ea4269
added proxy exercise dispatching to LTI module. Submissions now set user before the exercise token gets validated. this we need to set the exercise behind the proxy exercise
2017-03-21 10:31:32 +01:00
Tom Staubitz
e634caf408
fixing tests final nice-up
2017-01-13 11:11:15 +01:00
Tom Staubitz
4af24d4317
fixing tests p2 lti_spec tests all passed
2017-01-13 00:37:07 +01:00
Tom Staubitz
5fe12bfa78
fixing tests p1
2017-01-12 18:12:36 +01:00
Tom Staubitz
f4c01879bf
preparations to replace session with lti_parameters object
2016-12-27 00:13:41 +01:00
yqbk
4183a16178
merge with master
2016-08-03 12:09:58 +02:00
yqbk
2bb1362520
further delete (spec files)
2016-07-04 16:59:30 +02:00