Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos.core
Commits
5f46d123
Commit
5f46d123
authored
Sep 20, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: drop testSlapOSContractAlarm
parent
f65dfb12
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
212 deletions
+7
-212
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSContractAlarm.py
...em/portal_components/test.erp5.testSlapOSContractAlarm.py
+0
-98
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSContractAlarm.xml
...m/portal_components/test.erp5.testSlapOSContractAlarm.xml
+0
-106
master/bt5/slapos_accounting/bt/template_test_id_list
master/bt5/slapos_accounting/bt/template_test_id_list
+7
-8
No files found.
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSContractAlarm.py
deleted
100644 → 0
View file @
f65dfb12
# Copyright (c) 2013 Nexedi SA and Contributors. All Rights Reserved.
from
erp5.component.test.SlapOSTestCaseMixin
import
SlapOSTestCaseMixin
class
TestSlapOSRequestValidationPayment
(
SlapOSTestCaseMixin
):
def
test_alarm_software_instance_unallocated
(
self
):
self
.
_makeTree
()
preference
=
self
.
portal
.
portal_preferences
.
getActiveSystemPreference
()
preference
.
setPreferredCloudContractEnabled
(
True
)
self
.
tic
()
script_name
=
"SoftwareInstance_requestValidationPayment"
alarm
=
self
.
portal
.
portal_alarms
.
slapos_contract_request_validation_payment
self
.
_test_alarm
(
alarm
,
self
.
software_instance
,
script_name
)
def
test_alarm_slave_instance_unallocated
(
self
):
self
.
_makeSlaveTree
()
preference
=
self
.
portal
.
portal_preferences
.
getActiveSystemPreference
()
preference
.
setPreferredCloudContractEnabled
(
True
)
self
.
tic
()
script_name
=
"SoftwareInstance_requestValidationPayment"
alarm
=
self
.
portal
.
portal_alarms
.
slapos_contract_request_validation_payment
self
.
_test_alarm
(
alarm
,
self
.
software_instance
,
script_name
)
def
test_alarm_software_instance_unallocated_disable_cloud_contract
(
self
):
self
.
_makeTree
()
preference
=
self
.
portal
.
portal_preferences
.
getActiveSystemPreference
()
preference
.
setPreferredCloudContractEnabled
(
False
)
self
.
tic
()
script_name
=
"SoftwareInstance_requestValidationPayment"
alarm
=
self
.
portal
.
portal_alarms
.
slapos_contract_request_validation_payment
self
.
_test_alarm_not_visited
(
alarm
,
self
.
software_instance
,
script_name
)
def
test_alarm_slave_instance_unallocated_disable_cloud_contract
(
self
):
self
.
_makeSlaveTree
()
preference
=
self
.
portal
.
portal_preferences
.
getActiveSystemPreference
()
preference
.
setPreferredCloudContractEnabled
(
False
)
self
.
tic
()
script_name
=
"SoftwareInstance_requestValidationPayment"
alarm
=
self
.
portal
.
portal_alarms
.
slapos_contract_request_validation_payment
self
.
_test_alarm_not_visited
(
alarm
,
self
.
software_instance
,
script_name
)
def
test_alarm_software_instance_allocated
(
self
):
self
.
_makeTree
()
preference
=
self
.
portal
.
portal_preferences
.
getActiveSystemPreference
()
preference
.
setPreferredCloudContractEnabled
(
True
)
self
.
tic
()
self
.
_makeComputeNode
()
self
.
software_instance
.
setAggregate
(
self
.
partition
.
getRelativeUrl
())
self
.
tic
()
script_name
=
"SoftwareInstance_requestValidationPayment"
alarm
=
self
.
portal
.
portal_alarms
.
slapos_contract_request_validation_payment
self
.
_test_alarm_not_visited
(
alarm
,
self
.
software_instance
,
script_name
)
def
test_alarm_slave_instance_allocated
(
self
):
self
.
_makeSlaveTree
()
preference
=
self
.
portal
.
portal_preferences
.
getActiveSystemPreference
()
preference
.
setPreferredCloudContractEnabled
(
True
)
self
.
tic
()
self
.
_makeComputeNode
()
self
.
software_instance
.
setAggregate
(
self
.
partition
.
getRelativeUrl
())
self
.
tic
()
script_name
=
"SoftwareInstance_requestValidationPayment"
alarm
=
self
.
portal
.
portal_alarms
.
slapos_contract_request_validation_payment
self
.
_test_alarm_not_visited
(
alarm
,
self
.
software_instance
,
script_name
)
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSContractAlarm.xml
deleted
100644 → 0
View file @
f65dfb12
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testSlapOSContractAlarm
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testSlapOSContractAlarm
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_accounting/bt/template_test_id_list
View file @
5f46d123
test.erp5.testSlapOSConsumptionSkins
test.erp5.testSlapOSAccountingAlarm
test.erp5.testSlapOSSaleSupply
test.erp5.testSlapOSAccountingConstraint
test.erp5.testSlapOSAccountingRule
test.erp5.testSlapOSAccountingBuilder
test.erp5.testSlapOSAccountingBuilder
test.erp5.testSlapOS
ContractSkins
test.erp5.testSlapOS
AccountingConstraint
test.erp5.testSlapOSAccountingInteractionWorkflow
test.erp5.testSlapOSAccountingInteractionWorkflow
test.erp5.testSlapOSAccountingRule
test.erp5.testSlapOSAccountingSkins
test.erp5.testSlapOSAccountingSkins
test.erp5.testSlapOS
AccountingAlarm
test.erp5.testSlapOS
ConsumptionSkins
test.erp5.testSlapOSContract
Alarm
test.erp5.testSlapOSContract
Skins
test.erp5.testSlapOSEntityCreatePayment
test.erp5.testSlapOSEntityCreatePayment
test.erp5.testSlapOSSaleSupply
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment