mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-21 20:46:42 +00:00
25 lines
491 B
Python
25 lines
491 B
Python
import time
|
|
from jira import JIRA
|
|
|
|
# Connect to the Jira instance
|
|
jira = JIRA(
|
|
server="https://jira.example.com",
|
|
basic_auth=("user", "password")
|
|
)
|
|
|
|
# Continuously create and delete issues
|
|
while True:
|
|
# Create an issue
|
|
issue = jira.create_issue(
|
|
project="PROJECT",
|
|
summary="Stress test issue",
|
|
description="This is a stress test issue.",
|
|
issuetype={"name": "Bug"}
|
|
)
|
|
|
|
# Delete the issue
|
|
jira.delete_issue(issue)
|
|
|
|
time.sleep(1)
|
|
|