mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
interfaces/u2f-devices: add Swissbit iShield Key (#13018)
* add Swissbit iShield Key * update test expectations
This commit is contained in:
@@ -167,6 +167,11 @@ var u2fDevices = []u2fDevice{
|
||||
VendorIDPattern: "16d0",
|
||||
ProductIDPattern: "0e90",
|
||||
},
|
||||
{
|
||||
Name: "Swissbit iShield Key",
|
||||
VendorIDPattern: "1370",
|
||||
ProductIDPattern: "0911",
|
||||
},
|
||||
}
|
||||
|
||||
const u2fDevicesConnectedPlugAppArmor = `
|
||||
|
||||
@@ -89,7 +89,7 @@ func (s *u2fDevicesInterfaceSuite) TestAppArmorSpec(c *C) {
|
||||
func (s *u2fDevicesInterfaceSuite) TestUDevSpec(c *C) {
|
||||
spec := &udev.Specification{}
|
||||
c.Assert(spec.AddConnectedPlug(s.iface, s.plug, s.slot), IsNil)
|
||||
c.Assert(spec.Snippets(), HasLen, 26)
|
||||
c.Assert(spec.Snippets(), HasLen, 27)
|
||||
c.Assert(spec.Snippets(), testutil.Contains, `# u2f-devices
|
||||
# Yubico YubiKey
|
||||
SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0113|0114|0115|0116|0120|0121|0200|0402|0403|0406|0407|0410", TAG+="snap_consumer_app"`)
|
||||
|
||||
Reference in New Issue
Block a user