Compare commits
No commits in common. "c8s-stream-DL1" and "stream-idm-DL1-rhel-8.10.0" have entirely different histories.
c8s-stream
...
stream-idm
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
SOURCES/qrcode-5.1.tar.gz
|
SOURCES/qrcode-5.1.tar.gz
|
||||||
|
/qrcode-5.1.tar.gz
|
||||||
|
/qrcode-5.3.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
686d017fb655fa2f1d600b1a8672f5ee538ec2d6 SOURCES/qrcode-5.1.tar.gz
|
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -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}
|
@ -8,8 +8,8 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: python-%{pkgname}
|
Name: python-%{pkgname}
|
||||||
Version: 5.1
|
Version: 5.3
|
||||||
Release: 12%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Python QR Code image generator
|
Summary: Python QR Code image generator
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -212,6 +212,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 07 2024 Florence Blanc-Renaud <flo@redhat.com> - 5.3-1
|
||||||
|
- Resolves: RHEL-15090 Generation of image file fails with Python 3
|
||||||
|
|
||||||
* Wed Nov 28 2018 Tomas Orsava <torsava@redhat.com> - 5.1-12
|
* Wed Nov 28 2018 Tomas Orsava <torsava@redhat.com> - 5.1-12
|
||||||
- Require platform-python-setuptools instead of python3-setuptools
|
- Require platform-python-setuptools instead of python3-setuptools
|
||||||
- Resolves: rhbz#1654457, rhbz#1654458
|
- Resolves: rhbz#1654457, rhbz#1654458
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (qrcode-5.3.tar.gz) = 325ffb3285a4f01f59b1c708a879d6465ad4c8d066b53a15545f381dbc8de7f0b28b3d7b925bac5367de436ababf1c25c75ddbf37066e17b02d68292edd0ef5e
|
8
tests/sanity.sh
Normal file
8
tests/sanity.sh
Normal file
@ -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
|
30
tests/test_ipa_otptoken.py
Normal file
30
tests/test_ipa_otptoken.py
Normal file
@ -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()
|
10
tests/tests.yml
Normal file
10
tests/tests.yml
Normal file
@ -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
Block a user