From fd355ccea0227f32f49733a856103d02226be57a Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Tue, 18 Oct 2016 15:10:02 +0200 Subject: Remove unused code from test Makefile. Fix parsing bug in compileconfig. --- test/Makefile | 29 ----------------------------- tools/compileconfig.py | 2 +- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/test/Makefile b/test/Makefile index 607989d..bd58cfe 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,3 @@ --include test.mk - PREFIX=.. INSTDIR=$(PREFIX)/catlfish @@ -13,7 +11,6 @@ tests-wait: sleep 5 tests-makemk: - $(PREFIX)/tools/compileconfig.py --config=$(PREFIX)/test/catlfish-test.cfg --testmakefile=$(PREFIX)/test/test.mk --machines 1 $(PREFIX)/tools/compileconfig.py --config=$(PREFIX)/test/catlfish-test.cfg --testshellvars=$(PREFIX)/test/test.shvars --machines 1 tests: @@ -21,29 +18,3 @@ tests: rm -r $(INSTDIR)/tests || true mkdir $(INSTDIR)/tests (cd $(INSTDIR)/tests && ../../test/scripts/light-system-test.sh) - -tests-createca: - mkdir $(INSTDIR)/tests/httpsca - ( cd $(INSTDIR)/tests/httpsca ; \ - mkdir -p demoCA/newcerts ; \ - touch demoCA/index.txt ; \ - echo 00 > demoCA/serial ; \ - echo '[ req ]' > caconfig.txt ; \ - echo 'distinguished_name = req_distinguished_name' >> caconfig.txt ; \ - echo 'x509_extensions = v3_ca' >> caconfig.txt ; \ - echo 'string_mask = utf8only' >> caconfig.txt ; \ - echo '[ req_distinguished_name ]' >> caconfig.txt ; \ - echo '[ v3_ca ]' >> caconfig.txt ; \ - echo 'basicConstraints=CA:true' >> caconfig.txt ; \ - openssl req -newkey rsa:2048 -keyout key.pem -out req.csr -nodes -subj '/countryName=SE/stateOrProvinceName=Stockholm/organizationName=Test/commonName=ca/O=ca' -config caconfig.txt ; \ - openssl ca -in req.csr -selfsign -keyfile key.pem -out demoCA/cacert.pem -batch \ - ) - -tests-createcert: - mkdir $(INSTDIR)/tests/httpscert - openssl req -new -newkey rsa:2048 -keyout $(INSTDIR)/tests/httpscert/httpskey-1.pem -out $(INSTDIR)/tests/httpsca/httpscert-1.csr -nodes -subj '/countryName=SE/stateOrProvinceName=Stockholm/organizationName=Test/CN=localhost' - ( cd $(INSTDIR)/tests/httpsca ; \ - openssl ca -in httpscert-1.csr -keyfile key.pem -out httpscert-1.pem -batch \ - ) - cp $(INSTDIR)/tests/httpsca/httpscert-1.pem $(INSTDIR)/tests/httpscert/ - diff --git a/tools/compileconfig.py b/tools/compileconfig.py index cee9873..7ba2fac 100755 --- a/tools/compileconfig.py +++ b/tools/compileconfig.py @@ -101,7 +101,7 @@ def gen_http_servers(nodetype, nodeconfig, bind_addresses, bind_publicaddress, b if bind_publicaddress: (publichost, publicport) = parse_address(bind_publicaddress) else: - (_, publicport) = parse_address(nodeconfig["publicaddress"]) + (_, publicport) = parse_address(nodeconfig["frontendnodes"]["publicaddress"]) publichost = "0.0.0.0" if bind_publichttpaddress: -- cgit v1.1