interfaces/u2f-devices: add Swissbit iShield Key (#13018)

* add Swissbit iShield Key

* update test expectations
This commit is contained in:
Claus Steuer
2023-08-31 17:49:44 +02:00
committed by GitHub
parent 65720cdcbf
commit e2876d8765
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -167,6 +167,11 @@ var u2fDevices = []u2fDevice{
VendorIDPattern: "16d0",
ProductIDPattern: "0e90",
},
{
Name: "Swissbit iShield Key",
VendorIDPattern: "1370",
ProductIDPattern: "0911",
},
}
const u2fDevicesConnectedPlugAppArmor = `
+1 -1
View File
@@ -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"`)