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
Léo-Paul Géneau
slapos
Commits
64096110
Commit
64096110
authored
Sep 03, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy-frontend/test: use curl from $PATH
parent
e42eb816
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
software/caddy-frontend/test/test.py
software/caddy-frontend/test/test.py
+2
-2
software/erp5testnode/testsuite/caddy-frontend/buildout.hash.cfg
...e/erp5testnode/testsuite/caddy-frontend/buildout.hash.cfg
+1
-1
software/erp5testnode/testsuite/caddy-frontend/instance.cfg
software/erp5testnode/testsuite/caddy-frontend/instance.cfg
+1
-2
No files found.
software/caddy-frontend/test/test.py
View file @
64096110
...
...
@@ -190,10 +190,10 @@ def der2pem(der):
return certificate
def isHTTP2(domain, ip):
curl_command = '
%
(
curl
)
s
--
http2
-
v
-
k
-
H
"Host: %(domain)s"
'
\
curl_command = '
curl
--
http2
-
v
-
k
-
H
"Host: %(domain)s"
'
\
'
https
:
//%
(
domain
)
s
:
%
(
https_port
)
s
/
'
\
'
--
resolve
%
(
domain
)
s
:
%
(
https_port
)
s
:
%
(
ip
)
s
' % dict(
ip=ip, domain=domain,
curl=os.environ['
CURL
'],
https_port=HTTPS_PORT)
ip=ip, domain=domain, https_port=HTTPS_PORT)
prc = subprocess.Popen(
curl_command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
...
...
software/erp5testnode/testsuite/caddy-frontend/buildout.hash.cfg
View file @
64096110
...
...
@@ -15,4 +15,4 @@
[template]
filename = instance.cfg
md5sum =
2eba374ea5b7ec6c95a1f79066cfb46b
md5sum =
a345d46655c3e841c2ecf4e3a0446c8f
software/erp5testnode/testsuite/caddy-frontend/instance.cfg
View file @
64096110
...
...
@@ -36,10 +36,9 @@ command-line =
--source_code_path_list=$${slapos:location}/software/caddy-frontend/test
# XXX slapos.cookbook:wrapper does not allow extending env, so we add some default $PATH entries ( not sure they are needed )
# PATH=${buildout:bin-directory}:/usr/bin/:/bin/
environment =
PATH=${curl:location}/bin/:${openssl:location}/bin/:/usr/bin/:/bin
LOCAL_IPV4=$${slap-configuration:ipv4-random}
GLOBAL_IPV6=$${slap-configuration:ipv6-random}
CURL=${curl:location}/bin/curl
SLAPOS_TEST_WORKING_DIR=$${create-directory:working-dir}
TEST_SR=${template:test_software_release}
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