See
<https://builds.apache.org/job/incubator-trafficcontrol-traffic_ops-test/694/display/redirect?page=changes>
Changes:
[dewrich] start with docker
[dewrich] separate perl and go containers
[dewrich] straighten out vars; write configs
[dewrich] setup db
[dewrich] clean up dockerfile
[dewrich] use one network; better readiness check
[dewrich] add rpm to .gitignore
[dewrich] create dbconf.yml
[dewrich] config fixes
[dewrich] perl script to create sql for new user with encrypted password.
[dewrich] reset, seed, add admin user
[dewrich] add README.md for cdn-in-a-box
[dewrich] move adduser.pl to where docker can pick up
[dewrich] expose TO perl portto docker host
[dewrich] update comments
[dewrich] move compose file up
[dewrich] add missing license text
[dewrich] remove unused profile (for now)
[dewrich] add basic usage
[dewrich] fix issues from review
------------------------------------------
[...truncated 116.68 KB...]
unit_golang_1 | PASS
unit_golang_1 | coverage: 16.1% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/cdn
0.015s coverage: 16.1% of statements
unit_golang_1 | === RUN TestLogLocation
unit_golang_1 | --- PASS: TestLogLocation (0.00s)
unit_golang_1 | === RUN TestLoadConfig
unit_golang_1 | --- PASS: TestLoadConfig (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 64.2% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/config
0.035s coverage: 64.2% of statements
unit_golang_1 | === RUN TestReadCoordinates
unit_golang_1 | --- PASS: TestReadCoordinates (0.00s)
unit_golang_1 | === RUN TestFuncs
unit_golang_1 | --- PASS: TestFuncs (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidate
unit_golang_1 | --- PASS: TestValidate (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 23.7% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/coordinate
0.028s coverage: 23.7% of statements
unit_golang_1 | === RUN TestGetConfigParams
unit_golang_1 | --- PASS: TestGetConfigParams (0.00s)
unit_golang_1 | === RUN TestMakeCRConfigConfig
unit_golang_1 | --- PASS: TestMakeCRConfigConfig (0.00s)
unit_golang_1 | === RUN TestMakeDSes
unit_golang_1 | --- PASS: TestMakeDSes (0.00s)
unit_golang_1 | === RUN TestGetServerProfileParams
unit_golang_1 | --- PASS: TestGetServerProfileParams (0.00s)
unit_golang_1 | === RUN TestGetDSRegexesDomains
unit_golang_1 | --- PASS: TestGetDSRegexesDomains (0.00s)
unit_golang_1 | === RUN TestGetStaticDNSEntries
unit_golang_1 | --- PASS: TestGetStaticDNSEntries (0.00s)
unit_golang_1 | === RUN TestMakeLocations
unit_golang_1 | --- FAIL: TestMakeLocations (0.00s)
unit_golang_1 | edgelocations_test.go:67: makeLocations expected: nil
error, actual: Error scanning cachegroup: sql: expected 4 destination arguments
in Scan, not 6
unit_golang_1 | === RUN TestGetServerParams
unit_golang_1 | --- PASS: TestGetServerParams (0.00s)
unit_golang_1 | === RUN TestGetAllServers
unit_golang_1 | --- PASS: TestGetAllServers (0.00s)
unit_golang_1 | === RUN TestGetServerDSNames
unit_golang_1 | --- PASS: TestGetServerDSNames (0.00s)
unit_golang_1 | === RUN TestGetServerDSes
unit_golang_1 | --- PASS: TestGetServerDSes (0.00s)
unit_golang_1 | === RUN TestGetCDNInfo
unit_golang_1 | --- PASS: TestGetCDNInfo (0.00s)
unit_golang_1 | === RUN TestGetCDNNameFromID
unit_golang_1 | --- PASS: TestGetCDNNameFromID (0.00s)
unit_golang_1 | === RUN TestGetSnapshot
unit_golang_1 | --- PASS: TestGetSnapshot (0.00s)
unit_golang_1 | === RUN TestSnapshot
unit_golang_1 | --- PASS: TestSnapshot (0.00s)
unit_golang_1 | === RUN TestMakeStats
unit_golang_1 | --- PASS: TestMakeStats (0.00s)
unit_golang_1 | FAIL
unit_golang_1 | coverage: 49.0% of statements
unit_golang_1 | FAIL
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/crconfig
0.013s
unit_golang_1 | === RUN TestBuildQuery
unit_golang_1 | --- PASS: TestBuildQuery (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 44.9% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/dbhelpers
0.022s coverage: 44.9% of statements
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/deliveryservice
[no test files]
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestGetDeliveryServiceRequest
unit_golang_1 | --- PASS: TestGetDeliveryServiceRequest (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 2.3% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/deliveryservice/request
0.034s coverage: 2.3% of statements
unit_golang_1 | === RUN TestFuncs
unit_golang_1 | --- PASS: TestFuncs (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidate
unit_golang_1 | --- PASS: TestValidate (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 5.7% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/deliveryservice/request/comment
0.009s coverage: 5.7% of statements
unit_golang_1 | testing: warning: no tests to run
unit_golang_1 | PASS
unit_golang_1 | coverage: 0.0% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/deliveryservice/servers
0.048s coverage: 0.0% of statements [no tests to run]
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/deliveryservicesregexes
[no test files]
unit_golang_1 | === RUN TestGetDivisions
unit_golang_1 | --- PASS: TestGetDivisions (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidation
unit_golang_1 | --- PASS: TestValidation (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 10.9% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/division
0.028s coverage: 10.9% of statements
unit_golang_1 | === RUN TestGetHWInfo
unit_golang_1 | --- PASS: TestGetHWInfo (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 42.9% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/hwinfo
0.011s coverage: 42.9% of statements
unit_golang_1 | === RUN TestReadOrigins
unit_golang_1 | --- PASS: TestReadOrigins (0.00s)
unit_golang_1 | === RUN TestFuncs
unit_golang_1 | --- PASS: TestFuncs (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidate
unit_golang_1 | --- PASS: TestValidate (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 11.6% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/origin
0.021s coverage: 11.6% of statements
unit_golang_1 | === RUN TestGetParameters
unit_golang_1 | --- PASS: TestGetParameters (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 14.5% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/parameter
0.030s coverage: 14.5% of statements
unit_golang_1 | === RUN TestGetPhysLocations
unit_golang_1 | --- PASS: TestGetPhysLocations (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidate
unit_golang_1 | --- PASS: TestValidate (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 11.6% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/physlocation
0.036s coverage: 11.6% of statements
unit_golang_1 | === RUN TestPingHandler
unit_golang_1 | --- PASS: TestPingHandler (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 100.0% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/ping
0.045s coverage: 100.0% of statements
unit_golang_1 | === RUN TestGetProfiles
unit_golang_1 | --- PASS: TestGetProfiles (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidate
unit_golang_1 | --- PASS: TestValidate (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 10.3% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/profile
0.013s coverage: 10.3% of statements
unit_golang_1 | === RUN TestGetProfileParameters
unit_golang_1 | --- PASS: TestGetProfileParameters (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 4.0% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/profileparameter
0.009s coverage: 4.0% of statements
unit_golang_1 | === RUN TestReadRegions
unit_golang_1 | --- PASS: TestReadRegions (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 11.7% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/region
0.007s coverage: 11.7% of statements
unit_golang_1 | === RUN TestFetchObjectValues
unit_golang_1 | --- PASS: TestFetchObjectValues (0.00s)
unit_golang_1 | === RUN TestSaveObject
unit_golang_1 | --- PASS: TestSaveObject (0.00s)
unit_golang_1 | === RUN TestDeleteObject
unit_golang_1 | --- PASS: TestDeleteObject (0.00s)
unit_golang_1 | === RUN TestGetRiakCluster
unit_golang_1 | --- PASS: TestGetRiakCluster (0.09s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 26.3% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/riaksvc
0.102s coverage: 26.3% of statements
unit_golang_1 | === RUN TestFuncs
unit_golang_1 | --- PASS: TestFuncs (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidate
unit_golang_1 | --- PASS: TestValidate (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 6.7% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/role
0.008s coverage: 6.7% of statements
unit_golang_1 | === RUN TestAssignDsesToServer
unit_golang_1 | --- PASS: TestAssignDsesToServer (0.00s)
unit_golang_1 | === RUN TestGetServersByCachegroup
unit_golang_1 | --- PASS: TestGetServersByCachegroup (0.00s)
unit_golang_1 | === RUN TestGetServerUpdateStatus
unit_golang_1 | --- PASS: TestGetServerUpdateStatus (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 20.3% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/server
0.013s coverage: 20.3% of statements
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/staticdnsentry
[no test files]
unit_golang_1 | === RUN TestReadStatuses
unit_golang_1 | --- PASS: TestReadStatuses (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 11.4% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/status
0.007s coverage: 11.4% of statements
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/swaggerdocs/v13
[no test files]
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/swaggerdocs/v13/swaggerspec-server
[no test files]
unit_golang_1 | === RUN TestGetSystemInfo
unit_golang_1 | --- PASS: TestGetSystemInfo (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 39.1% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/systeminfo
0.008s coverage: 39.1% of statements
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/tenant
[no test files]
unit_golang_1 | === RUN TestColsFromStructByTag
unit_golang_1 | --- PASS: TestColsFromStructByTag (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 64.3% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/test
0.048s coverage: 64.3% of statements
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/tocookie
[no test files]
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/tovalidate
[no test files]
unit_golang_1 | === RUN TestGetType
unit_golang_1 | --- PASS: TestGetType (0.00s)
unit_golang_1 | === RUN TestInterfaces
unit_golang_1 | --- PASS: TestInterfaces (0.00s)
unit_golang_1 | === RUN TestValidate
unit_golang_1 | --- PASS: TestValidate (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 12.5% of statements
unit_golang_1 | ok
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/types
0.006s coverage: 12.5% of statements
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/traffic_ops/traffic_ops_golang/utils
[no test files]
unit_golang_1 | ? github.com/apache/incubator-trafficcontrol/lib/go-log
[no test files]
unit_golang_1 | ?
github.com/apache/incubator-trafficcontrol/lib/go-nagios [no test files]
unit_golang_1 | === RUN TestGetHandleErrorFunc
unit_golang_1 | --- PASS: TestGetHandleErrorFunc (0.00s)
unit_golang_1 | === RUN TestCreateAlerts
unit_golang_1 | --- PASS: TestCreateAlerts (0.00s)
unit_golang_1 | === RUN TestStatus
unit_golang_1 | --- PASS: TestStatus (0.00s)
unit_golang_1 | === RUN TestStatusTransition
unit_golang_1 | --- PASS: TestStatusTransition (0.00s)
unit_golang_1 | === RUN TestRequestStatusJSON
unit_golang_1 | --- PASS: TestRequestStatusJSON (0.00s)
unit_golang_1 | === RUN TestDeepCachingType
unit_golang_1 | --- PASS: TestDeepCachingType (0.00s)
unit_golang_1 | === RUN TestTimeJSON
unit_golang_1 | --- PASS: TestTimeJSON (0.00s)
unit_golang_1 | PASS
unit_golang_1 | coverage: 26.6% of statements
unit_golang_1 | ok github.com/apache/incubator-trafficcontrol/lib/go-tc
0.016s coverage: 26.6% of statements
unit_golang_1 | ? github.com/apache/incubator-trafficcontrol/lib/go-util
[no test files]
jenkinsincubatortrafficcontroltrafficopstest694_unit_golang_1 exited with code 1
Aborting on container exit...
+ exit 1
+ finish
+ local st=1
+ [[ 1 -ne 0 ]]
+ echo 'Exiting with status 1'
Exiting with status 1
+
<https://builds.apache.org/job/incubator-trafficcontrol-traffic_ops-test/ws/bin/docker-compose>
-p jenkins-incubator-trafficcontrol-traffic_ops-test-694 -f
traffic_ops/app/bin/tests/docker-compose.yml down -v
Removing jenkinsincubatortrafficcontroltrafficopstest694_unit_golang_1 ...
Removing jenkinsincubatortrafficcontroltrafficopstest694_unit_golang_1 ...
doneRemoving network jenkinsincubatortrafficcontroltrafficopstest694_default
Removing volume jenkinsincubatortrafficcontroltrafficopstest694_traffic_ops
Removing volume
jenkinsincubatortrafficcontroltrafficopstest694_traffic_ops_golang
Build step 'Execute shell' marked build as failure