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
41dc36d5
Commit
41dc36d5
authored
Jul 31, 2020
by
Ekaterina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: embulk test
parent
ec8dd58e
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
610 additions
and
0 deletions
+610
-0
software/erp5testnode/testsuite/embulkTest/data_in/data-in.wen
...are/erp5testnode/testsuite/embulkTest/data_in/data-in.wen
+0
-0
software/erp5testnode/testsuite/embulkTest/data_out/data_out000.00.txt
...testnode/testsuite/embulkTest/data_out/data_out000.00.txt
+1
-0
software/erp5testnode/testsuite/embulkTest/data_out/data_out000.00.wen
...testnode/testsuite/embulkTest/data_out/data_out000.00.wen
+1
-0
software/erp5testnode/testsuite/embulkTest/instance.cfg.in
software/erp5testnode/testsuite/embulkTest/instance.cfg.in
+70
-0
software/erp5testnode/testsuite/embulkTest/software.cfg
software/erp5testnode/testsuite/embulkTest/software.cfg
+69
-0
software/erp5testnode/testsuite/embulkTest/templates/config.yml
...re/erp5testnode/testsuite/embulkTest/templates/config.yml
+14
-0
software/erp5testnode/testsuite/embulkTest/templates/config_old.yml
...rp5testnode/testsuite/embulkTest/templates/config_old.yml
+12
-0
software/erp5testnode/testsuite/embulkTest/test/README.md
software/erp5testnode/testsuite/embulkTest/test/README.md
+1
-0
software/erp5testnode/testsuite/embulkTest/test/setup.py
software/erp5testnode/testsuite/embulkTest/test/setup.py
+52
-0
software/erp5testnode/testsuite/embulkTest/test/test.py
software/erp5testnode/testsuite/embulkTest/test/test.py
+52
-0
software/erp5testnode/testsuite/embulkTest/test/test_OLD.py
software/erp5testnode/testsuite/embulkTest/test/test_OLD.py
+193
-0
software/erp5testnode/testsuite/embulkTest/test/test_test.py
software/erp5testnode/testsuite/embulkTest/test/test_test.py
+57
-0
software/erp5testnode/testsuite/embulkTest/webserver/server/setup.py
...p5testnode/testsuite/embulkTest/webserver/server/setup.py
+6
-0
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/PKG-INFO
...e/embulkTest/webserver/server/webserver.egg-info/PKG-INFO
+10
-0
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/SOURCES.txt
...mbulkTest/webserver/server/webserver.egg-info/SOURCES.txt
+6
-0
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/dependency_links.txt
.../webserver/server/webserver.egg-info/dependency_links.txt
+1
-0
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/entry_points.txt
...Test/webserver/server/webserver.egg-info/entry_points.txt
+3
-0
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/top_level.txt
...ulkTest/webserver/server/webserver.egg-info/top_level.txt
+1
-0
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.py
...stnode/testsuite/embulkTest/webserver/server/webserver.py
+61
-0
No files found.
software/erp5testnode/testsuite/embulkTest/data_in/data-in.wen
0 → 100644
View file @
41dc36d5
File added
software/erp5testnode/testsuite/embulkTest/data_out/data_out000.00.txt
0 → 100644
View file @
41dc36d5
kldFTgABGGdXm5NOVU1QWQEAtgB7J2Rlc2NyJzogWygnZGF0ZScsICc8TThbbnNdJyksICgnc3RhcnRfZGF0ZScsICc8TThbbnNdJyksICgneCcsICc8ZjgnKSwgKCd5JywgJzxmOCcpLCAoJ3onLCAnPGY4JyldLCAnZm9ydHJhbl9vcmRlcic6IEZh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SALnBdA9dl1WAi1IUCASeelyaglFkAvH6DJqCUWcHt/3AUeCEBwe3/cBR4YQJScX2WEFiJAwIv2pcmoJRZALx+gyaglFkTUYZgAoAhARNRhmACgGEAzX0lyAHgiQADOBabJqCUWQC8foMmoJRYYLURU+yEJQBgtRFT7IRlA0iEzf3zZIkA=
software/erp5testnode/testsuite/embulkTest/instance.cfg.in
0 → 100644
View file @
41dc36d5
[buildout]
parts =
embulk-service
embulk-config
webserver-server
publish-connection-parameter
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
[directory]
recipe = slapos.cookbook:mkdirectory
etc = ${buildout:directory}/etc
bin = ${buildout:directory}/bin
var = ${buildout:directory}/var
log = ${:var}/log
scripts = ${:etc}/run
services = ${:etc}/service
promise = ${:etc}/promise/
home = ${:etc}/home
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration.serialised
computer = ${slap_connection:computer_id}
partition = ${slap_connection:partition_id}
url = ${slap_connection:server_url}
key = ${slap_connection:key_file}
cert = ${slap_connection:cert_file}
configuration.name = Katya
[embulk-service]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:services}/embulk-service
command-line = {{ java_location }}/bin/java -jar {{ embulk_location }}/embulk.jar
run ${embulk-config:rendered} -b {{ embulkPlugins_location }}/plugins
[embulk-config]
recipe = slapos.recipe.template:jinja2
context =
key slapparameter_dict instance-parameter:configuration
template = inline:{% raw -%}
{{ slapparameter_dict['conf_text'] }}
{%- endraw %}
rendered = ${directory:etc}/config.yml
mode = 0644
[webserver]
port = 7777
ipv6 = ${instance-parameter:ipv6-random}
url = http://[${:ipv6}]:${:port}
logfile = ${directory:log}/webserver-server.log
recipe = slapos.cookbook:wrapper
command-line =
{{ buildout['bin-directory'] }}/webserver-server --logfile ${:logfile}
--bind_ip ${:ipv6} --bind_port ${:port} --name ${instance-parameter:configuration.name}
wrapper-path = ${directory:services}/webserver-server
[webserver-server]
<= webserver
[webserver-server-promise]
<= webserver-promise
port = 7777
[publish-connection-parameter]
recipe = slapos.cookbook:publish
name = Hello ${instance-parameter:configuration.name}!
url = ${webserver-server:url}
software/erp5testnode/testsuite/embulkTest/software.cfg
0 → 100644
View file @
41dc36d5
[buildout]
extends =
../../../../stack/slapos.cfg
../../../../component/java/buildout.cfg
../../../../component/embulk/buildout.cfg
parts =
slapos-cookbook
instance-profile
java
embulk
embulkPlugins
webserver-server
[jinja-template]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}
mode = 0644
[instance-profile]
recipe = slapos.recipe.template:jinja2
md5sum = 8f4c0ecd7b59b850f998c925f6ca6aff
template = ${:_profile_base_location_}/instance.cfg.in
rendered = ${buildout:directory}/instance.cfg
mode = 0644
extensions = jinja2.ext.do
context =
section buildout buildout
key embulk_location embulk:location
key java_location java:location
key embulkPlugins_location embulkPlugins:location
[java]
<= java-re-8
[embulkPlugins]
recipe = slapos.recipe.build
install =
import os
bin_dir = os.path.join(location, 'bin')
os.makedirs(bin_dir)
os.chdir("parts/embulkPlugins")
call(["${java:location}/bin/java", "-jar", "${embulk:location}/embulk.jar",
"mkbundle", "plugins"])
os.chdir("plugins")
f = open('Gemfile', 'w')
f.write("source 'https://rubygems.org/'\n")
f.write("gem 'embulk'\n")
f.write("gem 'embulk-input-filename'\n")
f.write("gem 'embulk-output-wendelin'\n")
f.write("gem 'embulk-parser-none-bin'\n")
f.write("gem 'embulk-formatter-single_value'\n")
f.close()
call(["${java:location}/bin/java", "-jar", "${embulk:location}/embulk.jar", "bundle"])
[webserver-egg]
recipe = zc.recipe.egg:develop
egg = webserver
setup = ${:_profile_base_location_}/webserver/server/
[webserver-server]
recipe = zc.recipe.egg:scripts
eggs = ${webserver-egg:egg}
scripts = webserver=webserver-server
[versions]
slapos.recipe.template = 4.4
rubygemsrecipe = 0.2.2
java = 8
software/erp5testnode/testsuite/embulkTest/templates/config.yml
0 → 100644
View file @
41dc36d5
exec
:
max_threads
:
1
min_output_tasks
:
1
in
:
type
:
filename
path_prefix
:
/srv/slapgrid/slappart18/srv/runner/project/myslapos/slapos/software/erp5testnode/testsuite/embulkTest/data_in/
parser
:
type
:
none-bin
out
:
type
:
file
path_prefix
:
/srv/slapgrid/slappart18/srv/runner/project/myslapos/slapos/software/erp5testnode/testsuite/embulkTest/data_out/data_out
file_ext
:
wen
formatter
:
type
:
single_value
software/erp5testnode/testsuite/embulkTest/templates/config_old.yml
0 → 100644
View file @
41dc36d5
exec
:
max_threads
:
1
min_output_tasks
:
1
in
:
type
:
filename
path_prefix
:
/srv/slapgrid/slappart97/srv/runner/project/woelfel-web-monitoring/dpu/beckhoff-lhm/manual_test/embulk-only/files/event_data/Project-Katya-Reference-2/
parser
:
type
:
none-bin
out
:
type
:
file
path_prefix
:
/path/to/output/data
file_ext
:
wen
\ No newline at end of file
software/erp5testnode/testsuite/embulkTest/test/README.md
0 → 100644
View file @
41dc36d5
Tests for Embulk software release
software/erp5testnode/testsuite/embulkTest/test/setup.py
0 → 100644
View file @
41dc36d5
##############################################################################
#
# Copyright (c) 2019 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from
setuptools
import
setup
,
find_packages
version
=
'0.0.1.dev0'
name
=
'slapos.test.embulk'
with
open
(
"README.md"
)
as
f
:
long_description
=
f
.
read
()
setup
(
name
=
name
,
version
=
version
,
description
=
"Test for SlapOS' embulk"
,
long_description
=
long_description
,
long_description_content_type
=
'text/markdown'
,
maintainer
=
"Nexedi"
,
maintainer_email
=
"info@nexedi.com"
,
url
=
"https://lab.nexedi.com/nexedi/slapos"
,
packages
=
find_packages
(),
install_requires
=
[
'slapos.core'
,
'slapos.libnetworkcache'
,
'erp5.util'
,
'requests'
,
],
zip_safe
=
True
,
test_suite
=
'test'
,
)
software/erp5testnode/testsuite/embulkTest/test/test.py
0 → 100644
View file @
41dc36d5
import
os
import
subprocess
import
unittest
import
binascii
import
struct
class
TransferDataTest
(
unittest
.
TestCase
):
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
()
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"
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
+
"000.00.wen"
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()
software/erp5testnode/testsuite/embulkTest/test/test_OLD.py
0 → 100644
View file @
41dc36d5
##############################################################################
#
# Copyright (c) 2019 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import
unittest
import
requests
from
StringIO
import
StringIO
import
SimpleHTTPServer
import
SocketServer
from
BaseHTTPServer
import
BaseHTTPRequestHandler
,
HTTPServer
import
os
import
time
import
utils
import
multiprocessing
test_msg
=
"dummyInputSimpleIngest"
#url = "http://$${caddy-configuration:local_ip}:8443"
url
=
"http://10.0.46.242:8443"
posted_data
=
None
all_data
=
[]
request_tag
=
""
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
setUpModule
,
SlapOSInstanceTestCase
=
makeModuleSetUpAndTestCaseClass
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)))
###################################################
class
TestServerHandler
(
BaseHTTPRequestHandler
):
def
_set_headers
(
self
):
self
.
send_response
(
200
)
self
.
send_header
(
'Content-type'
,
'text/html'
)
self
.
end_headers
()
def
do_GET
(
self
):
self
.
_set_headers
()
self
.
wfile
.
write
(
"<html><body><h1>hi!</h1></body></html>"
)
def
do_HEAD
(
self
):
self
.
_set_headers
()
def
do_POST
(
self
):
content_length
=
int
(
self
.
headers
[
'Content-Length'
])
# <--- Gets the size of data
post_data
=
self
.
rfile
.
read
(
content_length
)
# <--- Gets the data itself
self
.
_set_headers
()
self
.
wfile
.
write
(
post_data
)
global
posted_data
posted_data
=
post_data
print
(
"post data from do_POST"
)
print
(
posted_data
)
global
all_data
all_data
.
append
(
post_data
.
split
(
" "
)[
1
])
global
request_tag
request_tag
=
find_tag
(
self
.
requestline
,
"="
,
" "
)
class
TestIngestion
(
FluentdPluginTestCase
):
@
classmethod
def
startServer
(
cls
):
port
=
9443
server_address
=
(
'0.0.0.0'
,
port
)
server
=
HTTPServer
(
server_address
,
TestServerHandler
)
cls
.
server_process
=
multiprocessing
.
Process
(
target
=
server
.
serve_forever
)
cls
.
server_process
.
start
()
print
(
"Server started..."
)
print
(
"local ipv4 = "
)
print
(
os
.
environ
.
get
(
'LOCAL_IPV4'
))
@
classmethod
def
stopServer
(
cls
):
cls
.
server_process
.
terminate
()
def
setUp
(
self
):
self
.
startServer
()
# port=9443
# server_address = ('$${slap-network-information:local-ipv4}', port)
# httpd = HTTPServer(server_address, TestServerHandler)
# thread = threading.Thread(target=httpd.serve_forever)
# thread.start()
# print 'Starting http...'
# time.sleep(15)
print
(
"for fake commit"
)
def
tearDown
(
self
):
self
.
stopServer
()
time
.
sleep
(
10
)
# httpd.shutdown()
# print("all posted data : ")
# print(all_data)
def
test_1_get
(
self
):
print
(
"############## TEST 1 ##############"
)
resp
=
requests
.
get
(
url
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
print
(
resp
.
status_code
)
def
test_2_ingest
(
self
):
print
(
"############## TEST 2 ##############"
)
start_fluentd_cat
(
test_msg
,
"tag_test_2"
)
time
.
sleep
(
10
)
print
(
"posted data from test 2"
)
print
(
posted_data
)
if
posted_data
:
self
.
assertEqual
(
test_msg
,
posted_data
.
split
(
" "
)[
1
])
else
:
self
.
assertEqual
(
test_msg
,
posted_data
)
time
.
sleep
(
10
)
self
.
assertEqual
(
test_msg
,
posted_data
.
split
(
" "
)[
1
])
def
start_fluentd_cat
(
test_msg
,
tag
):
os
.
environ
[
"GEM_PATH"
]
=
"$${fluentd-service:path}/lib/ruby/gems/1.8/"
fluentd_cat_exec_comand
=
'$${fluentd-service:path}/bin/fluent-cat --none '
+
tag
os
.
system
(
"echo + "
+
test_msg
+
" | "
+
fluentd_cat_exec_comand
)
def
find_tag
(
s
,
start
,
end
):
return
(
s
.
split
(
start
))[
1
].
split
(
end
)[
0
]
'''
def main():
port=9443
server_address = ('$${slap-network-information:local-ipv4}', port)
httpd = HTTPServer(server_address, TestServerHandler)
thread = threading.Thread(target=httpd.serve_forever)
thread.start()
print 'Starting http...'
time.sleep(15)
stream = StringIO()
runner = unittest.TextTestRunner(verbosity=2, stream=stream)
result = runner.run(unittest.makeSuite(TestPost))
print 'Tests run ', result.testsRun
print 'Errors ', result.errors
print "Failures ", result.failures
stream.seek(0)
print 'Test output
\
n
', stream.read()
time.sleep(30)
httpd.shutdown()
print(posted_data)
print("all posted data : ")
print(all_data)
return result.testsRun, result.errors, result.failures, stream.getvalue()
if __name__ == "__main__":
main()
'''
software/erp5testnode/testsuite/embulkTest/test/test_test.py
0 → 100644
View file @
41dc36d5
import
os
import
subprocess
import
logging
from
logging.handlers
import
RotatingFileHandler
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
=
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
)
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_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
=
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
software/erp5testnode/testsuite/embulkTest/webserver/server/setup.py
0 → 100644
View file @
41dc36d5
from
setuptools
import
setup
setup
(
name
=
'webserver'
,
entry_points
=
{
'console_scripts'
:
[
'webserver = webserver:main'
]
},
)
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/PKG-INFO
0 → 100644
View file @
41dc36d5
Metadata-Version: 1.0
Name: webserver
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/SOURCES.txt
0 → 100644
View file @
41dc36d5
setup.py
webserver.egg-info/PKG-INFO
webserver.egg-info/SOURCES.txt
webserver.egg-info/dependency_links.txt
webserver.egg-info/entry_points.txt
webserver.egg-info/top_level.txt
\ No newline at end of file
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/dependency_links.txt
0 → 100644
View file @
41dc36d5
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/entry_points.txt
0 → 100644
View file @
41dc36d5
[console_scripts]
webserver = webserver:main
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.egg-info/top_level.txt
0 → 100644
View file @
41dc36d5
software/erp5testnode/testsuite/embulkTest/webserver/server/webserver.py
0 → 100644
View file @
41dc36d5
#!/usr/bin/env python
from
__future__
import
print_function
import
sys
PY3
=
sys
.
version_info
.
major
>=
3
import
time
import
argparse
if
PY3
:
from
http.server
import
BaseHTTPRequestHandler
,
HTTPServer
else
:
from
BaseHTTPServer
import
BaseHTTPRequestHandler
,
HTTPServer
from
socket
import
AF_INET6
class
WebHello
(
BaseHTTPRequestHandler
):
def
do_GET
(
self
):
self
.
send_response
(
200
)
# ok
self
.
send_header
(
"Content-type"
,
"text/plain"
)
self
.
end_headers
()
msg
=
"My first HELLLOOO %s at `%s` ; %s (python %s)"
%
(
' '
.
join
(
self
.
server
.
webhello_argv
)
or
'world'
,
self
.
path
,
time
.
asctime
(),
sys
.
version
.
replace
(
'
\
n
'
,
' '
))
if
PY3
:
msg
=
msg
.
encode
()
self
.
wfile
.
write
(
msg
)
class
HTTPServerV6
(
HTTPServer
):
address_family
=
AF_INET6
def
main
():
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'--logfile'
,
dest
=
'logfile'
)
parser
.
add_argument
(
'--bind_ip'
,
help
=
'bind_ip'
,
required
=
True
)
parser
.
add_argument
(
'--bind_port'
,
help
=
'port'
,
type
=
int
,
required
=
True
)
parser
.
add_argument
(
'--name'
,
help
=
'name'
,
required
=
True
)
args
=
parser
.
parse_args
()
bind_ip
=
args
.
bind_ip
bind_port
=
args
.
bind_port
name
=
args
.
name
# HTTPServer logs to sys.stderr - override it if we have --logfile
if
args
.
logfile
:
f
=
open
(
args
.
logfile
,
'a'
,
buffering
=
1
)
sys
.
stderr
=
f
print
(
'* %s helloweb.py starting at %s'
%
(
time
.
asctime
(),
(
bind_ip
,
bind_port
)),
file
=
sys
.
stderr
)
# TODO autodetect ipv6/ipv4
httpd
=
HTTPServerV6
(
(
bind_ip
,
bind_port
),
WebHello
)
httpd
.
webhello_argv
=
name
httpd
.
serve_forever
()
if
__name__
==
'__main__'
:
main
()
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