mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
* added possibility to manage on prem github
* added changelog
* fixed module tests
* Update changelogs/fragments/3038-enhance_github_repo_api_url.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/source_control/github/github_repo.py
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Max Bidlingmaier <Max-Florian.Bidlingmaier@sap.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 38e70ae0e4
)
Co-authored-by: Max Bidlingmaier <maks@konsolan.de>
This commit is contained in:
parent
8cee29b8f6
commit
90be1cc838
3 changed files with 29 additions and 10 deletions
|
@ -159,7 +159,8 @@ class TestGithubRepo(unittest.TestCase):
|
|||
"name": "myrepo",
|
||||
"description": "Just for fun",
|
||||
"private": False,
|
||||
"state": "present"
|
||||
"state": "present",
|
||||
"api_url": "https://api.github.com"
|
||||
})
|
||||
|
||||
self.assertEqual(result['changed'], True)
|
||||
|
@ -177,7 +178,8 @@ class TestGithubRepo(unittest.TestCase):
|
|||
"name": "myrepo",
|
||||
"description": "Just for fun",
|
||||
"private": True,
|
||||
"state": "present"
|
||||
"state": "present",
|
||||
"api_url": "https://api.github.com"
|
||||
})
|
||||
self.assertEqual(result['changed'], True)
|
||||
self.assertEqual(result['repo']['private'], True)
|
||||
|
@ -194,7 +196,8 @@ class TestGithubRepo(unittest.TestCase):
|
|||
"name": "myrepo",
|
||||
"description": "Just for fun",
|
||||
"private": True,
|
||||
"state": "present"
|
||||
"state": "present",
|
||||
"api_url": "https://api.github.com"
|
||||
})
|
||||
self.assertEqual(result['changed'], True)
|
||||
self.assertEqual(result['repo']['private'], True)
|
||||
|
@ -211,7 +214,8 @@ class TestGithubRepo(unittest.TestCase):
|
|||
"name": "myrepo",
|
||||
"description": "Just for fun",
|
||||
"private": False,
|
||||
"state": "absent"
|
||||
"state": "absent",
|
||||
"api_url": "https://api.github.com"
|
||||
})
|
||||
self.assertEqual(result['changed'], True)
|
||||
|
||||
|
@ -227,7 +231,8 @@ class TestGithubRepo(unittest.TestCase):
|
|||
"name": "myrepo",
|
||||
"description": "Just for fun",
|
||||
"private": False,
|
||||
"state": "absent"
|
||||
"state": "absent",
|
||||
"api_url": "https://api.github.com"
|
||||
})
|
||||
self.assertEqual(result['changed'], True)
|
||||
|
||||
|
@ -243,7 +248,8 @@ class TestGithubRepo(unittest.TestCase):
|
|||
"name": "myrepo",
|
||||
"description": "Just for fun",
|
||||
"private": True,
|
||||
"state": "absent"
|
||||
"state": "absent",
|
||||
"api_url": "https://api.github.com"
|
||||
})
|
||||
self.assertEqual(result['changed'], False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue