Compare commits
No commits in common. "stream-idm-DL1-rhel-8.9.0" and "c8s-stream-DL1" have entirely different histories.
stream-idm
...
c8s-stream
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
SOURCES/pyusb-1.0.0.zip
|
SOURCES/pyusb-1.0.0.zip
|
||||||
/pyusb-1.0.0.zip
|
|
||||||
|
1
.pyusb.metadata
Normal file
1
.pyusb.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
1cc42e901b580c7396830c74c87363a789e5c0cd SOURCES/pyusb-1.0.0.zip
|
@ -1,7 +0,0 @@
|
|||||||
# recipients: abokovoy, frenaud, kaleem, ftrivino, cheimes
|
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-9
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
1
sources
1
sources
@ -1 +0,0 @@
|
|||||||
SHA512 (pyusb-1.0.0.zip) = b2dbe6c194409d0a731f7f51e686b61f68a81dba4ce9facb2286299c8348eddf5991cb8de1f52c91d90dbbe98c1e4967e198650a65627c2ad65fe44d72014b37
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
"""Simple test for APIs used by python-yubico
|
|
||||||
"""
|
|
||||||
import logging
|
|
||||||
|
|
||||||
import usb.core
|
|
||||||
import usb.legacy
|
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
log = logging.getLogger()
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
for d in usb.core.find(find_all=True):
|
|
||||||
usb_device = usb.legacy.Device(d)
|
|
||||||
# import pdb; pdb.set_trace()
|
|
||||||
log.info(vars(usb_device))
|
|
||||||
assert usb_device.idVendor
|
|
||||||
assert usb_device.idProduct
|
|
||||||
usb_conf = usb_device.configurations[0]
|
|
||||||
log.info(vars(usb_conf))
|
|
||||||
usb_int = usb_conf.interfaces[0][0]
|
|
||||||
try:
|
|
||||||
usb_handle = usb_device.open()
|
|
||||||
assert usb_handle.controlMsg.__call__
|
|
||||||
usb_handle.releaseInterface()
|
|
||||||
except usb.core.USBError:
|
|
||||||
log.info("Unable to open USB device")
|
|
||||||
log.info("PASS")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
roles:
|
|
||||||
- role: standard-test-source
|
|
||||||
- role: standard-test-basic
|
|
||||||
required_packages:
|
|
||||||
- python3-pyusb
|
|
||||||
tests:
|
|
||||||
- test_ipa_yubico_api:
|
|
||||||
dir: "tests"
|
|
||||||
run: ./test_ipa_yubico_api.py
|
|
Loading…
Reference in New Issue
Block a user