2022-06-08 10:30:04 +02:00
|
|
|
#Possible actions:
|
|
|
|
# - create repository
|
|
|
|
# - delete repository
|
|
|
|
# - list repositories
|
|
|
|
# - list respository issues
|
|
|
|
# - list repository pull requests
|
|
|
|
# - list notifications
|
|
|
|
# - list repository tests
|
|
|
|
|
|
|
|
repositoriesMock = ["repo1", "repo2", "repo3"]
|
|
|
|
issuesMock = [
|
|
|
|
{
|
|
|
|
"name": "Issue 1",
|
|
|
|
"description": "Description of issue 1",
|
|
|
|
"status": "open"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Issue 2",
|
|
|
|
"description": "Description of issue 2",
|
|
|
|
"status": "closed"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
pullRequestMock = [
|
|
|
|
{
|
|
|
|
"name": "pull request 1",
|
|
|
|
"description": "description 1",
|
|
|
|
"state": "open"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pull request 2",
|
|
|
|
"description": "description 2",
|
|
|
|
"state": "open"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
notificationsMock = [
|
|
|
|
{
|
|
|
|
"name": "notification 1",
|
|
|
|
"description": "description 1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "notification 2",
|
|
|
|
"description": "description 2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
testMock = [
|
|
|
|
{
|
|
|
|
"name": "test1",
|
|
|
|
"description": "test1 description",
|
|
|
|
"status": "passed"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "test2",
|
|
|
|
"description": "test2 description",
|
|
|
|
"status": "failed"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
def createRepository(repositoryName):
|
2022-06-08 12:38:10 +02:00
|
|
|
pass
|
2022-06-08 10:30:04 +02:00
|
|
|
|
|
|
|
def deleteRepository(repositoryName):
|
2022-06-08 12:38:10 +02:00
|
|
|
pass
|
2022-06-08 10:30:04 +02:00
|
|
|
|
|
|
|
def listRepositories():
|
2022-06-08 12:38:10 +02:00
|
|
|
return repositoriesMock
|
2022-06-08 10:30:04 +02:00
|
|
|
|
|
|
|
def listRepositoryIssues(repositoryName):
|
2022-06-08 12:38:10 +02:00
|
|
|
return issuesMock
|
2022-06-08 10:30:04 +02:00
|
|
|
|
|
|
|
def listRepositoryPullRequests(repositoryName):
|
2022-06-08 12:38:10 +02:00
|
|
|
return pullRequestMock
|
2022-06-08 10:30:04 +02:00
|
|
|
|
|
|
|
def listNotifications():
|
2022-06-08 12:38:10 +02:00
|
|
|
return notificationsMock
|
2022-06-08 10:30:04 +02:00
|
|
|
|
|
|
|
def listRepositoryTests(repositoryName):
|
2022-06-08 12:38:10 +02:00
|
|
|
return testMock
|