Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Hamza
erp5
Commits
c53d70d4
Commit
c53d70d4
authored
Mar 18, 2016
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5.util.testnode: update unit test to take into account transfer of slapos instance params
parent
d48f8bb7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
erp5/tests/testERP5TestNode.py
erp5/tests/testERP5TestNode.py
+8
-8
erp5/util/testnode/NodeTestSuite.py
erp5/util/testnode/NodeTestSuite.py
+1
-0
No files found.
erp5/tests/testERP5TestNode.py
View file @
c53d70d4
...
@@ -579,7 +579,7 @@ develop = false
...
@@ -579,7 +579,7 @@ develop = false
def
patch_getSlaposHateoasUrl
(
self
,
*
args
,
**
kw
):
def
patch_getSlaposHateoasUrl
(
self
,
*
args
,
**
kw
):
return
"http://Foo"
return
"http://Foo"
def
patch_generateConfiguration
(
self
,
*
args
,
**
kw
):
def
patch_generateConfiguration
(
self
,
*
args
,
**
kw
):
return
json
.
dumps
({
"configuration_list"
:
[],
"involved_nodes_computer_guid"
\
return
json
.
dumps
({
"configuration_list"
:
[
{}
],
"involved_nodes_computer_guid"
\
:
[],
"error_message"
:
"No error."
,
"launcher_nodes_computer_guid"
:
[],
\
:
[],
"error_message"
:
"No error."
,
"launcher_nodes_computer_guid"
:
[],
\
"launchable"
:
False
,
"randomized_path"
:
"azertyuiop"
})
"launchable"
:
False
,
"randomized_path"
:
"azertyuiop"
})
def
patch_isMasterTestnode
(
self
,
*
args
,
**
kw
):
def
patch_isMasterTestnode
(
self
,
*
args
,
**
kw
):
...
@@ -654,7 +654,6 @@ develop = false
...
@@ -654,7 +654,6 @@ develop = false
original_getSlaposAccountCertificate
=
TaskDistributor
.
getSlaposAccountCertificate
original_getSlaposAccountCertificate
=
TaskDistributor
.
getSlaposAccountCertificate
original_getSlaposUrl
=
TaskDistributor
.
getSlaposUrl
original_getSlaposUrl
=
TaskDistributor
.
getSlaposUrl
original_getSlaposHateoasUrl
=
TaskDistributor
.
getSlaposHateoasUrl
original_getSlaposHateoasUrl
=
TaskDistributor
.
getSlaposHateoasUrl
original_generateConfiguration
=
TaskDistributor
.
generateConfiguration
original_isMasterTestnode
=
TaskDistributor
.
isMasterTestnode
original_isMasterTestnode
=
TaskDistributor
.
isMasterTestnode
original_updateInstanceXML
=
RunnerClass
.
_updateInstanceXML
original_updateInstanceXML
=
RunnerClass
.
_updateInstanceXML
original_isHostingSubscriptionReady
=
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
original_isHostingSubscriptionReady
=
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
...
@@ -664,12 +663,13 @@ develop = false
...
@@ -664,12 +663,13 @@ develop = false
TaskDistributor
.
getSlaposAccountCertificate
=
patch_getSlaposAccountCertificate
TaskDistributor
.
getSlaposAccountCertificate
=
patch_getSlaposAccountCertificate
TaskDistributor
.
getSlaposUrl
=
patch_getSlaposUrl
TaskDistributor
.
getSlaposUrl
=
patch_getSlaposUrl
TaskDistributor
.
getSlaposHateoasUrl
=
patch_getSlaposHateoasUrl
TaskDistributor
.
getSlaposHateoasUrl
=
patch_getSlaposHateoasUrl
TaskDistributor
.
generateConfiguration
=
patch_generateConfiguration
TaskDistributor
.
isMasterTestnode
=
patch_isMasterTestnode
TaskDistributor
.
isMasterTestnode
=
patch_isMasterTestnode
RunnerClass
.
_updateInstanceXML
=
doNothing
RunnerClass
.
_updateInstanceXML
=
doNothing
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
patch_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
patch_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
patch_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
patch_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
__init__
=
doNothing
SlapOSMasterCommunicator
.
__init__
=
doNothing
original_generateConfiguration
=
TaskDistributor
.
generateConfiguration
TaskDistributor
.
generateConfiguration
=
patch_generateConfiguration
original_startTestSuite
=
TaskDistributor
.
startTestSuite
original_startTestSuite
=
TaskDistributor
.
startTestSuite
original_subscribeNode
=
TaskDistributor
.
subscribeNode
original_subscribeNode
=
TaskDistributor
.
subscribeNode
original_getTestType
=
TaskDistributor
.
getTestType
original_getTestType
=
TaskDistributor
.
getTestType
...
@@ -697,12 +697,12 @@ develop = false
...
@@ -697,12 +697,12 @@ develop = false
TaskDistributor
.
getSlaposAccountCertificate
=
original_getSlaposAccountCertificate
TaskDistributor
.
getSlaposAccountCertificate
=
original_getSlaposAccountCertificate
TaskDistributor
.
getSlaposUrl
=
original_getSlaposUrl
TaskDistributor
.
getSlaposUrl
=
original_getSlaposUrl
TaskDistributor
.
getSlaposHateoasUrl
=
original_getSlaposHateoasUrl
TaskDistributor
.
getSlaposHateoasUrl
=
original_getSlaposHateoasUrl
TaskDistributor
.
generateConfiguration
=
original_generateConfiguration
TaskDistributor
.
isMasterTestnode
=
original_isMasterTestnode
TaskDistributor
.
isMasterTestnode
=
original_isMasterTestnode
RunnerClass
.
_updateInstanceXML
=
original_updateInstanceXML
RunnerClass
.
_updateInstanceXML
=
original_updateInstanceXML
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
original_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
original_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
original_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
original_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
__init__
=
original_SlapOSMasterCommunicator__init__
SlapOSMasterCommunicator
.
__init__
=
original_SlapOSMasterCommunicator__init__
TaskDistributor
.
generateConfiguration
=
original_generateConfiguration
TaskDistributor
.
startTestSuite
=
original_startTestSuite
TaskDistributor
.
startTestSuite
=
original_startTestSuite
TaskDistributionTool
.
createTestResult
=
original_createTestResult
TaskDistributionTool
.
createTestResult
=
original_createTestResult
TaskDistributionTool
.
subscribeNode
=
original_subscribeNode
TaskDistributionTool
.
subscribeNode
=
original_subscribeNode
...
@@ -763,7 +763,7 @@ develop = false
...
@@ -763,7 +763,7 @@ develop = false
def
patch_getSlaposHateoasUrl
(
self
,
*
args
,
**
kw
):
def
patch_getSlaposHateoasUrl
(
self
,
*
args
,
**
kw
):
return
"http://Foo"
return
"http://Foo"
def
patch_generateConfiguration
(
self
,
*
args
,
**
kw
):
def
patch_generateConfiguration
(
self
,
*
args
,
**
kw
):
return
json
.
dumps
({
"configuration_list"
:
[],
"involved_nodes_computer_guid"
\
return
json
.
dumps
({
"configuration_list"
:
[
{}
],
"involved_nodes_computer_guid"
\
:
[],
"error_message"
:
"No error."
,
"launcher_nodes_computer_guid"
:
[],
\
:
[],
"error_message"
:
"No error."
,
"launcher_nodes_computer_guid"
:
[],
\
"launchable"
:
False
,
"randomized_path"
:
"azertyuiop"
})
"launchable"
:
False
,
"randomized_path"
:
"azertyuiop"
})
def
patch_isMasterTestnode
(
self
,
*
args
,
**
kw
):
def
patch_isMasterTestnode
(
self
,
*
args
,
**
kw
):
...
@@ -824,7 +824,6 @@ develop = false
...
@@ -824,7 +824,6 @@ develop = false
original_getSlaposAccountCertificate
=
TaskDistributor
.
getSlaposAccountCertificate
original_getSlaposAccountCertificate
=
TaskDistributor
.
getSlaposAccountCertificate
original_getSlaposUrl
=
TaskDistributor
.
getSlaposUrl
original_getSlaposUrl
=
TaskDistributor
.
getSlaposUrl
original_getSlaposHateoasUrl
=
TaskDistributor
.
getSlaposHateoasUrl
original_getSlaposHateoasUrl
=
TaskDistributor
.
getSlaposHateoasUrl
original_generateConfiguration
=
TaskDistributor
.
generateConfiguration
original_isMasterTestnode
=
TaskDistributor
.
isMasterTestnode
original_isMasterTestnode
=
TaskDistributor
.
isMasterTestnode
original_supply
=
SlapOSControler
.
supply
original_supply
=
SlapOSControler
.
supply
original_request
=
SlapOSControler
.
request
original_request
=
SlapOSControler
.
request
...
@@ -836,7 +835,6 @@ develop = false
...
@@ -836,7 +835,6 @@ develop = false
TaskDistributor
.
getSlaposAccountCertificate
=
patch_getSlaposAccountCertificate
TaskDistributor
.
getSlaposAccountCertificate
=
patch_getSlaposAccountCertificate
TaskDistributor
.
getSlaposUrl
=
patch_getSlaposUrl
TaskDistributor
.
getSlaposUrl
=
patch_getSlaposUrl
TaskDistributor
.
getSlaposHateoasUrl
=
patch_getSlaposHateoasUrl
TaskDistributor
.
getSlaposHateoasUrl
=
patch_getSlaposHateoasUrl
TaskDistributor
.
generateConfiguration
=
patch_generateConfiguration
TaskDistributor
.
isMasterTestnode
=
patch_isMasterTestnode
TaskDistributor
.
isMasterTestnode
=
patch_isMasterTestnode
SlapOSControler
.
supply
=
doNothing
SlapOSControler
.
supply
=
doNothing
SlapOSControler
.
request
=
doNothing
SlapOSControler
.
request
=
doNothing
...
@@ -844,9 +842,11 @@ develop = false
...
@@ -844,9 +842,11 @@ develop = false
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
patch_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
patch_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
patch_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
patch_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
__init__
=
doNothing
SlapOSMasterCommunicator
.
__init__
=
doNothing
original_generateConfiguration
=
TaskDistributor
.
generateConfiguration
original_startTestSuite
=
TaskDistributor
.
startTestSuite
original_startTestSuite
=
TaskDistributor
.
startTestSuite
original_subscribeNode
=
TaskDistributor
.
subscribeNode
original_subscribeNode
=
TaskDistributor
.
subscribeNode
original_getTestType
=
TaskDistributor
.
getTestType
original_getTestType
=
TaskDistributor
.
getTestType
TaskDistributor
.
generateConfiguration
=
patch_generateConfiguration
TaskDistributor
.
startTestSuite
=
patch_startTestSuite
TaskDistributor
.
startTestSuite
=
patch_startTestSuite
TaskDistributor
.
subscribeNode
=
doNothing
TaskDistributor
.
subscribeNode
=
doNothing
TaskDistributor
.
getTestType
=
patch_getTestType
TaskDistributor
.
getTestType
=
patch_getTestType
...
@@ -875,7 +875,6 @@ develop = false
...
@@ -875,7 +875,6 @@ develop = false
TaskDistributor
.
getSlaposAccountCertificate
=
original_getSlaposAccountCertificate
TaskDistributor
.
getSlaposAccountCertificate
=
original_getSlaposAccountCertificate
TaskDistributor
.
getSlaposUrl
=
original_getSlaposUrl
TaskDistributor
.
getSlaposUrl
=
original_getSlaposUrl
TaskDistributor
.
getSlaposHateoasUrl
=
original_getSlaposHateoasUrl
TaskDistributor
.
getSlaposHateoasUrl
=
original_getSlaposHateoasUrl
TaskDistributor
.
generateConfiguration
=
original_generateConfiguration
TaskDistributor
.
isMasterTestnode
=
original_isMasterTestnode
TaskDistributor
.
isMasterTestnode
=
original_isMasterTestnode
SlapOSControler
.
supply
=
original_supply
SlapOSControler
.
supply
=
original_supply
SlapOSControler
.
request
=
original_request
SlapOSControler
.
request
=
original_request
...
@@ -883,6 +882,7 @@ develop = false
...
@@ -883,6 +882,7 @@ develop = false
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
original_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isHostingSubscriptionReady
=
original_isHostingSubscriptionReady
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
original_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
isRegisteredHostingSubscription
=
original_isRegisteredHostingSubscription
SlapOSMasterCommunicator
.
__init__
=
original_SlapOSMasterCommunicator__init__
SlapOSMasterCommunicator
.
__init__
=
original_SlapOSMasterCommunicator__init__
TaskDistributor
.
generateConfiguration
=
original_generateConfiguration
TaskDistributor
.
startTestSuite
=
original_startTestSuite
TaskDistributor
.
startTestSuite
=
original_startTestSuite
TaskDistributionTool
.
createTestResult
=
original_createTestResult
TaskDistributionTool
.
createTestResult
=
original_createTestResult
TaskDistributionTool
.
subscribeNode
=
original_subscribeNode
TaskDistributionTool
.
subscribeNode
=
original_subscribeNode
...
...
erp5/util/testnode/NodeTestSuite.py
View file @
c53d70d4
...
@@ -65,6 +65,7 @@ class NodeTestSuite(SlapOSInstance):
...
@@ -65,6 +65,7 @@ class NodeTestSuite(SlapOSInstance):
def
__init__
(
self
,
reference
):
def
__init__
(
self
,
reference
):
super
(
NodeTestSuite
,
self
).
__init__
()
super
(
NodeTestSuite
,
self
).
__init__
()
self
.
reference
=
reference
self
.
reference
=
reference
self
.
cluster_configuration
=
{}
def
edit
(
self
,
**
kw
):
def
edit
(
self
,
**
kw
):
super
(
NodeTestSuite
,
self
).
edit
(
**
kw
)
super
(
NodeTestSuite
,
self
).
edit
(
**
kw
)
...
...
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