- 20 Feb, 2019 13 commits
-
-
Rafael Monnerat authored
-
Rafael Monnerat authored
slapos_accounting: Use specific trade condition if Hosting Subscription comes from a Subscription Request This allow the system differ the 2 scenarios.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
When the Hosting Subscription comes from a Subscription Request, the Trade Condition applied is a different one (slapos_aggregated_subscription_trade_condition). Update all related scripts to work accordinally. SPL on this case are started as soon they are created and a payment generated.
-
Rafael Monnerat authored
This is used for subscription mode, like rapid.space VM-Like services.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Subscription and Trial uses setDefaultEmailText when create a Trial/Subscription as annonymous which will trigger this workflow and raise Unauthorized when invoke Coordinate_beforeCoordinateTextChange. As Reacheability/Unreacheability is not tracked on SlapOS master for now, so this commits remove the interaction workflow for Email (only).
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Code migrated from testSlapOSERP5DefaultScenario.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This would guarantee that the ungenerated payment from others tests are generated, while you are running live tests.
-
- 18 Feb, 2019 2 commits
-
-
Łukasz Nowak authored
/reviewed-on nexedi/slapos.core!99
-
Bryton Lacquement authored
This fixes a regression introduced in commit 7467ef4c ("Add Python 3 support"). /reviewed-on nexedi/slapos.core!98
-
- 15 Feb, 2019 1 commit
-
-
Alain Takoudjou authored
The reload part is mainly used for tests, module is reloaded if the promise file has changed. Here, __file__ ends with pyc when promise_path ends with py.
-
- 08 Feb, 2019 2 commits
-
-
Alain Takoudjou authored
-
Rafael Monnerat authored
Since the compatibility with python3 the code change to not encode the string anymore. @jm @bminusl can you take a look if it is enough (I will improve commit message after) This at least make the test pass. /reviewed-on nexedi/slapos.core!94
-
- 07 Feb, 2019 1 commit
-
-
Łukasz Nowak authored
Just like reference implementation support empty keys. /cc @rafael This makes slapproxy behave the same way as SlapOS Master for empty keys while requesting slaves. /reviewed-on nexedi/slapos.core!96
-
- 06 Feb, 2019 3 commits
-
-
Alain Takoudjou authored
-
Alain Takoudjou authored
-
Alain Takoudjou authored
There is now `EmptyResult` object which is an empty promise result. This result is send if the promise test or anomaly was skiped (if disabled). To prevent raise because `EmptyResult` is unknonwn on old slapos-node with `slapos.core < 1.4.17` we will send an empty TestResult instead.
-
- 05 Feb, 2019 4 commits
-
-
Alain Takoudjou authored
-
Alain Takoudjou authored
Support for promise test-less or anomaly-less allow to disable either the test phase or the anomaly phase. by default, test and anomaly are enabled, `__is_tested = True` and `__is_anomaly_detected = True`. Test will run when buildout is processing the computer partition, and anomaly when the partition is processed. Call `self.setTestLess()` in `__init__.py` of the promise will disable Test and set `__is_tested = False`. Call `self.setAnomalyLess()` will rather disable Anomaly and set `__is_anomaly_detected = False`. def __init__(self, config): GenericPromise.__init__(self, config) # Skip test check on this promise self.setTestLess() If the promise is test less, then slapgrid will not run the promise while processing the partition which mean that the promise will not report error, only Anomaly will be checked. Samething, if promise is anomaly less, only test will run when slapgrid is processing the partition. /reviewed-on !93
-
Alain Takoudjou authored
-
Alain Takoudjou authored
Support for promise test-less or anomaly-less allow to disable either the test phase or the anomaly phase. by default, test and anomaly are enabled. Test will run when buildout is processing the computer partition, and anomaly when the partition is processed. Call `self.setTestLess()` in __init__.py of the promise will disable Test and set `__is_tested = False`. Call `self.setAnomalyLess()` will rather disable Anomaly and set `__is_anomaly_detected = False`. If the promise is test less, then slapgrid will not run the promise while processing the partition which mean that the promise will not report error, only Anomaly will be checked. Samething, if promise is anomaly less, only test will run when slapgrid is processing the partition.
-
- 31 Jan, 2019 2 commits
-
-
Jérome Perrin authored
This can hide problems when tests are not isolated correctly. /reviewed-on nexedi/slapos.core!84
-
Jérome Perrin authored
- rename test files as test_*.py, this is how tests are collected by py.test - take into account that test runner might disable log level and patch sys.stdout already /reviewed-on nexedi/slapos.core!92
-
- 25 Jan, 2019 6 commits
-
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
It incldudes minor fixes on the scripts
-
Rafael Monnerat authored
This may reduce code duplication across tests of several bt5 tests
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
- 23 Jan, 2019 4 commits
-
-
Thomas Gambier authored
this will be usefull when looking for all HS belonging to someone. /cc @alain.takoudjou @rafael @guillaume.hervier /reviewed-on nexedi/slapos.core!90
-
Thomas Gambier authored
-
Thomas Gambier authored
the related keys were missing in master/bt5/slapos_cloud/bt/template_catalog_method_id_list
-
Thomas Gambier authored
the related keys were correctly commited in master/bt5/slapos_cloud/CatalogRelatedKeyTemplateItem/related_key_list.xml but not in master/bt5/slapos_cloud/bt/template_catalog_related_key_list
-
- 18 Jan, 2019 2 commits
-
-
Alain Takoudjou authored
- fix upgrade decision duplicated when an hosting subscription is deployed in many partitions - Prevent concurrent transaction to create 2 upgrade decision for the same Hosting Subscription /reviewed-on nexedi/slapos.core!79
-
Alain Takoudjou authored
-