~kyrofa/unity-scope-snappy/launcher_scope

« back to all changes in this revision

Viewing changes to store/actions/uninstall_runner_test.go

  • Committer: Tarmac
  • Author(s): Kyle Fazzari
  • Date: 2015-07-08 14:22:02 UTC
  • mfrom: (8.11.10 unity-scope-snappy)
  • Revision ID: tarmac-20150708142202-my94j1pj3q9qyysw
Hook up DBus client to action runners.

Approved by PS Jenkins bot, Xavi Garcia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
func TestUninstallActionRunnerRun(t *testing.T) {
13
13
        actionRunner, _ := NewUninstallRunner()
14
14
 
15
 
        packageManager := new(fakes.FakeWebdmManager)
 
15
        packageManager := new(fakes.FakeDbusManager)
16
16
 
17
17
        response, err := actionRunner.Run(packageManager, "foo")
18
18
        if err != nil {
44
44
func TestUninstallActionRunnerRun_uninstallationFailure(t *testing.T) {
45
45
        actionRunner, _ := NewUninstallRunner()
46
46
 
47
 
        packageManager := &fakes.FakeWebdmManager{FailUninstall: true}
 
47
        packageManager := &fakes.FakeDbusManager{FailUninstall: true}
48
48
 
49
49
        response, err := actionRunner.Run(packageManager, "foo")
50
50
        if err == nil {