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)
}