• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

01org / ciao / 41 / 1
65%
master: 66%

Build:
Build:
LAST BUILD BRANCH: topic/config-subnet-bits
DEFAULT BRANCH: master
Ran 02 Dec 2016 09:36PM UTC
Files 94
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Dec 2016 09:30PM UTC coverage: 64.698% (-0.05%) from 64.743%
COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7

push

travis-ci

bryteise
testutil: Add temporary test cert file generation

In order to run tests, cert files may need to be available outside of
the /etc/pki/ciao folder. This patch makes use of ssntp/certs to
generate certificates for the scheduler, controller, agent, cnci agent,
and net agent roles in a testutil function.

Test components can use testutil.MakeTestCerts() and if no error is
returned be reasonbly confident a valid set of certs can be found in the
paths returned by testutil.RoleToTestCertPath(role) which returns the ca
file path, the cert path for the given role and a potential error. Test
components should cleanup certs with RemoveTestCerts().

For example:

import "github.com/01org/ciao/testutil"

func TestMain(m *testing.M) {
	if err := testutil.MakeTestCerts(); err != nil {
        	// Inform of error/run tests not using certs/etc
        	os.Exit(1)
        }
	result := m.Run()
        testutil.RemoveTestCerts()
        os.Exit(result)
}

13399 of 20710 relevant lines covered (64.7%)

0.7 hits per line

Source Files on job 41.1 (COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7)
  • Tree
  • List 0
  • Changed 25
  • Source Changed 20
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41
  • Travis Job 41.1
  • d0071459 on github
  • Prev Job for COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7 on test-cert-generator (#39.2)
  • Next Job for COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7 on test-cert-generator (#42.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc