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
yqbk
c8abe46815
Problem with Error_controller_spec seemst to be connected with pundit. When we use version 0.3 instead of 1.1 all tests are passing. I have discovered that somehow error record is not correctly assigned in newer verion. Probably we need to look for an issue in spec/factories/error or app/models/error files. Tests are failing at the first step, when creating error -> @error = Error.new(params). Still hasn't solved but im quite close
2016-06-08 18:56:54 +02:00
Hauke Klement
15d8984a9e
added the ability to prohibit network access for code submissions executed using Docker
2015-03-17 17:14:25 +01:00
Hauke Klement
b1218e0b80
added the ability to limit memory consumption of code submissions executed using Docker
2015-03-17 15:51:59 +01:00
Hauke Klement
88730de8b6
fixed seeds
2015-03-13 09:30:50 +01:00
Hauke Klement
cb9b1a3e71
added seeds for teams
2015-03-11 14:31:40 +01:00
Hauke Klement
3ae749bfc5
extended execution environments by a default file type that is used as the default for associated exercises' files
2015-03-10 18:14:26 +01:00
Hauke Klement
1fe56f8ea6
updated seeds for execution environments
2015-03-09 18:01:33 +01:00
Hauke Klement
f67e67bb83
fixed factory
2015-03-02 09:37:47 +01:00
Hauke Klement
fab95d6f31
added tests
2015-02-26 15:37:24 +01:00
Hauke Klement
113e05d310
minor changes
2015-02-24 16:25:47 +01:00
Hauke Klement
02904da7f9
minor change for consistency
2015-02-22 21:13:39 +01:00