Sebastian Serth
fa27e3923d
Reimplement pending specs with rough skeleton
2022-08-09 11:41:41 +02:00
Sebastian Serth
2141fdb1ac
Refactor external_user_statistics to own controller action
2022-07-22 13:19:22 +02:00
Janis4411
67dd8566b6
added a test scenario to check if autosave submissions are being toggled right
2022-07-20 17:18:36 +02:00
Sebastian Serth
c792b99523
Fix tests for latest locale change
2022-07-15 14:02:10 +02: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
Karol
c5c47715b3
Merge branch 'master' into refactor_proforma_import_export
...
# Conflicts:
# spec/controllers/exercises_controller_spec.rb
2022-01-11 22:20:18 +01:00
Karol
3260d8f82f
tiny refactor from exercise_found to task_found
2022-01-11 22:17:09 +01: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
601e1fab5c
Remove all occurrences of server-sent events
2021-11-01 17:12:57 +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
Felix Auringer
b6bc578aea
Move submission scoring from controller concern to submission model
...
Localization and markdown formatting is now done in a controller
spec in order to bring this logic away from the data and towards
the view.
2021-11-01 17:12:50 +01:00
Felix Auringer
cf58be97ee
Fix 17 previously failing specs
2021-11-01 17:12:49 +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
5e913c8a1a
Skip failing tests
...
17 tests are always failing, due to changes introduced when adding the
Runner abstraction. To know only these fail, they now get skipped in
order to make it apparent if tests that should not fail do fail in the
pipeline.
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
bb4b4ece92
Add ping/pong health check
2021-10-09 23:37:31 +02:00
Sebastian Serth
d08707f62e
Fix switch_locale to return the block result
2021-06-28 16:08:24 +02:00
Sebastian Serth
1b71163a77
Refactor locale with around method
2021-06-25 17:36:56 +02:00
Sebastian Serth
e7cf4ef5db
Apply automatic rubocop fixes
2021-06-25 14:41:49 +02:00
Sebastian Serth
cb9870447f
Update Bundle
...
* Also fix new offenses discovered by the new Rubocop version
2021-06-01 17:41:54 +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
ebdfd4ab63
Re-enable oscillating tests
2021-05-12 16:47:05 +02:00
Sebastian Serth
2b32829e60
Upgrade DatabaseCleaner strategy
2021-05-12 16:47:05 +02:00
Sebastian Serth
8378070bc2
Upgrade to Rails 6.0 and apply new framework defaults
2021-05-12 16:47:05 +02:00
Sebastian Serth
1e5a9b0825
Remove unused SubmissionsController#stop action
2021-04-07 17:45:38 +02:00
Tobias Kantusch
40d83dbb1d
Fix access to exercise-specific RfC listing
2021-04-07 14:06:32 +02:00
Sebastian Serth
b10e23dd16
Upgrade to newest Sentry
2021-03-04 14:02:16 +01:00
Sebastian Serth
293bcccc80
Introduce new enabled
option for CodeHarbor
...
* Fix tests to ensure they work independent of config option
2021-02-16 14:29:54 +01:00
Sebastian Serth
bc05a363f2
Fix spec for InternalUser#forgot_password
2021-01-27 18:40:53 +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
Sebastian Serth
f5492ca35d
Improve CodeOcean::FilePolicy with specs
2020-12-07 14:41:30 +01:00
Sebastian Serth
c32e7586cd
Remove consumer_id from session
...
* Each external (and also internal) user has a consumer attached. We don't need that information twice.
2020-11-25 21:19:18 +01:00
Sebastian Serth
be3ec82bd4
Add new file role teacher_defined_linter
2020-10-15 00:43:57 +02:00
Sebastian Serth
758f2b3365
Adopt tests to respect Raven context
2020-01-29 09:55:35 +01:00
Karol
f49cd0bed4
forbid users to import an exercise they do not have access to (previously a new one was created)
2019-12-18 17:52:34 +01:00
Karol
1ddd6e19f5
add transaction spec
2019-12-14 12:34:55 +01:00
Karol
f680916385
remove create_new functionality, when exercise exists on CH but is not editable
2019-12-13 16:43:19 +01:00