Sebastian Serth
ccbf41005b
Always clear runner strategy after each test case
...
Otherwise, we get different test results depending on the test order.
2023-06-23 22:20:04 +02:00
Sebastian Serth
574e99eddd
Fix rubocop offenses - Requires Ruby 3.1+
2022-11-25 11:10:06 +01:00
Sebastian Serth
a4e791e3de
Always render templates in Controller specs
2022-11-02 12:25:33 +01:00
Sebastian Serth
5e9bf9141c
Fix Rubocop offenses
2022-07-08 15:23:55 +02:00
Sebastian Serth
d9f40531fb
Fix Rubocop offenses
2022-04-20 18:26:53 +02:00
Sebastian Serth
ea85519163
Update bundle (with newest rubocop version) and fix offenses
2022-01-04 09:42:37 +01:00
Sebastian Serth
fb92d382ac
Skip verification of Docker image if pool size is empty
2021-11-09 17:49:51 +01:00
Sebastian Serth
79e8caea45
Remove outdated execution environments after syncing all
2021-11-04 20:09:20 +01:00
Sebastian Serth
c1ac401a49
Add retries to working_docker_image?
...
* Also synchronize images during save
2021-11-04 20:09:19 +01:00
Sebastian Serth
ecf470bddd
Refactor sync_environment methods
...
* Add delete_environment method
* Change return value to allow raising an exception
2021-11-04 20:06:40 +01:00
Sebastian Serth
7f47af99cb
Fix order-dependent specs
2021-11-04 19:15:33 +01:00
Sebastian Serth
01ec9343cf
Remove usage of DockerClient
2021-11-01 17:13:10 +01:00
Sebastian Serth
953643f05e
[Spec] Use strings for image names
2021-11-01 17:13:08 +01:00
Sebastian Serth
2b98905acb
Remove usage of DockerClient from execution_environments_controller.rb
2021-11-01 17:13:07 +01:00
Sebastian Serth
1dfee31079
Fix order-dependent execution_environments_controller_spec.rb
2021-11-01 17:13:05 +01:00
Sebastian Serth
d87e23b9a3
Add execute_command
method to runner.rb
...
* This is now used by the score and test runs
* This also re-enables the interactive shell for execution environments
2021-11-01 17:13:05 +01:00
Sebastian Serth
5037a73f36
Mock runner management settings for spec
2021-11-01 17:12:54 +01:00
Sebastian Serth
30603cb7ab
Generalize method and constant names for runner management
2021-11-01 17:12:53 +01:00
Konrad Hanff
0280c0282e
Add tests for synchronizing all execution environments
...
This adds policy tests to ensure only an admin can synchronize all
execution environments. It also adds controller tests that check that
all execution environments get synchronized.
2021-11-01 17:12:49 +01:00
Konrad Hanff
d22d24df4d
Add tests for execution environment copy to Poseidon
2021-11-01 17:12:48 +01: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
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
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
Ralf Teusner
0e26ab98c8
rename factory_girl_(rails) to factory_bot_(rails)
2017-11-15 15:18:07 +01:00
Maximilian Grundke
78422647fe
Add execution environment statistics
2015-10-29 14:19:31 +01:00
Hauke Klement
4eef3d70d5
minor refactoring of flash messages
2015-03-23 16:42:57 +01:00
Hauke Klement
42c8b47d40
concretized redirection expectations in controller specs
2015-02-24 18:57:00 +01:00
Hauke Klement
2180c3878e
added tests
2015-02-23 10:35:58 +01:00
Hauke Klement
a13d1738e2
fixed multiple style guide violations
2015-02-17 10:23:01 +01:00
Hauke Klement
b21a7ee8e8
use shorter notation for creating procs, as suggested by RuboCop
2015-02-17 08:21:00 +01:00
Hauke Klement
232c6b398f
extracted method
2015-02-09 16:24:33 +01:00
Hauke Klement
5f0815b140
implemented pooling for Docker containers
2015-02-06 15:59:51 +01:00
Hauke Klement
b08bc8aef2
sped up some tests
2015-01-30 10:50:44 +01:00
Hauke Klement
4cbf9970b1
transferred Code Ocean from original repository to GitHub
2015-01-22 10:01:32 +01:00