Commit Graph

  • a18afc4e24 * Removed signal handling. * StartPrivileged() now returns a lock which is passed to StopPrivileged(). * Don't require exclusive ownershiop of the lockfile - the lock is the important thing, not the file it is placed on. * Make isRoot() and lockfileName variables for testability. James Hunt 2015-03-05 14:35:07 +00:00
  • 344a13dad5 Add support for snappy login and store oauth token. by mvo approved by mvo,sergiusens Michael Vogt 2015-03-05 09:11:37 -05:00
  • 6212e538d0 fix ssoMsg.Message and rename mockStoreNeeds2faHttpCode -> mockStoreNeeds2faHTTPCode Michael Vogt 2015-03-05 15:02:30 +01:00
  • 689c32e320 * Sync with lp:snappy. James Hunt 2015-03-05 13:43:38 +00:00
  • 88edb4fc60 dependencies.tsv: add missing code.google.com/p/go.crypto Michael Vogt 2015-03-05 14:42:48 +01:00
  • c72c81ca4b snappy/progress.go: do not use pb.ProgressBar.SetUnits() as this is not available in our package version yet Michael Vogt 2015-03-05 14:29:49 +01:00
  • b26e872aaf * helpers/helpers.go: - Remove flock - not required. - Move lockfile to /run. James Hunt 2015-03-05 13:24:05 +00:00
  • 0f0f0bc190 Remove duplicated root test. by jamesodhunt approved by mvo James Hunt 2015-03-05 08:21:37 -05:00
  • a9aff519c2 * Run tests in verbose mode and report coverage statistics. by jamesodhunt approved by mvo James Hunt 2015-03-05 07:43:07 -05:00
  • 57a13dacef * Ensure day part of date always displays as 2 digits (LP: #1428276). by jamesodhunt approved by mvo James Hunt 2015-03-05 07:41:40 -05:00
  • df5542c89e * Ensure lock object is destroyed. James Hunt 2015-03-05 12:13:06 +00:00
  • 92891079de * Add locking for privileged operations. * Move root check to StartPrivileged(). James Hunt 2015-03-05 11:33:01 +00:00
  • 2018757e36 use correct names "security-{template,policy}" in binaries: package.yaml field Michael Vogt 2015-03-05 12:30:41 +01:00
  • 508a4d8297 snappy/click.go: only remove wrapper on uninstall if the uninstalled snap was active Michael Vogt 2015-03-05 12:26:32 +01:00
  • 87e1c7fa21 snappy/click_test.go: add test for upgrade handling Michael Vogt 2015-03-05 12:26:07 +01:00
  • 6f9ce577ec use binaries: apparmor/apparmor-profile to get the name for the apparmor profile to use Michael Vogt 2015-03-05 11:54:35 +01:00
  • baf316597a deal with binaries: without the need for click-bin-path Michael Vogt 2015-03-05 11:28:27 +01:00
  • 3343c2f697 * Remove duplicated root test. James Hunt 2015-03-05 10:26:19 +00:00
  • 4014f71eca * Ensure day part of date always displays as 2 digits (LP: #1428276). James Hunt 2015-03-05 09:45:36 +00:00
  • 512e4f97b8 fix handling of 2fa and add more tests so that this does not break again Michael Vogt 2015-03-05 08:36:47 +01:00
  • 9315824c95 Remove mention of go-dbus, which is no longer required and depend on system-image-cli. by jamesodhunt approved by sergiusens,mvo James Hunt 2015-03-04 13:31:49 -05:00
  • 0b13e40b22 * Run tests in verbose mode and report coverage statistics. James Hunt 2015-03-04 16:23:33 +00:00
  • 3984061330 * Added Depends: on system-image-cli. James Hunt 2015-03-04 16:06:40 +00:00
  • 508f12f0c9 * Remove mention of go-dbus, which is no longer required. James Hunt 2015-03-04 15:31:03 +00:00
  • 4cbf7c58b2 cmd/snappy-go/cmd_login.go: added "login successful" message Michael Vogt 2015-03-04 16:20:14 +01:00
  • 2913380964 return new ErrInvalidCredentials on 401/403 errors Michael Vogt 2015-03-04 16:18:59 +01:00
  • a68f774d5d fix bug in AtomicWriteFile() and add regression test Michael Vogt 2015-03-04 16:16:45 +01:00
  • ff43a7a947 merged trunk and resolved conflicts Michael Vogt 2015-03-04 15:51:39 +01:00
  • f81db486d8 refactor to not reuse err Michael Vogt 2015-03-04 15:27:36 +01:00
  • 6926b0aaca getDirSize -> dirSize Michael Vogt 2015-03-04 15:07:15 +01:00
  • a2e12f7fcc snappy/build.go: use text/template for debian/control generation Michael Vogt 2015-03-04 14:51:44 +01:00
  • 991810295b Improve tests/test-coverage. by mvo approved by sergiusens Michael Vogt 2015-03-04 08:51:43 -05:00
  • 26b86cd251 first pass of review comments Michael Vogt 2015-03-04 14:21:21 +01:00
  • d56463c27b address review comments from Sergio Michael Vogt 2015-03-04 14:05:44 +01:00
  • 5585251746 Shows what got updated after "snappy-go update" was run to be consistent with what snappy install is doing and also to see the reboot message. by mvo approved by sergiusens Michael Vogt 2015-03-04 07:11:41 -05:00
  • 7d5f8a56d2 first round of review comments addressing Michael Vogt 2015-03-04 12:48:29 +01:00
  • ec92422da2 Fix a race in the stderr reading for s-i updates. by mvo approved by sergiusens Michael Vogt 2015-03-04 06:41:41 -05:00
  • a0f1162c27 snappy/systemimage_native.go: add comment why json parse errors are ignored Michael Vogt 2015-03-04 12:12:23 +01:00
  • 3be682a0bb merged lp:snappy and resolved conflicts Michael Vogt 2015-03-04 11:15:28 +01:00
  • a8bd36209d use ~/apps/snappy/auth/sso.json for the store token Michael Vogt 2015-03-04 11:03:29 +01:00
  • 8cc0819891 show otp token (for Sergio) Michael Vogt 2015-03-04 10:30:42 +01:00
  • 88b17222f1 refactor for easier readability Michael Vogt 2015-03-04 09:05:47 +01:00
  • d7d1d99d2d fix race in systemImageDownloadUpdate() Michael Vogt 2015-03-04 08:43:56 +01:00
  • 39b367564c Support the case for when no device part is provided in the upgrade assets by sergiusens approved by mvo Sergio Schvezov 2015-03-04 02:31:48 -05:00
  • 56dc224655 No hardware.yaml is not necessarily an error. Sergio Schvezov 2015-03-03 18:01:45 -03:00
  • 738b34658b Ensure that hardware.yaml is removed in HandleAssets() by mvo approved by sergiusens,jamesodhunt Michael Vogt 2015-03-03 15:41:47 -05:00
  • 70e439ddc4 merged lp:snappy Michael Vogt 2015-03-03 16:32:01 +01:00
  • 6b53319a54 remove hardware.yaml in uboot.HandleAssets() Michael Vogt 2015-03-03 16:23:52 +01:00
  • d4987b5564 Remove dbus dependency for system image updates by mvo approved by sergiusens Michael Vogt 2015-03-03 09:51:40 -05:00
  • ed0a977a9c cmd/snappy-go/cmd_list.go: remove FIXME, there is a open question in the spec about this now Michael Vogt 2015-03-03 15:15:42 +01:00
  • 40c63f5f35 merged lp:snappy Michael Vogt 2015-03-03 14:47:46 +01:00
  • 01f635c549 error strings in go should be lower case (cf http://www.reddit.com/r/golang/comments/241u95/best_practices_for_errors_in_go/), thanks James Michael Vogt 2015-03-03 13:04:08 +01:00
  • 87171a6eec Services and Ports exposure by sergiusens approved by mvo Sergio Schvezov 2015-03-03 07:02:11 -05:00
  • 221f9d5ca0 Updating tests. Sergio Schvezov 2015-03-03 07:35:52 -03:00
  • 610f893b48 make errors more consistent Michael Vogt 2015-03-03 11:06:17 +01:00
  • 51536e7a00 add test for FindSnapsByName Michael Vogt 2015-03-03 10:54:29 +01:00
  • 7eaff900aa add test for MetaRepository.Details() Michael Vogt 2015-03-03 10:43:00 +01:00
  • 0a65c8a654 add test for RemoteSnapPart.Install() Michael Vogt 2015-03-03 10:27:03 +01:00
  • caa1b474bd add test for setActive() Michael Vogt 2015-03-03 10:13:02 +01:00
  • 6943ed5fb5 add test for InstalledSnapsByType() Michael Vogt 2015-03-03 10:01:49 +01:00
  • a426293fbe simplify InstalledSnapNamesByType tests Michael Vogt 2015-03-03 09:39:31 +01:00
  • ef47e61cc8 explicit return nil Michael Vogt 2015-03-03 09:33:28 +01:00
  • 421c5c5808 add TestRemoveHWAccessInvalidDevice Michael Vogt 2015-03-03 09:32:08 +01:00
  • fa3beb99eb explicit return nil Michael Vogt 2015-03-03 09:30:00 +01:00
  • 50539809cb partition/partition_test.go: add SyncBootloaderFiles() Michael Vogt 2015-03-03 09:27:39 +01:00
  • 2131455ee1 add tests for toggleBootloaderRootfs/MarkBootSuccessful Michael Vogt 2015-03-03 09:24:31 +01:00
  • a4e27f2222 remove unused getNameValuePairs() Michael Vogt 2015-03-03 08:48:11 +01:00
  • 0f3ea12894 partition/partition_test.go: test error handling on non-snappy partition layouts Michael Vogt 2015-03-03 08:45:22 +01:00
  • b108f1da0b return nil explicitly Michael Vogt 2015-03-03 08:38:07 +01:00
  • ad90f50454 partition/partition_test.go: improve bindmountRequiredFilesystems() test Michael Vogt 2015-03-03 08:34:45 +01:00
  • 46efed46a4 helpers/helpers_test.go: add test for directory unpack Michael Vogt 2015-03-03 08:23:36 +01:00
  • 4c4a67cd30 address comments from Sergio (thanks!) Michael Vogt 2015-03-02 17:24:55 +01:00
  • 3d8fc8444d implement 2fa (for Sergio) Michael Vogt 2015-03-02 15:59:34 +01:00
  • 61f04c4880 more refactor Michael Vogt 2015-03-02 15:38:04 +01:00
  • 79c52a9d30 refactor Michael Vogt 2015-03-02 15:28:44 +01:00
  • 761aca3f38 add meta/readme.md parsing Michael Vogt 2015-03-02 15:13:48 +01:00
  • ea1ed55101 add fake "du" command to make tests robust Michael Vogt 2015-03-02 14:56:46 +01:00
  • 4361984e5d generate installed-size field Michael Vogt 2015-03-02 14:51:32 +01:00
  • e045be2d3c merged lp:snappy Michael Vogt 2015-03-02 14:17:08 +01:00
  • 95cf9407a6 implement binaries/services according to vision doc Michael Vogt 2015-03-02 14:16:22 +01:00
  • 901d0e0e95 auto-add framework Michael Vogt 2015-03-02 14:00:26 +01:00
  • 76111f9078 auto-generate snappy-config apparmor Michael Vogt 2015-03-02 13:47:53 +01:00
  • f75ae4d2c1 add support for snappy-systemd Michael Vogt 2015-03-02 13:40:06 +01:00
  • 67fa6a3321 Adding services and ports. Sergio Schvezov 2015-03-02 09:31:35 -03:00
  • b4f682f1d6 snappy/snapp.go: the updates web API requires application/json instead of hal+json right now (LP: #1427155) Michael Vogt 2015-03-02 13:12:13 +01:00
  • 72e3c7c6da add compat for binaries Michael Vogt 2015-03-02 11:52:45 +01:00
  • e87c56e07c snappy/snapp.go: try using authenticated download if there is no annoymous download available Michael Vogt 2015-03-02 10:48:10 +01:00
  • f132efb623 snappy/auth.go: add timestamp,nonce Michael Vogt 2015-03-02 10:47:07 +01:00
  • 6c842e487a add v1 plaintext signature to ubuntu store queries Michael Vogt 2015-03-02 10:17:10 +01:00
  • b7af20d7c0 refactor and add setUbuntuStoreHeaders to kill duplicated code Michael Vogt 2015-03-02 09:36:09 +01:00
  • 787b9cb2d7 add ReadStoreToken() Michael Vogt 2015-03-02 09:31:16 +01:00
  • 019f6f9241 add snappy login, RequestStoreToken,WriteStoreToken() and tests Michael Vogt 2015-03-02 09:24:27 +01:00
  • f388844d51 move helpers into a seperate package by mvo approved by mvo,sergiusens Michael Vogt 2015-03-02 02:21:43 -05:00
  • 9ccb29992e launchpad.net/goyaml->gopkg.in/yaml.v2 Michael Vogt 2015-03-02 08:14:22 +01:00
  • 2a739c2c11 merged lp:snappy and resolved conflicts Michael Vogt 2015-02-27 15:35:41 +01:00
  • e9884b1bf8 Tests for uboot.HandleAssets() and fixes the issues that the tests uncovered. by mvo approved by sergiusens Michael Vogt 2015-02-27 08:51:42 -05:00
  • b811821c7b snappy/systemimage.go: use systemImageClientConfig on other partition as well when driving s-i-cli Michael Vogt 2015-02-27 12:13:36 +01:00
  • dcc962e184 cmd/snappy-go/cmd_update.go: show list of updated packges after the update was performed Michael Vogt 2015-02-27 12:08:20 +01:00
  • 41bb461a6e addressed the review comments (thanks Sergio!) Michael Vogt 2015-02-27 09:05:19 +01:00
  • 28666f7b9a merge relevant utils from parition into common helpers Michael Vogt 2015-02-27 08:44:31 +01:00