Skip to content

Instantly share code, notes, and snippets.

View eagleEggs's full-sized avatar
🍦

eagleEggs

🍦
  • It was called The Net, with that girl from the bus
  • Washington, DC
View GitHub Profile
@eagleEggs
eagleEggs / gist:5ca7e60fefcfff2cd8091bfba6acde98
Created April 19, 2022 15:48
Zephyr Scale Server API v1 Attachment Upload
import requests
url = "DOMAIN/jira/rest/atm/1.0/testrun/CYCLE-ID/attachments"
payload={}
files=[
('file', ('test.jpg', open('C://test.jpg', 'rb'), 'image/jpeg'))
@eagleEggs
eagleEggs / gist:81b12ee481680cdf9d22170aaf3eb204
Created August 20, 2022 19:15
TESTRAIL DJANGO REST FUNCTION PULL WITH TIMEFRAMES (VIEWS.py)
def puller(request):
action = request.GET.get('action', -1)
case = request.GET.get('case', -1)
timestamperbefore = request.GET.get('before', -1)
timestamperafter = request.GET.get('after', -1)
print(timestamperbefore)
print(timestamperafter)
tr_endpoint = "https://"
client = tr.APIClient(tr_endpoint)