This job view page is being replaced by Spyglass soon. Check out the new job view.
PRaledbf: Add support for multiple alias and remove duplication of SSL certific…
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2019-08-20 20:00
Elapsed3.00s
Revision0de8eb3067d7842d72c83139fd9c8d782d1ed4c7
Refs 4472

No Test Failures!


Error lines from build-log.txt

+++++++++++++++++++++++++++++++++---------+++++++++++----+++++++++++++++++++++++++++++
73 successes / 13 failures / 0 errors / 0 pending : 0.134119 seconds

Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 57
Certificate call sets certificate and key when hostname is found in dictionary
./rootfs/etc/nginx/lua/test/certificate_test.lua:21: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:21: in function 'assert_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:67: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:57>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 70
Certificate call sets certificate and key for wildcard cert
./rootfs/etc/nginx/lua/test/certificate_test.lua:21: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:21: in function 'assert_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:74: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:70>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 77
Certificate call sets certificate and key for domain with trailing dot
./rootfs/etc/nginx/lua/test/certificate_test.lua:21: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:21: in function 'assert_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:81: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:77>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 84
Certificate call fallbacks to default certificate and key for domain with many trailing dots
./rootfs/etc/nginx/lua/test/certificate_test.lua:21: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:21: in function 'assert_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:88: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:84>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 91
Certificate call sets certificate and key for nested wildcard cert
./rootfs/etc/nginx/lua/test/certificate_test.lua:21: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:21: in function 'assert_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:95: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:91>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 98
Certificate call logs error message when certificate in dictionary is invalid
./rootfs/etc/nginx/lua/test/certificate_test.lua:31: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:31: in function 'refute_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:103: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:98>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 107
Certificate call uses default certificate when there's none found for given hostname
./rootfs/etc/nginx/lua/test/certificate_test.lua:21: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:21: in function 'assert_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:108: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:107>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 111
Certificate call uses default certificate when hostname can not be obtained
./rootfs/etc/nginx/lua/test/certificate_test.lua:21: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:21: in function 'assert_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:114: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:111>


Failure -> ./rootfs/etc/nginx/lua/test/certificate_test.lua @ 118
Certificate call fails when hostname does not have certificate and default cert is invalid
./rootfs/etc/nginx/lua/test/certificate_test.lua:31: Expected no error, but caught:
(string) 'attempt to index upvalue 'certificate_servers' (a nil value)'

stack traceback:
	./rootfs/etc/nginx/lua/test/certificate_test.lua:31: in function 'refute_certificate_is_set'
	./rootfs/etc/nginx/lua/test/certificate_test.lua:123: in function <./rootfs/etc/nginx/lua/test/certificate_test.lua:118>


Failure -> ./rootfs/etc/nginx/lua/test/configuration_test.lua @ 176
Configuration handle_servers() should ignore servers that don't have hostname or pemCertKey set
./rootfs/etc/nginx/lua/test/configuration_test.lua:192: Expected no error, but caught:
(string) 'bad argument #1 to 'pairs' (table expected, got nil)'

stack traceback:
	./rootfs/etc/nginx/lua/test/configuration_test.lua:192: in function <./rootfs/etc/nginx/lua/test/configuration_test.lua:176>


Failure -> ./rootfs/etc/nginx/lua/test/configuration_test.lua @ 197
Configuration handle_servers() should successfully update certificates and keys for each host
./rootfs/etc/nginx/lua/test/configuration_test.lua:209: Expected no error, but caught:
(string) 'bad argument #1 to 'pairs' (table expected, got nil)'

stack traceback:
	./rootfs/etc/nginx/lua/test/configuration_test.lua:209: in function <./rootfs/etc/nginx/lua/test/configuration_test.lua:197>


Failure -> ./rootfs/etc/nginx/lua/test/configuration_test.lua @ 214
Configuration handle_servers() should log an err and set status to Internal Server Error when a certificate cannot be set
./rootfs/etc/nginx/lua/test/configuration_test.lua:234: Expected no error, but caught:
(string) 'bad argument #1 to 'pairs' (table expected, got nil)'

stack traceback:
	./rootfs/etc/nginx/lua/test/configuration_test.lua:234: in function <./rootfs/etc/nginx/lua/test/configuration_test.lua:214>


Failure -> ./rootfs/etc/nginx/lua/test/configuration_test.lua @ 240
Configuration handle_servers() logs a warning when entry is forcibly stored
./rootfs/etc/nginx/lua/test/configuration_test.lua:265: Expected no error, but caught:
(string) 'bad argument #1 to 'pairs' (table expected, got nil)'

stack traceback:
	./rootfs/etc/nginx/lua/test/configuration_test.lua:265: in function <./rootfs/etc/nginx/lua/test/configuration_test.lua:240>

make: *** [Makefile:167: lua-test] Error 1