Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
c89ed4a6
Commit
c89ed4a6
authored
Oct 18, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
902c76b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
+20
-3
neo/tests/functional/__init__.py
neo/tests/functional/__init__.py
+4
-1
t/N1.sh
t/N1.sh
+4
-0
t/N2.sh
t/N2.sh
+4
-0
t/NOTES
t/NOTES
+8
-2
No files found.
neo/tests/functional/__init__.py
View file @
c89ed4a6
...
@@ -274,7 +274,10 @@ class NEOCluster(object):
...
@@ -274,7 +274,10 @@ class NEOCluster(object):
self
.
process_dict
=
{}
self
.
process_dict
=
{}
self
.
temp_dir
=
temp_dir
self
.
temp_dir
=
temp_dir
self
.
port_allocator
=
PortAllocator
()
self
.
port_allocator
=
PortAllocator
()
admin_port
=
self
.
port_allocator
.
allocate
(
address_type
,
local_ip
)
try
:
admin_port
=
int
(
os
.
getenv
(
'NEO_ADMIN_PORT'
))
except
(
TypeError
,
ValueError
):
admin_port
=
self
.
port_allocator
.
allocate
(
address_type
,
local_ip
)
self
.
cluster_name
=
name
or
'neo_%s'
%
random
.
randint
(
0
,
100
)
self
.
cluster_name
=
name
or
'neo_%s'
%
random
.
randint
(
0
,
100
)
master_node_list
=
[
self
.
port_allocator
.
allocate
(
address_type
,
local_ip
)
master_node_list
=
[
self
.
port_allocator
.
allocate
(
address_type
,
local_ip
)
for
i
in
xrange
(
master_count
)]
for
i
in
xrange
(
master_count
)]
...
...
t/N1.sh
0 → 100755
View file @
c89ed4a6
#!/bin/sh -xe
NEO_ADMIN_PORT
=
5551
\
neosimple
--adapter
=
SQLite
--temp_dir
=
tmp/1
--logger
--name
neo1 s1
t/N2.sh
0 → 100755
View file @
c89ed4a6
#!/bin/sh -xe
NEO_ADMIN_PORT
=
5552
\
neosimple
--adapter
=
SQLite
--temp_dir
=
tmp/2
--logger
--name
neo2 s1
t/NOTES
View file @
c89ed4a6
...
@@ -5,6 +5,11 @@ Application (master)
...
@@ -5,6 +5,11 @@ Application (master)
.tm TransactionManager
.tm TransactionManager
.pt PartitionTable
.pt PartitionTable
.listening_conn ListeningConnection
.primary ?
.primary_master_node ?
.cluster_state
.backup_app BackupApplication
.backup_app BackupApplication
.admin_handler AdministrationHandler
.admin_handler AdministrationHandler
...
@@ -12,8 +17,6 @@ Application (master)
...
@@ -12,8 +17,6 @@ Application (master)
.client_service_handler ClientServiceHandler
.client_service_handler ClientServiceHandler
.storage_service_handler StorageServiceHandler
.storage_service_handler StorageServiceHandler
.listening_conn ListeningConnection
Handlers
Handlers
--------
--------
...
@@ -73,6 +76,9 @@ EventHandler
...
@@ -73,6 +76,9 @@ EventHandler
-> getattr(self, pkt.handler_method_name) (conn, *pkt.decode(), **kw)
-> getattr(self, pkt.handler_method_name) (conn, *pkt.decode(), **kw)
IdentificationHandler < MasterHandler
Connections
Connections
-----------
-----------
...
...
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