Replace whole repo with latest content from branch rhel-8.8.0
Content corresponds with RHEL dist-git commit 38d89b1
This commit is contained in:
parent
a7b754990e
commit
fa1614bd41
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
8
plan.fmf
Normal file
8
plan.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
execute:
|
||||
how: tmt
|
||||
discover:
|
||||
- how: shell
|
||||
tests:
|
||||
- name: simple import
|
||||
test: python3.11 -c 'import pymysql'
|
||||
- how: fmf
|
8
tests/smoke_test.fmf
Normal file
8
tests/smoke_test.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
require:
|
||||
- mariadb-server
|
||||
- python3.11-PyMySQL
|
||||
|
||||
test: |
|
||||
systemctl start mariadb &&
|
||||
python3.11 smoke_test.py &&
|
||||
systemctl stop mariadb
|
12
tests/smoke_test.py
Normal file
12
tests/smoke_test.py
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/python3
|
||||
# Modified from
|
||||
# https://github.com/PyMySQL/PyMySQL/blob/v1.0.2/example.py
|
||||
|
||||
import pymysql
|
||||
connection = pymysql.connect(unix_socket="/var/lib/mysql/mysql.sock", db="mysql")
|
||||
cursor = connection.cursor()
|
||||
cursor.execute("SELECT Host,User FROM user")
|
||||
print(cursor.description)
|
||||
|
||||
cursor.close()
|
||||
connection.close()
|
Loading…
Reference in New Issue
Block a user