Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Ekaterina
slapos
Commits
b4c13939
Commit
b4c13939
authored
Aug 03, 2020
by
Ekaterina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
embulk test works
parent
41dc36d5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
25 deletions
+66
-25
software/erp5testnode/testsuite/embulkTest/data-in.wen
software/erp5testnode/testsuite/embulkTest/data-in.wen
+0
-0
software/erp5testnode/testsuite/embulkTest/data_out/data_out000.00.txt
...testnode/testsuite/embulkTest/data_out/data_out000.00.txt
+0
-1
software/erp5testnode/testsuite/embulkTest/data_out/data_out000.00.wen
...testnode/testsuite/embulkTest/data_out/data_out000.00.wen
+0
-1
software/erp5testnode/testsuite/embulkTest/test/test.py
software/erp5testnode/testsuite/embulkTest/test/test.py
+18
-23
software/erp5testnode/testsuite/embulkTest/test/test_manual.py
...are/erp5testnode/testsuite/embulkTest/test/test_manual.py
+48
-0
No files found.
software/erp5testnode/testsuite/embulkTest/data-in.wen
0 → 100644
View file @
b4c13939
File added
software/erp5testnode/testsuite/embulkTest/data_out/data_out000.00.txt
deleted
100644 → 0
View file @
41dc36d5
kldFTgABGGdXm5NOVU1QWQEAtgB7J2Rlc2NyJzogWygnZGF0ZScsICc8TThbbnNdJyksICgnc3RhcnRfZGF0ZScsICc8TThbbnNdJyksICgneCcsICc8ZjgnKSwgKCd5J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EJQBgtRFT7IRlA0iEzf3zZIkA=
software/erp5testnode/testsuite/embulkTest/data_out/data_out000.00.wen
deleted
100644 → 0
View file @
41dc36d5
kldFTgABGGdXm5NOVU1QWQEAtgB7J2Rlc2NyJzogWygnZGF0ZScsICc8TThbbnNdJyksICgnc3RhcnRfZGF0ZScsICc8TThbbnNdJyksICgneCcsICc8ZjgnKSwgKCd5JywgJzxmOCcpLCAoJ3onLCAnPGY4JyldLCAnZm9ydHJhbl9vcmRlcic6IEZhbHNlLCAnc2hhcGUnOiAoMTAwLCksIH0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCkAvH6DJqCUWQC8foMmoJRYYLURU+yEJwBgtRFT7IRnA0iEzf3zZIsCAcS6gyaglFkAvH6DJqCUWQ9RhmACgCMBD1GGYAKAYwDJfSXIAeCLAwLM9oMmoJRZALx+gyaglFm97f9wFHgjAb3t/3AUeGMCTnF9lhBYiwAD2TKDJqCUWQC8foMmoJRaaIp0gC5wHwJoinSALnBfA9Nl1WAi1IcBAOFygyaglFkAvH6DJqCUWxsm6ZBAaB8DGybpkEBoXwFQXjEuMUyHAgHproMmoJRZALx+gyaglFvFw2KgVmAbA8XDYqBWYFsC1VKI+EPIgwMC8eqDJqCUWQC8foMmoJRYdGPbsGhYGwB0Y9uwaFhbAFpK4MZSQIMAA/4mgyaglFkAvH6DJqCUWSL8TMSCUBcBIvxMxIJQVwHbPziQYLyDAQEGZoMmoJRZALx+gyaglFnRmMXUlEgXAdGYxdSUSFcCuGcovOJsfwICDqKDJqCUWQC8foMmoJRafDU+5KpAEwJ8NT7kqkBTAbpT2FUDYHsDAxbegyaglFkAvH6DJqCUWy7Rs/S8OBMDLtGz9Lw4UwDAPI/xHFR7AAAjHoMmoJRZALx+gyaglFvZbikE1jAPA9luKQTWME8DxiU/iT1IdwEBK1qDJqCUWQC8foMmoJRYiA6iFOgoDwCIDqIU6ChPAswR8yFePHMCAjOWgyaglFkAvH6DJqCUWTarFyT+IAsBNqsXJ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QGgdAxsm6ZBAaF0BUF4xLjFMhQEAH2KXJqCUWQC8foMmoJRacIp0gC5wHQJwinSALnBdA9dl1WAi1IUCASeelyaglFkAvH6DJqCUWcHt/3AUeCEBwe3/cBR4YQJScX2WEFiJAwIv2pcmoJRZALx+gyaglFkTUYZgAoAhARNRhmACgGEAzX0lyAHgiQADOBabJqCUWQC8foMmoJRYYLURU+yEJQBgtRFT7IRlA0iEzf3zZIkA=
software/erp5testnode/testsuite/embulkTest/test/test.py
View file @
b4c13939
import
os
import
subprocess
import
unittest
import
binascii
import
struct
import
logging
from
logging.handlers
import
RotatingFileHandler
class
TransferDataTest
(
unittest
.
TestCase
):
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
setUpModule
,
SlapOSInstanceTestCase
=
makeModuleSetUpAndTestCaseClass
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)))
class
TransferDataTest
(
SlapOSInstanceTestCase
):
def
create_embulk_config
(
self
,
config
,
data_in_path
,
data_out_path
):
config_string
=
"exec:
\
n
max_threads: 1
\
n
min_output_tasks: 1
\
n
"
+
\
"in:
\
n
type: filename
\
n
path_prefix: %s
\
n
parser:
\
n
type: none-bin
\
n
"
+
\
"out:
\
n
type: file
\
n
path_prefix: %s
\
n
file_ext: wen
\
n
formatter:
\
n
type: single_value"
config_string
=
config_string
%
(
data_in_path
,
data_out_path
)
f
=
open
(
config
,
'w'
)
print
>>
f
,
config_string
f
.
close
()
...
...
@@ -20,10 +28,10 @@ class TransferDataTest(unittest.TestCase):
config
=
pwd
[:
len
(
pwd
)
-
4
]
+
"templates/config.yml"
data_in_path
=
pwd
[:
len
(
pwd
)
-
4
]
+
"data_in/"
data_out_path
=
pwd
[:
len
(
pwd
)
-
4
]
+
"data_out/data_out"
self
.
create_embulk_config
(
config
,
data_in_path
,
data_out_path
)
subprocess
.
call
([
'/srv/slapgrid/slappart18/srv/runner/software/f5aec1c37c220000ab1c2ef799aac847/parts/java/bin/java'
,
'-jar'
,
'/srv/slapgrid/slappart18/srv/runner/software/f5aec1c37c220000ab1c2ef799aac847/parts/embulk/embulk.jar'
,
'run'
,
config
,
'-b'
,
'/srv/slapgrid/slappart18/srv/runner/software/f5aec1c37c220000ab1c2ef799aac847/parts/embulkPlugins/plugins'
])
subprocess
.
call
([
'{{ java_location }}/bin/java'
,
'-jar'
,
'{{ embulk_location }}/embulk.jar'
,
'run'
,
config
,
'-b'
,
'{{ embulkPlugins_location }}/plugins'
])
data_in_file
=
data_in_path
+
"data-in.wen"
data_in_file
=
open
(
data_in_file
,
'rb'
)
...
...
@@ -34,19 +42,6 @@ class TransferDataTest(unittest.TestCase):
data_out_file
=
open
(
data_out_file
,
'rb'
)
data_out
=
data_out_file
.
read
()
data_out_file
.
close
()
#MAGIC_HEADER = b'\x92WEN\x00\x01'
#crc = struct.pack('<I', binascii.crc32(data_in) & 0xffffffff)
#data_in = b''.join([MAGIC_HEADER, crc, data_in])
data_in
=
struct
.
unpack
(
'<I'
,
data_in
)
print
(
"DATA: "
,
data_in
)
self
.
assertEqual
(
data_in
,
data_out
)
if
__name__
==
"__main__"
:
suite
=
unittest
.
TestLoader
().
loadTestsFromTestCase
(
TransferDataTest
)
unittest
.
TextTestRunner
(
verbosity
=
3
).
run
(
suite
)
#t = TransferDataTest(
)
#t.test_transfer_data()
self
.
assertEqual
(
data_in
,
base64
.
b64decode
(
data_out
)
)
\ No newline at end of file
software/erp5testnode/testsuite/embulkTest/test/test_
test
.py
→
software/erp5testnode/testsuite/embulkTest/test/test_
manual
.py
View file @
b4c13939
import
os
import
subprocess
import
logging
from
logging.handlers
import
RotatingFileHandler
import
unittest
import
base64
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
setUpModule
,
SlapOSInstanceTestCase
=
makeModuleSetUpAndTestCaseClass
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)))
class
TransferDataTest
(
SlapOSInstanceTestCase
):
class
TransferDataTest
(
unittest
.
TestCase
):
def
create_embulk_config
(
self
,
config
,
data_in_path
,
data_out_path
):
config_string
=
f''' exec:
max_threads: 1
min_output_tasks: 1
in:
type: filename
path_prefix:
{}
parser:
type: none-bin
out:
type: file
path_prefix:
{}
file_ext: wen'''
.
format
(
data_in_path
,
data_out_path
)
config_string
=
"exec:
\
n
max_threads: 1
\
n
min_output_tasks: 1
\
n
"
+
\
"in:
\
n
type: filename
\
n
path_prefix: %s
\
n
parser:
\
n
type: none-bin
\
n
"
+
\
"out:
\
n
type: file
\
n
path_prefix: %s
\
n
file_ext: wen
\
n
formatter:
\
n
type: single_value"
config_string
=
config_string
%
(
data_in_path
,
data_out_path
)
f
=
open
(
config
,
'w'
)
print
>>
f
,
config_string
f
.
close
()
return
config
def
test_transfer_data
(
self
):
pwd
=
os
.
getcwd
()
config
=
pwd
[:
len
(
pwd
)
-
4
]
+
"templates/config.yml"
data_in_path
=
pwd
[:
len
(
pwd
)
-
4
]
+
"data_in/"
data_out_path
=
pwd
[:
len
(
pwd
)
-
4
]
+
"data_out/data_out"
config_path
=
self
.
create_embulk_config
(
config
,
data_in_path
,
data_out_path
)
subprocess
.
call
([
'{{ java_location }}/bin/java'
,
'-jar'
,
'{{ embulk_location }}/embulk.jar'
,
'run'
,
'config'
,
'-b'
,
'{{ embulkPlugins_location }}/plugins'
])
# data_in = "It works"
# data_in_file = data_in_path + "data-in.wen"
# data_in_file = open(data_in_file, 'wb')
# data_in_file.write(data_in)
# data_in_file.close()
self
.
create_embulk_config
(
config
,
data_in_path
,
data_out_path
)
subprocess
.
call
([
'/srv/slapgrid/slappart18/srv/runner/software/f5aec1c37c220000ab1c2ef799aac847/parts/java/bin/java'
,
'-jar'
,
'/srv/slapgrid/slappart18/srv/runner/software/f5aec1c37c220000ab1c2ef799aac847/parts/embulk/embulk.jar'
,
'run'
,
config
,
'-b'
,
'/srv/slapgrid/slappart18/srv/runner/software/f5aec1c37c220000ab1c2ef799aac847/parts/embulkPlugins/plugins'
])
data_in_file
=
data_in_path
+
"data-in.wen"
data_in_file
=
open
(
data_in_file
,
'rb'
)
data_in
=
data_in_file
.
read
()
data_in_file
.
close
()
data_out_file
=
data_out_path
+
".wen"
data_out_file
=
data_out_path
+
"
000.00
.wen"
data_out_file
=
open
(
data_out_file
,
'rb'
)
data_out
=
data_out_file
.
read
()
data_out_file
.
close
()
self
.
assertEqual
(
data_in
,
data_out
)
\ No newline at end of file
self
.
assertEqual
(
data_in
,
base64
.
b64decode
(
data_out
))
if
__name__
==
"__main__"
:
suite
=
unittest
.
TestLoader
().
loadTestsFromTestCase
(
TransferDataTest
)
unittest
.
TextTestRunner
(
verbosity
=
3
).
run
(
suite
)
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