Compare commits
No commits in common. "c8s-stream-DL1" and "stream-idm-client-rhel-8.9.0" have entirely different histories.
c8s-stream
...
stream-idm
|
@ -1 +1,2 @@
|
||||||
SOURCES/qrcode-5.1.tar.gz
|
SOURCES/qrcode-5.1.tar.gz
|
||||||
|
/qrcode-5.1.tar.gz
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
686d017fb655fa2f1d600b1a8672f5ee538ec2d6 SOURCES/qrcode-5.1.tar.gz
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# recipients: abokovoy, frenaud, kaleem, ftrivino, cheimes
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
|
@ -0,0 +1 @@
|
||||||
|
SHA512 (qrcode-5.1.tar.gz) = 67a7bb51fe2386f3b1ac0b799d3850d3ca4f61286fdc809654df3f5a1071b503707a9a3e82e595b7611dd9d7b7e74b36e19b86942fb5ad94c256cd7ca9aa02f3
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
|
dnf install -y python3-qrcode
|
||||||
|
|
||||||
|
exec ${DIR}/test_ipa_otptoken.py
|
|
@ -0,0 +1,30 @@
|
||||||
|
#!/usr/libexec/platform-python
|
||||||
|
"""Simple test for APIs used by python3-qrcode
|
||||||
|
"""
|
||||||
|
import io
|
||||||
|
import logging
|
||||||
|
import hashlib
|
||||||
|
|
||||||
|
import qrcode
|
||||||
|
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
log = logging.getLogger()
|
||||||
|
|
||||||
|
TEXT = "example data"
|
||||||
|
HASH = "4d0186bad6cb0ea83f634959bba9bd2494f2b15cc785285e0914521246452e06"
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
qr_output = io.StringIO()
|
||||||
|
qr = qrcode.QRCode()
|
||||||
|
qr.add_data(TEXT)
|
||||||
|
qr.make()
|
||||||
|
qr.print_ascii(out=qr_output, tty=False)
|
||||||
|
value = qr_output.getvalue()
|
||||||
|
print(value)
|
||||||
|
assert hashlib.sha256(value.encode('utf-8')).hexdigest() == HASH
|
||||||
|
log.info("PASS")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-scripts
|
||||||
|
tests:
|
||||||
|
- sanity.sh
|
||||||
|
files:
|
||||||
|
- test_ipa_otptoken.py
|
Loading…
Reference in New Issue