- 28 Dec, 2018 18 commits
-
-
Rafael Monnerat authored
Implement a backend automated logic for Ticket management on hateoas UI. This interaction workflow replaces script calls, and custom inits for the portal type. This inteaction workflow could be explited per impacted business template or moved into slapos_hal_json_style to be more consistent.
-
Rafael Monnerat authored
The call to web_message stop was replaced by an interaction workflow entry along with the dummy sets with values hardcoded on the UI. In general, UI should be cleaned up to contain its minimal necessary for API and all the deeper logic should be implemented exclusively on the backend.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Update the fork of slapos with ERP5 Code.
-
Rafael Monnerat authored
Make it return to Home
-
Rafael Monnerat authored
This bt5 is not present on production, however, it is helpfull to have this script on a development machine.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Follow up changes from ERP5 after the rebase
-
Rafael Monnerat authored
This shouldn't be tested on this project scope.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This test lacks the use case of same user transaction
-
Rafael Monnerat authored
The Base.reindexObject is not called directly anymore, so patch a deeper level
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
- 27 Dec, 2018 5 commits
-
-
Thomas Gambier authored
assertNotEquals is deprecated since 3.2 (see https://docs.python.org/3.7/library/unittest.html#deprecated-aliases) This is a followup of 175b5788
-
Jérome Perrin authored
/reviewed-on nexedi/slapos.core!81
-
Jérome Perrin authored
`test_one_failing_daemon_in_service_will_bang_with_watchdog` often fail with: ``` ====================================================================== FAIL: test_one_failing_daemon_in_service_will_bang_with_watchdog (slapos.tests.slapgrid.TestSlapgridCPWithMasterWatchdog) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/slapgrid/slappart9/srv/testnode/bpy/inst/test0-0/parts/slapos.core/slapos/tests/slapgrid.py", line 907, in test_one_failing_daemon_in_service_will_bang_with_watchdog 'etc', 'software_release', 'worked', '.slapos-retention-lock-delay']) File "/srv/slapgrid/slappart9/srv/testnode/bpy/soft/5082e1741ad09c0910ec59bf9feae300/eggs/six-1.11.0-py2.7.egg/six.py", line 673, in assertCountEqual return getattr(self, _assertCountEqual)(*args, **kwargs) AssertionError: Element counts were not equal: First has 1, Second has 0: 'crashed' First has 1, Second has 0: 'launched' ``` This test uses a service that will create files `launched` and `crashed` files when running, and just after telling supervisor to start the service test inspects the directory content. If service had time to start, then files are created, otherwise they are not. Change the service to wait for a delay before creating the files to reduce the change of race condition here. /reviewed-on nexedi/slapos.core!82
-
Jérome Perrin authored
Slapos proxy was not really deleting the software, just removing it from its database but not telling the node that requester requested deletion. As a result, node was not destroying the software and leaving the software folder around. These changes are about telling the node that requester wanted destruction of software, so that node really delete the folder. /reviewed-on nexedi/slapos.core!76
-
Jérome Perrin authored
Tests are sometimes failing with: ``` ====================================================================== FAIL: testForwardToMasterInList (slapos.tests.slapproxy.TestMultiMasterSupport) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/slapgrid/slappart9/srv/testnode/byq/inst/test0-0/parts/slapos.core/slapos/tests/slapproxy/__init__.py", line 1003, in setUp self.startExternalProxy() File "/srv/slapgrid/slappart9/srv/testnode/byq/inst/test0-0/parts/slapos.core/slapos/tests/slapproxy/__init__.py", line 1050, in startExternalProxy self.fail('Could not start external proxy.') AssertionError: Could not start external proxy. ``` especially on `COMP-2203-3Nodes-ERP5PROJECT2`. I logged on that machine and check the tests, it was really a problem that this slapproxy needs more than the `(20 * .1) = 2` seconds this tests waits before concluding that slap proxy could not start. Change the waiting loop to wait more each time. With this approach the max waiting time is 20 seconds. /reviewed-on !83
-
- 26 Dec, 2018 2 commits
-
-
Bryton Lacquement authored
/reviewed-on nexedi/slapos.core!85
-
Jérome Perrin authored
this XXX comment no longer apply
-
- 21 Dec, 2018 2 commits
-
-
Alain Takoudjou authored
put back `related_predecessor_but_with_different_title_than_catalog_title` which was removed by commit 85c7fb26 /reviewed-on nexedi/slapos.core!80
-
Jérome Perrin authored
SlapOS test is too verbose, see http://community.slapos.org/test_result_module/20181211-426F13FE/6 as an example. The main goal of this work is to make this easier to read. Other improvements: * introduce `subprocess32` on python2 to use new subprocess features on python2 * honor `SLAPOS_TEST_DEBUG` environment variable to output logs and also enable debugging utilities ( unittest's `Ctrl+C` handler ) /reviewed-on nexedi/slapos.core!73
-
- 20 Dec, 2018 5 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
now that we are using version 12 Also, rename the dump as "current", so that it's more obvious that unlike the database_dump_version_10.sql file from the same folder that's supposed to be a fixed version, this one is for the current version and needs to be updated each time.
-
Jérome Perrin authored
proxy was just removing the software from database when destruction was requested. Instead, keep it as requested_state = "destroyed" and return this information to the node, so that nodes properly destroy the software.
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 17 Dec, 2018 6 commits
-
-
Alain Takoudjou authored
Upgrade Decision which are not closed are added to ticket listbox Closed ticket are now hidden /reviewed-on nexedi/slapos.core!75
-
Jérome Perrin authored
Use logger which is only enabled in debug mode. Also don't print tips when executing this file, describe it in the docstring instead.
-
Jérome Perrin authored
Especially, don't use None which cause output on the console.
-
Jérome Perrin authored
-
Jérome Perrin authored
to keep tests silent. On python2, this uses subprocess32, which backports DEVNULL (and default setting of closing file descriptors).
-
Jérome Perrin authored
subprocess32 backports the good things from python3's subprocess and is recommended on https://docs.python.org/2/library/subprocess.html
-
- 16 Dec, 2018 2 commits
-
-
Jérome Perrin authored
it's now configured in tests/__init__.py
-
Jérome Perrin authored
When running tests we don't want to clutter the output with logs. Environment variable SLAPOS_TEST_DEBUG can be set to restore the verbosity
-