Page MenuHomeDevCentral

DevCentral tests
ClosedPublic

Authored by dereckson on Nov 14 2015, 17:27.
Tags
None
Referenced Files
F2829592: D62.diff
Fri, Apr 19, 08:56
F2827635: D62.diff
Fri, Apr 19, 00:50
F2827513: D62.id.diff
Fri, Apr 19, 00:18
F2827086: D62.id130.diff
Thu, Apr 18, 22:46
Unknown Object (File)
Thu, Apr 18, 00:00
Unknown Object (File)
Sun, Apr 14, 22:14
Unknown Object (File)
Sun, Apr 14, 14:54
Unknown Object (File)
Sun, Apr 14, 07:14
Subscribers
None

Details

Summary

We test if DevCentral is up and if every expected service
runs inside the container.

This detects the two main failure case:

  • the IRC bot xessife is down
  • the Phabricator daemons are down

It introduces a DockerContainer class to run a command inside
a container, after connecting to the relevant server with a
Docker client available by SSH.

Here, ssh dwellers.nasqueron.org docker exec devcentral ps auxw.

To run such privileged access tests, make test-full is introduced.

Test Plan

run tests in prod and some simulated failure mode

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
test/devcentral
Build Status
Buildable 61
Build 61: arc lint + arc unit

Event Timeline

dereckson retitled this revision from to DevCentral tests.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
$ make test-full
sh -c "DOCKER_ACCESS=1  DOCKER_HOST=dwellers.nasqueron.org phpunit ."
PHPUnit 4.4.0 by Sebastian Bergmann.

I.....

Time: 2.82 seconds, Memory: 3.25Mb

OK, but incomplete, skipped, or risky tests!
Tests: 6, Assertions: 16, Incomplete: 1.
This revision is now accepted and ready to land.Nov 14 2015, 17:28
This revision was automatically updated to reflect the committed changes.