slapos.core:9024402b2d7ac8bf8818ec266fd5636c0aabdcb6 commitshttps://lab.nexedi.com/nexedi/slapos.core/-/commits/9024402b2d7ac8bf8818ec266fd5636c0aabdcb62020-01-08T06:13:39+01:00https://lab.nexedi.com/nexedi/slapos.core/-/commit/9024402b2d7ac8bf8818ec266fd5636c0aabdcb6slapos_crm: Extent SoftwareInstance_hasReportedError to make it more flexible2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.com
Allow it report the message and creation date, which can be usable on other contexts.https://lab.nexedi.com/nexedi/slapos.core/-/commit/81c4585a9c87514b5b09623e98ef037e36b4dff5slapos_crm: More accurate checks when recheck the Support Reuest Monitoring S...2020-01-08T06:13:39+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/9bd2ad5a9b64c7b44cfa104eae3c7d37e3324ffdslapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after...2020-01-07T14:38:32+01:00Thomas Gambierthomas.gambier@nexedi.comslapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after <a href="/nexedi/slapos.core/-/commit/f512ad84c587702066c6a981885f039b16c31875" data-original="f512ad84c587702066c6a981885f039b16c31875" data-link="false" data-link-reference="false" data-project="77" data-commit="f512ad84c587702066c6a981885f039b16c31875" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="slapos_payzen; Scripts moved to slapos_account in order to make it compatible..." class="gfm gfm-commit has-tooltip">f512ad84</a>
https://lab.nexedi.com/nexedi/slapos.core/-/commit/40501fcae95e29bdc8edc3e7a0a3e391de5523faBetter testcase snapshots2020-01-07T04:11:55+01:00Jérome Perrinjerome@nexedi.com
Implementing improvements discussed in <a href="https://lab.nexedi.com/nexedi/slapos/commit/1a5df533809238a82b09fc9aae56bc90e31672af#note_93275" data-original="https://lab.nexedi.com/nexedi/slapos/commit/1a5df533809238a82b09fc9aae56bc90e31672af#note_93275" data-link="false" data-link-reference="true" data-project="15" data-commit="1a5df533809238a82b09fc9aae56bc90e31672af" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="slaprunner: support shared parts" class="gfm gfm-commit has-tooltip">slapos@1a5df533 (comment 93275)</a> and on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/150#note_92471" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/150#note_92471" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3376" data-project-path="nexedi/slapos.core" data-iid="150" data-mr-title="testcase: Snapshot on setUpClass failure" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!150 (comment 92471)</a>
We now only store slapos logs one per `setUpModule` for software and `setupClass` for instances.
There's no de-duplication, but it's still a bit big.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/156" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/156" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3412" data-project-path="nexedi/slapos.core" data-iid="156" data-mr-title="Better testcase snapshots" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!156</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/7923d872cad675ed3eab2cc8bcbdcd7c1df57c57slapos_jio_ui_test: Ensure the test is reindexed.2020-01-03T16:05:10+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f89a7d75ccca44d3f6072d67f02af5374cce6561slapos_subscription_request: Implement notification when Instance is ready sc...2020-01-03T02:26:15+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/b9a856389ec9860c6bc638e71b09ac76d8e464bcslapos_subscription_request: Display more columns on Subscription Condition L...2020-01-02T22:30:59+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f479e62e9a768592bdffd97b008174829aeb60e6slapos_subscription_request: Extend subscription_request_workflow to handle n...2020-01-02T18:11:38+00:00Rafael Monneratrafael@nexedi.com
Include additional states to handle additional steps when handle a subscription requests.
started: Once Subscription is started, it means that instance is ready and user was notified
stopped: Once Subscription is stopped, it means that instance is destroyed but not all invoices were payed. Subscription is about to be Delivered (Closed).https://lab.nexedi.com/nexedi/slapos.core/-/commit/c0ab4e958513ebc555379dda5d203a637a3d18d4slapos_jio: Remove unfinished chinese translation2019-12-30T22:29:48+00:00Rafael Monneratrafael@nexedi.com
This prevents things get broken.https://lab.nexedi.com/nexedi/slapos.core/-/commit/fc3284987a0ee88aeb6d63a38c1c7b31485763c1slapos_erp5: Fix user security for Software/Slave Instance/Installation on sh...2019-12-27T22:47:47+00:00Rafael Monneratrafael@nexedi.com
Once the Computer/Hosting Subscription is transferred using Internal Packing List, the associated installation and instance should acquire security from the respective context.https://lab.nexedi.com/nexedi/slapos.core/-/commit/1c509f97bd226ff815d82731d5ab72fe4e8f944aslapos_erp5: Update wechat event roles when edit the document.2019-12-27T15:48:25-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/f721ab4406c9cdbd6155be3bce38cb25886f6883slapos_crm: Fix up test, alarm is only call for Support Request associated to...2019-12-27T15:48:24-02:00Rafael Monneratrafael@nexedi.comslapos_crm: Fix up test, alarm is only call for Support Request associated to a Hosting Subscription
https://lab.nexedi.com/nexedi/slapos.core/-/commit/7c493839205acb0b204565158975822c694143f6slapos_jio: Translate Payment Result page into Chinese.2019-12-27T15:48:24-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/7e808622568df515270327c08f010fb777a1d220slapos_crm: Do not suspend Support Requests2019-12-27T15:48:23-02:00Rafael Monneratrafael@nexedi.com
Tickets should be automatic suspended if they aren't supposed to be responded by the user.https://lab.nexedi.com/nexedi/slapos.core/-/commit/95eb074e87b0ab0427648fe0090ff6726a2c26ccslapos_wechat: Base_queryWechatOrderStatusByTradeNo uses shadow person2019-12-27T15:48:23-02:00Rafael Monneratrafael@nexedi.com
This API is used by anonymous so we convert the query for the rely on shadow person securityhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/3ba6dd46d891fd11ef0cbdbae4474cf22415012fslapos_wechat: Fixup security for anonymous access while verifing payment2019-12-27T15:48:22-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/179bcdaac6c9ddfe6b194975c7193e0ef234498fslapos_wechat: Images from wechat are published by default2019-12-27T15:48:21-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/5bd516bdb0bd66fd7fe7198ad760f94f860e05d4promise: Cleanup plugin folder on each run2019-12-27T14:14:30+01:00Łukasz Nowakluke@nexedi.com
Promise can appear and disappear, and pyc or pyo files can stay in the folder,
so try hard to remove those stale files.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/169" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/169" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3514" data-project-path="nexedi/slapos.core" data-iid="169" data-mr-title="promise: Cleanup plugin folder on each run" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!169</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/dd8f4b5aefbb44734f76324328b87267e87b1c20testing/testcase: remove slapos log files after each test class2019-12-27T12:34:46+01:00Jérome Perrinjerome@nexedi.com
To isolate log files per test in the snapshotshttps://lab.nexedi.com/nexedi/slapos.core/-/commit/92c9a0fb0cd57e9fa8027881c1789661490ef716testing/testcase: separate instance/software snapshot2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Log files from slapos node software are large and they are always the
same after each test method, so it does not make much sense to store
them for each test method snapshot, because we only run slapos node
software at setupModule step.
Log files from slapos node instance are smaller, but it's also not
needed to make a snapshot after each test, because we only run slapos
node instance at setUpClass step.
To prevent duplication, store slapos log files only at setupModule (for
software) and at setUpClass (for instance).
Also store log slapos log files in all the steps that can fail in
_cleanup.https://lab.nexedi.com/nexedi/slapos.core/-/commit/8354f1a4664df7956eb6059062262f0bb38fc5d5testing/testcase: snapshot etc recursively2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Everything in etc can be interesting while investigating issues in
test, also it should not be too big.https://lab.nexedi.com/nexedi/slapos.core/-/commit/fe162b7dd2361d7b616bc8e20d1bc669fa2f63abtesting/testcase: snapshot bin/*2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
It's also interesting to see what scripts have been generatedhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/d0c4d6997b1537f795940c3a4a9778aa13d6e5b2testing/testcase: snapshot *.cfg and .*.cfg files in instance dir2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Keeping buildout.cfg and .installed.cfg can help diagnosing test
failures.https://lab.nexedi.com/nexedi/slapos.core/-/commit/9d985106c8ed199df91535e964098b26f5926c68testing/testcase: snapshot symlinks and directories2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
Directories were ignored by mistake, we found out that several files
that would help us diagnosing problems were missing, because we only
snapshot etc/* which did not snapshot recursive directories such as
etc/promise or etc/service.
Symlinks were copied (the target was copied), because they matched the
isfile check, but if the symlink target was not existent, this caused
errors.
Also rename _snapshot_instance_file to _copySnapshot as it is no longer
treating files onlyhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/c20aaaac800a17df2aa7b0dd085618fd7b396776standalone: keep only 5MB of logs2019-12-27T09:30:50+01:00Jérome Perrinjerome@nexedi.com
50 was too much now that we keep snapshots in tests.https://lab.nexedi.com/nexedi/slapos.core/-/commit/b5772299ea8fc3c5b0181a4fa46e0bd4fc779df5testcase: Snapshot more interesting files2019-12-24T11:04:55+01:00Łukasz Nowakluke@nexedi.com
supervisor configuration is interesting to inspect in, the same for runners
in run and service directories.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/170" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/170" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3521" data-project-path="nexedi/slapos.core" data-iid="170" data-mr-title="testcase: Snapshot more interesting files" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!170</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/d7bf6407c6dce0f776185babc96016349faf5b69slapos_jio_ui_test: Check user access improper subscription2019-12-20T14:33:52+01:00Boxiang Sunboxiang.sun@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/4b2f3583f0c14419b00b4ed7fbd3f33b76494406slapos_jio: Notify user they are trying to access document without correct pe...2019-12-20T14:33:52+01:00Boxiang Sunboxiang.sun@nexedi.com
And display a "logout" button in the page.
Instead display plain renderjs error messagehttps://lab.nexedi.com/nexedi/slapos.core/-/commit/38b047d5d085033193583c207e0e439fcbd82f68slapos_payzen: Support also subscriptions related invoices when create a Reve...2019-12-19T00:41:21-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/ae77b71d74b6a77883d6d31e120e78ec747b33e7slapos_wechat: Add test for ensure builder also works with wechat payments2019-12-19T00:41:20-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/4b0d079c30c38a7d662119de1b50b29e1950d169slapos_payzen: Make alarm compatible with wechat also2019-12-19T00:41:20-02:00Rafael Monneratrafael@nexedi.com
Probably this alarm should move into some other bt5 in future.https://lab.nexedi.com/nexedi/slapos.core/-/commit/f2207794a43634761342f2aacfe71f456cc855c2slapos_wechat: Add a test for alarm2019-12-19T00:41:19-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/26c4d8f18f1097a105eb22e2536a0df63a631bbfslapos_wechat: Price isn't a negative value2019-12-19T00:41:16-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/e725b1e76f0d2d88534ef80364a03aca986d4a07slapos_wechat: Fix tests and some scripts2019-12-19T00:40:05-02:00Rafael Monneratrafael@nexedi.com
Add a mock for absolute_url as the test requires a valid urlhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/2b88f935d4782ac074ee59e5b8575f938cc29147slap/standalone: Provide well known configuration file to supervisord2019-12-18T10:39:36+01:00Łukasz Nowakluke@nexedi.com
The supervisord binary in some environments (like webrunner), seems to not
follow the automatic way to find the configuration file, so instead of relying
on it, just explicitly provide the file.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/168" data-original="https://lab.nexedi.com/nexedi/slapos.core/merge_requests/168" data-link="false" data-link-reference="true" data-project="77" data-merge-request="3501" data-project-path="nexedi/slapos.core" data-iid="168" data-mr-title="slap/standalone: Provide well known configuration file to supervisord" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!168</a>https://lab.nexedi.com/nexedi/slapos.core/-/commit/b9e4820b42d5080010c6af7ded6a6dcaf86ee773slapos_wechat: Fix up test2019-12-18T01:11:13-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/ade9c89165e7ed6af91cda4d65d90dd9dd457b29slapos_wechat: Fix tests and some scripts2019-12-18T01:11:08-02:00Rafael Monneratrafael@nexedi.com
Add a mock for absolute_url as the test requires a valid urlhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/27baf711aac17016bb0f427baf49bbf0f62e6c7dslapos_erp5: Export local roles from wechat test site integration2019-12-18T01:09:26-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/b48ecd2a1ac932f7e8e6e41b1a6009e55ae6751bslapos_wechat: Add Draft testSlapOSWechatWorkflow2019-12-18T01:09:25-02:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.core/-/commit/7a4811b82c9490933d8a6f01807e8a728c5f444eslapos_erp5: Add TestWechatEvent on testSlapOSERP5GroupRoleSecurity2019-12-18T01:09:25-02:00Rafael Monneratrafael@nexedi.com