Gina Häußge
ffb2a0ed73
Merge branch 'master' into maintenance
2020-08-04 14:24:58 +02:00
Gina Häußge
0364130dd3
⬆️ Upgrade cypress
2020-08-04 14:14:47 +02:00
Gina Häußge
e49d0b0c22
💚 Use fixed umask for tests
2020-08-03 10:50:57 +02:00
Gina Häußge
a846fd8f83
✅ Add E2E for basic settings dialog behaviour
2020-08-03 10:31:25 +02:00
Gina Häußge
e7e04271fd
💚 Fix tests broken by 894178918
2020-08-03 09:59:56 +02:00
Gina Häußge
87cd0a88fb
Merge branch 'staging/maintenance' into maintenance
2020-07-22 14:52:41 +02:00
Gina Häußge
6165e5b0f0
💚 Fix flaky connect test
2020-07-22 14:48:15 +02:00
Gina Häußge
4511d8667b
✅ E2E: Add basic upload test
2020-07-22 14:02:36 +02:00
Gina Häußge
b1e2121682
✨ New recovery endpoint & refactoring
...
At /recovery/ there's now a (for now basic) recovery dialog that
currently allows the core functionality from the system command menu, so
shutting down and rebooting the system, restarting OctoPrint and
restarting OctoPrint in safe mode. The most important part here is the
ability to restart in safe mode, as that will allow to get OctoPrint
back into working order if an errant third party plugin or language
pack has made the standard UI non functional.
For that reason, no third party plugins are enabled or utilized on the
recovery dialog, even the theming hook is aggressively error resilient.
In order to still allow to authenticate the user (no one but ADMIN
should be allowed to use the recovery UI) the loginui plugin has been
merged into core as its own endpoint /login/ which coreui and recovery
can redirect to. This is a welcome change considering that the loginui
was absolutely necessary anyhow, and it being a plugin was merely a side
effect of backporting from forcelogin. This has now been cleaned up.
2020-07-20 17:00:31 +02:00
Gina Häußge
719c3e3b0b
💚 And now REALLY reenable them 😅
2020-07-14 18:23:15 +02:00
Gina Häußge
123266d0ff
💚 Forgot to re-enable some E2E tests
2020-07-14 17:52:42 +02:00
Gina Häußge
aa0ba6881c
💚 Improve E2E tests
...
Way less flaky now, and sprinkled with some helpers to ensure stuff has
loaded fine before trying to fire off tests 🥳
2020-07-14 17:48:36 +02:00
Gina Häußge
01940bbb10
💚 (Hopefully) fix & re-enable E2E tests
...
We now wait for full app initialization (OctoPrint.coreui.startedUp &
OctoPrint.loginui.startedUp) before trying to test against things.
At least in local test runs that solved the flakiness.
2020-07-13 16:06:28 +02:00
Gina Häußge
736dca4d07
💚 Disable login tests for now
...
They aren't stable and currently can't be relied upon. For some reason
the page sometimes just doesn't reload in the test browsers.
2020-07-06 22:56:58 +02:00
Gina Häußge
f2ca247731
💚 Fix cypress login test's wobbliness
...
Hopefully at least...
2020-07-06 22:30:36 +02:00
Gina Häußge
7fe5af0466
👷 ️ e2e: Back to VIRTUAL
...
Turns out github action runners have /dev/ttyS* 😅
2020-07-02 18:07:07 +02:00
Gina Häußge
9f68900dc5
👷 ️ e2e: Switch to auto detect & wait for profiles
2020-07-02 18:03:43 +02:00
Gina Häußge
7c4e0b2344
👷 ️ Combine connect & disconnect
2020-07-02 17:52:54 +02:00
Gina Häußge
75c1b02760
👷 ️ e2e: Add connection test
2020-07-02 17:38:31 +02:00
Gina Häußge
fd1ddab50f
👷 ️ Let's see if waiting helps
2020-07-02 16:56:28 +02:00
Gina Häußge
622aad07dc
👷 ️ First throw at E2E testing
2020-07-02 15:19:39 +02:00
Gina Häußge
4689e87a1f
♻ Fix a unit test
2020-06-15 18:41:18 +02:00
Gina Häußge
80f94946e3
Revert "➕ ➖ Switch from awesome-slugify to python-slugify"
...
This reverts commit 73fbd15b
The change causes a full rescan for renaming on the uploads folder.
Unintended, needs to be looked at closer at a later date.
2020-06-03 18:42:48 +02:00
Gina Häußge
73fbd15bca
➕ ➖ Switch from awesome-slugify to python-slugify
2020-06-03 15:13:00 +02:00
Gina Häußge
5cb7fa4dc9
💚 Fix unit test
2020-04-20 21:18:05 +02:00
Gina Häußge
09823115af
💚 Fix unit tests
2020-04-15 15:44:42 +02:00
Gina Häußge
010221ab5b
🐛 Fix handling of unset remote addresses
2020-01-29 11:35:56 +01:00
Gina Häußge
2801da5c51
💚 Fix unit tests by fixing mocked functions
...
Closes #3348
2019-11-26 16:22:08 +01:00
Gina Häußge
2e6b85990d
💚 Fix tests
2019-10-30 17:40:49 +01:00
Gina Häußge
8df2a5436b
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js
# src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js
# src/octoprint/plugins/tracking/__init__.py
# src/octoprint/printer/standard.py
# src/octoprint/server/views.py
# src/octoprint/static/js/app/viewmodels/printerstate.js
# src/octoprint/static/js/app/viewmodels/users.js
# src/octoprint/timelapse.py
# src/octoprint/users.py
# src/octoprint/util/comm.py
2019-09-12 09:30:28 +02:00
Gina Häußge
6069d74a54
💚 Fix unit tests
2019-06-18 13:35:21 +02:00
Gina Häußge
b03d43156d
🐛 Strip interface tags from addresses on local check
...
Closes #3143 and Sentry SERVER-11B
2019-05-15 13:19:14 +02:00
Gina Häußge
c0096c41a0
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/cli/plugins.py
# src/octoprint/events.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/logging/__init__.py
# src/octoprint/plugins/announcements/__init__.py
# src/octoprint/plugins/appkeys/__init__.py
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/plugins/forcelogin/static/js/main.js
# src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2
# src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css
# src/octoprint/plugins/printer_safety_check/__init__.py
# src/octoprint/plugins/softwareupdate/__init__.py
# src/octoprint/plugins/virtual_printer/virtual.py
# src/octoprint/printer/__init__.py
# src/octoprint/printer/estimation.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/api/settings.py
# src/octoprint/server/api/system.py
# src/octoprint/server/apps/__init__.py
# src/octoprint/server/util/__init__.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/server/views.py
# src/octoprint/settings.py
# src/octoprint/slicing/__init__.py
# src/octoprint/static/js/app/helpers.js
# src/octoprint/static/js/app/main.js
# src/octoprint/static/js/app/viewmodels/settings.js
# src/octoprint/static/js/app/viewmodels/temperature.js
# src/octoprint/templates/dialogs/settings/accesscontrol.jinja2
# src/octoprint/templates/dialogs/settings/api.jinja2
# src/octoprint/templates/initscript.jinja2
# src/octoprint/templates/tabs/control.jinja2
# src/octoprint/timelapse.py
# src/octoprint/users.py
# src/octoprint/util/comm.py
# src/octoprint/util/gcodeInterpreter.py
# src/octoprint/vendor/sockjs/tornado/transports/rawwebsocket.py
# src/octoprint/vendor/sockjs/tornado/transports/websocket.py
# translations/messages.pot
2019-05-10 17:13:55 +02:00
Gina Häußge
e44ae7a024
💚 Fix broken unit test
...
Who broke the test? That's right... me 😕
2019-03-12 16:26:14 +01:00
Gina Häußge
4e2afbc170
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/filemanager/storage.py
# src/octoprint/util/__init__.py
# src/octoprint/util/comm.py
2019-03-06 14:49:42 +01:00
Gina Häußge
92618362e1
💚 Forgot to adjust the tests for d071684
2019-03-05 17:01:10 +01:00
Gina Häußge
8b5626e49c
💚 Fix unit tests under Py3
2019-02-20 16:28:06 +01:00
Gina Häußge
dfcddea581
🎨 Fix some whitespace issues
2019-02-19 13:28:15 +01:00
Gina Häußge
3654512085
🐛 Fix mysteriously broken unit tests
2019-02-13 16:42:21 +01:00
Gina Häußge
606199dcc9
Merge branch 'maintenance' into devel
...
# Conflicts:
# tests/filemanager/test_filemanager.py
2019-02-13 14:56:40 +01:00
Gina Häußge
38868303da
🐛 Fix tests
2019-02-13 14:55:48 +01:00
Gina Häußge
75b5fe198f
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/_version.py
# src/octoprint/plugins/backup/__init__.py
# src/octoprint/plugins/cura/__init__.py
# src/octoprint/plugins/cura/profile.py
# src/octoprint/plugins/cura/templates/cura_settings.jinja2
# src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py
# src/octoprint/printer/standard.py
# src/octoprint/server/api/files.py
# src/octoprint/server/util/tornado.py
# src/octoprint/server/views.py
# src/octoprint/users.py
# src/octoprint/util/__init__.py
# versioneer.py
2019-02-13 14:28:06 +01:00
Gina Häußge
81d523b73d
♻ Backport to_str -> to_bytes from devel
...
Add unit tests.
2019-02-08 14:39:07 +01:00
Gina Häußge
32a8646135
♻ codecs.open -> io.open
...
The general consensus regarding codecs.open appears to be that it's only
left in Python 3 for backwards compatibility (which I find kind funny
but I digress...) and that io.open should be used instead for Py2.6+
since it's available and behaving the same in both versions. So that's
what we do here.
2019-02-06 16:05:09 +01:00
Gina Häußge
09cc7cf5f7
🐛 Fix unicode vs bytes issues for atomic_write
...
NamedTemporaryFile doesn't support the encoding parameter under py2.
However, without it specifying text mode defaults to ascii, causing some
issues especially with config files containing utf-8.
By swapping NamedTemporaryFile for mkstemp and a custom io.open call
(parameterized according to the open mode) we can support a proper
encoding aware atomic_write.
2019-02-06 16:03:32 +01:00
Gina Häußge
496e9f0ec4
✅ Add unit test for pip caller initialization
2019-02-06 13:11:03 +01:00
Gina Häußge
920283cf87
Merge branch 'devel' into pr/3032
...
# Conflicts:
# src/octoprint/access/groups.py
# src/octoprint/static/css/octoprint.css
2019-02-05 17:08:24 +01:00
Gina Häußge
becd16b892
🐛 Fix a test
2019-02-05 16:08:40 +01:00
Matthias Urlichs
ea17566aba
some more unused variables
2019-02-04 21:13:19 +01:00
Matthias Urlichs
315ed57916
Another missing import
2019-02-04 21:12:20 +01:00