Ubuntu Pastebin

Paste from Samuele Pedroni at Fri, 14 Oct 2016 18:34:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff --git a/interfaces/builtin/basedeclaration_test.go b/interfaces/builtin/basedeclaration_test.go
index c93ed27..1fe61ac 100644
--- a/interfaces/builtin/basedeclaration_test.go
+++ b/interfaces/builtin/basedeclaration_test.go
@@ -207,14 +207,16 @@ func (s *baseDeclSuite) TestAutoConnectionLxdSupport(c *C) {
        // allow auto-connect to particular snap id
        plugsSlots := `
 slots:
-  docker-support:
+  lxd-support:
     allow-auto-connection:
       plug-snap-id:
         - J60k4JY0HppjwOjW8dZdYc8obXKxujRu
 `
 
        lxdDecl := s.mockSnapDecl(c, "lxd", "J60k4JY0HppjwOjW8dZdYc8obXKxujRu", "canonical", plugsSlots)
-       cand.PlugSnapDeclaration = lxdDecl
+
+
+       cand.SlotSnapDeclaration = lxdDecl
        err = cand.CheckAutoConnect()
        c.Check(err, IsNil)
 }
@@ -225,14 +227,14 @@ func (s *baseDeclSuite) TestAutoConnectionLxdSupportNoMatch(c *C) {
        // don't allow auto-connect to non-matching snap id
        plugsSlots := `
 slots:
-  docker-support:
+  lxd-support:
     allow-auto-connection:
       plug-snap-id:
         - nonmatchingnonmatchingnonmatchin
 `
 
        lxdDecl := s.mockSnapDecl(c, "lxd", "J60k4JY0HppjwOjW8dZdYc8obXKxujRu", "canonical", plugsSlots)
-       cand.PlugSnapDeclaration = lxdDecl
+       cand.SlotSnapDeclaration = lxdDecl
        err := cand.CheckAutoConnect()
        c.Check(err, NotNil)
 }
Download as text