22 Commits

Author SHA1 Message Date
Alban Crequy 068a233a95 functional tests: test multiple systemd
Use Semaphore's parallel build capability to test rkt against various
systemd versions.
2015-04-28 17:24:52 +02:00
Krzesimir Nowak b46eb513ad test: Compute testable and/or formattable directories
Basically we want to run go test on all directories where _test.go
files reside excluding functional tests and Godeps. I'm rather not
sure about the last one - it might be useful to check if our Godeps
pass their tests.

We also want to check for formatting and suspicious constructs on all
.go files.

So instead of hardcoding the list, employ some basic tools to produce
the list for us. That way we don't have to maintain the list - nobody
ever remembers about that thing.
2015-04-28 12:17:09 +02:00
Krzesimir Nowak c5d1652a7f test: Check more packages with gofmt and go vet
Run go vet against packages in FORMATTABLE list instead of
TESTABLE_AND_FORMATTABLE. The TESTABLE part should be only about
packages that provide _test.go source files.

Also, add more packages to check for formatting and suspicious
constructs.
2015-04-28 12:08:11 +02:00
Krzesimir Nowak 08f9d8c3ee functional tests: Reword the comment 2015-04-28 11:37:44 +02:00
Krzesimir Nowak 25e2a39a28 functional tests: Drop dead code for destructive tests 2015-04-28 11:29:14 +02:00
Krzesimir Nowak 87b5a5b53c functional tests: Rename env var enabling destructive tests 2015-04-22 10:40:49 +02:00
Krzesimir Nowak 334d07aa41 functional tests: Make sure we run destructive tests on semaphore 2015-04-22 10:40:10 +02:00
Jonathan Boulle 3012ba3e6e tests: various cleanup to initial functional tests
- Create general tests/README.md describing current situation.
- Remove circle.yml for now until we have it working.
- Add copyright header to inspects.go
2015-04-09 18:09:36 -07:00
Alban Crequy 5d8e59659d functional tests: new implementation 2015-04-09 16:05:52 +02:00
Krzesimir Nowak b586a3c5a9 rkt: Add configuration support for authorization
Authorization configuration is searched for first in
/usr/lib/rkt/auth.d directory (for vendors) and then in
/etc/rkt/auth.d. Directories, symlinks and files with no ".json"
suffix inside auth.d directory are simply ignored.

Configuration file format is described in
Documentation/config-format.md.
2015-04-08 10:06:45 +02:00
Jesse Dubay 99218f8676 cas: rename to store
The cas package implements more than just a CAS, so this patch gives it
a suitably generic name.

Fixes #707
2015-04-07 18:05:03 -07:00
Jonathan Boulle 79753c9b19 *: rocket -> rkt 2015-03-31 16:31:21 -07:00
Jonathan Boulle d5669c9582 *: move rktpath/metadata into single "common" pkg 2015-01-26 11:36:36 -08:00
Jonathan Boulle 8b72cf0f91 pkg: remove unused code 2015-01-23 21:48:05 -08:00
Eugene Yakubovich 25ecad8162 Integrate metadata service
- Move metadatasvc into rkt as a subcommand
- Add option to spawn metadatasvc from rkt run
- Register container with metadatasvc
- Removes anti-spoofing logic -- this belongs in the network plugin

Fixes #33
2015-01-23 13:25:46 -08:00
Jonathan Boulle d07dce13ff rkt: refactor fetch, add tests
Unfortunately the recent fetch refactoring inverted the logic from what
it should be; we want to first check if the supplied image name is a
valid URL, and, if so, we should just pass it through. Otherwise,
newDiscoveryApp will return bogus results because
discovery.NewAppFromString does not expect to get URLs.

Also adds a few test cases for NewDiscoveryApp.
2015-01-07 16:48:23 -08:00
Vito Caputo 1af30a2d12 stage1/init: quote Exec* argument lists
Note this only quotes the arguments, not the path.  There's a bug in
systemd which prevents quoting the path; it thinks the executable's path
is not absolute when quoted.  This prevents things like an executable path
containing spaces from working:

https://bugs.freedesktop.org/show_bug.cgi?id=86171

The fix landed in systemd upstream Dec 18th, which should make it into v219.

Also added keys to the unit.UnitOption composite literals to satisfy govet.

Fixes #321.
2015-01-07 10:51:07 -08:00
Jonathan Boulle 0bbeeaae92 pkg/lock: add DirLock tests 2014-12-24 11:02:26 -08:00
Kelsey Hightower a3e710bd86 add support for managing opengpg keys and ACI signature validation
This patch adds support for managing trusted opengpg keys in a keystore backed
by the local filesystem. Trusted keys are stored in following directories by
default:

* /etc/rkt/trustedkeys/root.d
* /etc/rkt/trustedkeys/prefix.d
* /usr/lib/rkt/trustedkeys/root.d
* /usr/lib/rkt/trustedkeys/prefix.d

Each trusted key is stored using the key fingerprint as the name and the key
in OpenPGP ASCII Armor format as the contents.

OS vendors can store system-wide trusted keys in the trusted keys directories
under /usr, which can be overridden by creating an empty file under /etc with a
matching name (fingerprint).

This patch also adds support for validating ACI signatures against trusted keys
found in the local keystore.

Fixes #215
2014-12-24 02:40:55 -05:00
Jonathan Boulle 98038dcc14 pkg: remove unused tarheader package
This was used by actool which is now no longer in this repo
2014-12-09 12:36:54 -08:00
Jonathan Boulle a1d7eb8e9c *: move spec to new home
The appc spec has moved! Its new home is at https://github.com/appc/spec

This removes the spec (since it has already been migrated), and adds
placeholders linking to the new repo. It also updates rocket to
reference the spec repo _directly_ (i.e. NOT godepped). This means that
people will need to maintain the spec in their gopath for now when
building rocket.
2014-12-09 12:27:35 -08:00
Matt Boersma b8e507e25d tests: add travis-ci config and test script 2014-12-04 00:13:02 +00:00