Commit Graph

  • be7953717f Use a switch. Leo Arias 2015-10-29 23:09:00 -06:00
  • f0e842fad6 Split the travis suite in two, one super fast for static checks and one slower for unit tests. Leo Arias 2015-10-29 22:57:07 -06:00
  • 0f542b785c Moved the testutils tests to the unit suite. Leo Arias 2015-10-29 22:56:01 -06:00
  • c02c89f8f0 Install go lint before the lint checks. Leo Arias 2015-10-29 22:47:34 -06:00
  • d0ccbcc76d Simplified gen-coverage.sh Leo Arias 2015-10-29 22:46:10 -06:00
  • cfa9e6de27 Added flags to run a single suite. Leo Arias 2015-10-29 22:37:48 -06:00
  • 8f3a4d8855 switch to use priv.FileLock instead of priv.Mutex John R. Lenton 2015-10-30 00:29:31 +00:00
  • 21363253ec go fmt changes Jamie Strandboge 2015-10-29 18:10:50 -05:00
  • b3674ae872 snappy/snapp_test.go: more adjustments for non-touched files Jamie Strandboge 2015-10-29 18:09:34 -05:00
  • bdd367ee87 whitespace change Jamie Strandboge 2015-10-29 18:09:25 -05:00
  • e18856fde0 snappy/snapp_test.go: remove touched test since we don't touch Jamie Strandboge 2015-10-29 17:39:54 -05:00
  • 0beabe5067 snappy/security.go: better logging Jamie Strandboge 2015-10-29 17:31:21 -05:00
  • a49147624e snappy/purge_test.go: mock apparmor parser Jamie Strandboge 2015-10-29 17:31:04 -05:00
  • eb8aafd066 snappy/snapp_test.go: set s.basedir for RequestSecurityPolicyUpdate() tests Jamie Strandboge 2015-10-29 17:21:31 -05:00
  • 9e5865efc7 snappy/security.go: better calculate dir name Jamie Strandboge 2015-10-29 17:21:08 -05:00
  • a13f3cd751 snappy/snapp.go: move policy generation back into activate() since deactivate() removes it and when reactivating, we need to regenerate Jamie Strandboge 2015-10-29 16:43:34 -05:00
  • ffba40647d no policy to regenerate is not an error Jamie Strandboge 2015-10-29 16:41:59 -05:00
  • 428bdf3aed oops, forgot about lint John R. Lenton 2015-10-29 20:35:16 +00:00
  • f30b2293e8 A very silly mutex thing for use by the daemon John R. Lenton 2015-10-29 20:29:42 +00:00
  • 9c947a8164 moved the lockfile definition out to snappy.dirs John R. Lenton 2015-10-29 18:10:49 +00:00
  • 0579a83f18 Merge pull request #33 from chipaca/small-daemon-tests-cleanup John Lenton 2015-10-29 19:39:54 +00:00
  • 41ef5cc5b3 reimplement regenerateAppArmorRulesImpl() in hwaccess for new internal APIs and remove clickhook Jamie Strandboge 2015-10-29 14:12:52 -05:00
  • 63bb8d005b add regeneratePolicyForSnap() Jamie Strandboge 2015-10-29 14:12:09 -05:00
  • ddb6d746c1 snappy/common_test.go: also add seccomp profiles Jamie Strandboge 2015-10-29 14:11:28 -05:00
  • 09b2fbc48c snappy/common_test.go: mock that apparmor profile instead of the security json Jamie Strandboge 2015-10-29 14:08:15 -05:00
  • 1ccac5a0ba rename RequestAppArmorUpdate as RequestSecurityPolicyUpdate fix some testsuite issues Jamie Strandboge 2015-10-29 14:07:26 -05:00
  • a32cac623a Merge pull request #16 from mvo5/feature/git-buildpackage John Lenton 2015-10-29 17:43:05 +00:00
  • 12139df71e Merge pull request #25 from mvo5/bugfix/network-client Gustavo Niemeyer 2015-10-29 14:54:17 -02:00
  • 43dffb28ca small daemon tests cleanup John R. Lenton 2015-10-29 16:07:25 +00:00
  • 579db8733b Merge pull request #29 from chipaca/hopefully-the-last-firstboot-fix Michael Vogt 2015-10-29 15:25:46 +01:00
  • 75da4553d5 Merge pull request #28 from fgimenez/27-fix-import-path Leo Arias 2015-10-29 08:19:07 -06:00
  • 982ee44c69 Make the tests pass, sure, why not. John R. Lenton 2015-10-29 11:08:55 +00:00
  • aff253f77c Yet another ordering change for firstboot. Worked it out with pitty; hopefully the last one until things change again. John R. Lenton 2015-10-29 10:59:58 +00:00
  • 456e0e6656 Updated import path, closes #27 Federico Gimenez 2015-10-29 09:35:14 +01:00
  • 59657dfa86 remove old click tests. Need to add a bunch of tests Jamie Strandboge 2015-10-28 17:19:13 -05:00
  • b8ec6cc5b9 snappy/purge_test.go: don't mock sc-filtergen and add apparmor dir Jamie Strandboge 2015-10-28 17:18:41 -05:00
  • 3fe2e2a266 snappy/build_test.go: adjust for no more apparmor integration hook Jamie Strandboge 2015-10-28 17:18:04 -05:00
  • 834d6fefb1 snappy/click_test.go: remove uneeded tests Jamie Strandboge 2015-10-28 17:17:42 -05:00
  • 18f4528077 snappy/common_test.go: mock the parser Jamie Strandboge 2015-10-28 17:16:40 -05:00
  • 825e968672 snappy/snapp.go: don't generate policy on activate(), but instead on Intall() Jamie Strandboge 2015-10-28 17:15:24 -05:00
  • c870e17e2c snappy/security.go: - set apparmor_parser up for mocking - better handle overrides Jamie Strandboge 2015-10-28 17:07:40 -05:00
  • 97514c3e4b go fmt changes Jamie Strandboge 2015-10-28 15:43:30 -05:00
  • 26401f9624 snappy/snapp.go: - refactor - remove legacyIntegrateSecDef snappy/security.go: implement security overrides in yaml Jamie Strandboge 2015-10-28 15:41:00 -05:00
  • bb02603384 snappy/security.go: remove unused sc-filtergen code Jamie Strandboge 2015-10-28 13:38:53 -05:00
  • 73247a6b10 snappy/snappy.go: call generatePolicyForServiceBinary() for affected apps, not all of the snap's policy Jamie Strandboge 2015-10-28 11:26:15 -05:00
  • d9bf8d3769 snappy/security.go: update comment Jamie Strandboge 2015-10-28 11:17:05 -05:00
  • 0fe35c7500 snappy/security.go: refactor duplicated code into generatePolicyForServiceBinary() Jamie Strandboge 2015-10-28 11:14:52 -05:00
  • 14be17eaa8 snappy/snapp.go: adjust comment and lint Jamie Strandboge 2015-10-28 10:53:53 -05:00
  • 775e727d66 snappy/click.go: remove wrapper code snappy/snapp.go: - remove JSON timestamp code - update RequestAppArmorUpdate() for new profile generation - use generatePolicy() instead of click wrapper code Jamie Strandboge 2015-10-28 10:51:42 -05:00
  • 7f6bc6d703 Merge pull request #14 from mvo5/bugfix/lp1488114-import-msg John Lenton 2015-10-28 15:45:18 +00:00
  • c9b955ac95 snappy/security.go: add comment on FindUbuntuFlavor() Jamie Strandboge 2015-10-28 10:36:08 -05:00
  • f324eb3a89 update "Another snappy is running" string Michael Vogt 2015-10-28 16:29:18 +01:00
  • 3372d94e44 snappy/security.go: lint checks Jamie Strandboge 2015-10-28 10:29:10 -05:00
  • 1dacbb6f49 Add git-buildpackage config and .gitignore Michael Vogt 2015-10-28 09:37:49 +01:00
  • cd716b0fd5 update Vcs-* to point to git Michael Vogt 2015-10-28 10:38:57 +01:00
  • 6bf15fb5cd snappy/click.go: ignore apparmor and apparmor-profile click hooks Jamie Strandboge 2015-10-28 10:24:08 -05:00
  • b26aa6c59b refactor security removal and generation from snappy/snapp.go to snappy/security.go Jamie Strandboge 2015-10-28 10:15:45 -05:00
  • 9c6cbab965 Merge pull request #13 from mvo5/bugfix/review-tools-reenable Leo Arias 2015-10-28 09:11:20 -06:00
  • 728844c923 Merge pull request #23 from elopio/cover-all-branches Leo Arias 2015-10-28 08:24:14 -06:00
  • 3534889b89 Try to fix the goveralls error of missing token. Leo Arias 2015-10-28 08:09:35 -06:00
  • bdc1db00fa Use the right coveralls token. Publish coverage for all repos. Leo Arias 2015-10-28 07:49:45 -06:00
  • b54f6b6e34 snappy/snapp.go: generate security policy using new API instead of from compat manifest (more cleanups needed) cmd/policygen/main.go, snappy/security.go: adjust argument to GenerateSecurityPolicyFromFile Jamie Strandboge 2015-10-28 08:39:05 -05:00
  • b68eb5086e remove compat hooks fix lint issues Jamie Strandboge 2015-10-28 08:14:27 -05:00
  • 034e7749d8 Merge pull request #15 from mvo5/bugfix/panic-less-in-priv-mutex Gustavo Niemeyer 2015-10-28 10:56:02 -02:00
  • 133478307a Merge pull request #12 from mvo5/bugfix/lp1480248-test-reenable Gustavo Niemeyer 2015-10-28 10:45:24 -02:00
  • 183ed75ba6 Merge pull request #22 from mvo5/feature/badges Gustavo Niemeyer 2015-10-28 10:43:10 -02:00
  • 60402b2622 add travis status to README.md Michael Vogt 2015-10-28 13:22:42 +01:00
  • 7ba3f01d40 Merge pull request #11 from elopio/coveralls John Lenton 2015-10-28 11:31:00 +00:00
  • 9403f332ef Merge pull request #21 from chipaca/no-more-function-comparison Michael Vogt 2015-10-28 12:27:48 +01:00
  • 422685c365 Drop the NotFoundHandler check that relied on undefined behaviour. John R. Lenton 2015-10-28 10:45:32 +00:00
  • 30e58a4114 remove .bzr leftovers Michael Vogt 2015-10-28 09:38:28 +01:00
  • 973207089a run ./update-pot Michael Vogt 2015-10-28 09:19:34 +01:00
  • 46ab3ea09b Merge branch 'master' into bugfix/lp1488114-import-msg Michael Vogt 2015-10-28 09:18:19 +01:00
  • 5e63530dcb Merge branch 'master' into bugfix/lp1480248-test-reenable Michael Vogt 2015-10-28 09:11:43 +01:00
  • 521879b6e0 Added an after_success step to travis to publish coverage to coveralls. Leo Arias 2015-10-27 18:05:50 -06:00
  • 05455e6ab6 Collect the coverage output of all the unit tests. Leo Arias 2015-10-27 17:47:02 -06:00
  • 2878a94db1 snappy/security.go: use proper indentation with policy groups Jamie Strandboge 2015-10-27 17:14:16 -05:00
  • 9904377d79 snappy/security.go: - fix a couple badly copy-pasted paths - implement dbusPath() and use it in apparmor policy generation Jamie Strandboge 2015-10-27 15:15:50 -05:00
  • 49bec2cbbc Merge pull request #9 from elopio/travis Gustavo Niemeyer 2015-10-27 17:51:30 -02:00
  • c0dea3455c Merge pull request #8 from chipaca/fix-imports Leo Arias 2015-10-27 12:55:35 -06:00
  • d0466d3639 snappy/security.go: - adjust findCaps and findTemplate to handle framework-policy - adjust error reporting for not found template and caps Jamie Strandboge 2015-10-27 13:45:45 -05:00
  • 9453e97c07 Added the travis config file. Leo Arias 2015-10-27 12:39:23 -06:00
  • 4a1bb259c9 Changed all references to launchpad.net/snappy to github.com/ubuntu-core/snappy other than those for URLs (notably, of bugs). John R. Lenton 2015-10-27 18:30:47 +00:00
  • 2321fc9017 * debian/usr.bin.ubuntu-core-launcher: - use attach_disconnected (LP: #1471862) - also allow 'mr' for /lib/@{multiarch}/ld-*.so 1.0.10 Jamie Strandboge 2015-10-27 08:53:51 -05:00
  • 13a13333fd Initialization common to all the suites done only once by fgimenez approved by elopio Federico Gimenez 2015-10-27 05:13:01 +00:00
  • c28711b196 use the network-client cap instead of the old, deprecated networking cap. network-client was available on 15.04 so this is safe to backport to the stable branch as well. Jamie Strandboge 2015-10-26 16:29:11 -05:00
  • 074836edcc Don't include empty channels in the bulk POST. by chipaca approved by mvo,sergiusens John R. Lenton 2015-10-26 17:03:54 +00:00
  • a171fc1cb1 Don't send an empty channel in the update request. John R. Lenton 2015-10-26 15:49:33 +00:00
  • 7177a49b5a Initialization common to all the suites done only once Federico Gimenez 2015-10-26 16:43:12 +01:00
  • 01bb3818b6 Launchpad automatic translations update. Launchpad Translations on behalf of snappy-dev 2015-10-26 05:27:03 +00:00
  • 67e59ad7ac merged lp:snappy Michael Vogt 2015-10-22 15:14:20 +02:00
  • 042deb7415 Make atomic follow symlinks (so you don't have to write to /etc/writable). by chipaca approved by mvo John R. Lenton 2015-10-22 12:53:05 +00:00
  • d3eababbfd make the follow symlink behaviour depend on a flag. Oh, add a flag. John R. Lenton 2015-10-22 13:45:35 +01:00
  • a712d786c4 make atomicwrite follow symlinks John R. Lenton 2015-10-22 12:25:42 +01:00
  • 1adabb0aaa bzzt! reversed that John R. Lenton 2015-10-22 11:53:55 +01:00
  • f5e653cd31 Use /etc/writable from config now that config does AtomicWriteFile. by chipaca approved by mvo John R. Lenton 2015-10-22 10:53:16 +00:00
  • 55910e4d89 Use /etc/writable, not /etc directly, to get the atomic write dance. John R. Lenton 2015-10-22 11:44:15 +01:00
  • ae4aacb1c1 Make firstboot happen before ifup. by chipaca approved by mvo,fgimenez John R. Lenton 2015-10-22 10:33:57 +00:00
  • 2c6141cd72 nuke tests that aren't applicable any more John R. Lenton 2015-10-22 11:12:42 +01:00
  • dfca8bb26a don't restart networking, as firstboot is now done earlier John R. Lenton 2015-10-22 10:32:32 +01:00