Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Carlos Ramos Carreño
neoppod
Commits
70277a73
Commit
70277a73
authored
Mar 11, 2024
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simple: new --autostart option
parent
cad01d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
neo/tests/functional/__init__.py
neo/tests/functional/__init__.py
+5
-2
No files found.
neo/tests/functional/__init__.py
View file @
70277a73
...
@@ -328,7 +328,7 @@ class NEOCluster(object):
...
@@ -328,7 +328,7 @@ class NEOCluster(object):
cleanup_on_delete
=
False
,
temp_dir
=
None
,
clear_databases
=
True
,
cleanup_on_delete
=
False
,
temp_dir
=
None
,
clear_databases
=
True
,
adapter
=
os
.
getenv
(
'NEO_TESTS_ADAPTER'
),
adapter
=
os
.
getenv
(
'NEO_TESTS_ADAPTER'
),
address_type
=
ADDRESS_TYPE
,
bind_ip
=
None
,
logger
=
True
,
address_type
=
ADDRESS_TYPE
,
bind_ip
=
None
,
logger
=
True
,
importer
=
None
,
storage_kw
=
{}):
importer
=
None
,
storage_kw
=
{}
,
autostart
=
False
):
if
not
adapter
:
if
not
adapter
:
adapter
=
'MySQL'
adapter
=
'MySQL'
self
.
adapter
=
adapter
self
.
adapter
=
adapter
...
@@ -384,9 +384,12 @@ class NEOCluster(object):
...
@@ -384,9 +384,12 @@ class NEOCluster(object):
# create admin node
# create admin node
self
.
_newProcess
(
NodeTypes
.
ADMIN
,
logger
and
'admin'
,
admin_port
)
self
.
_newProcess
(
NodeTypes
.
ADMIN
,
logger
and
'admin'
,
admin_port
)
# create master nodes
# create master nodes
kw
=
dict
(
partitions
=
partitions
,
replicas
=
replicas
)
if
autostart
:
kw
[
'autostart'
]
=
len
(
db_list
)
for
i
,
port
in
enumerate
(
master_node_list
):
for
i
,
port
in
enumerate
(
master_node_list
):
self
.
_newProcess
(
NodeTypes
.
MASTER
,
logger
and
'master_%u'
%
i
,
self
.
_newProcess
(
NodeTypes
.
MASTER
,
logger
and
'master_%u'
%
i
,
port
,
partitions
=
partitions
,
replicas
=
replicas
)
port
,
**
kw
)
# create storage nodes
# create storage nodes
for
i
,
db
in
enumerate
(
db_list
):
for
i
,
db
in
enumerate
(
db_list
):
self
.
_newProcess
(
NodeTypes
.
STORAGE
,
logger
and
'storage_%u'
%
i
,
self
.
_newProcess
(
NodeTypes
.
STORAGE
,
logger
and
'storage_%u'
%
i
,
...
...
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