tl;dr: How is it meant to test applications that use the GitHub API? Is there some test environment which is reset regularly, can I start an own environment, or shall I “spam” GitHub.com with some test data for my purposes?
We lately bought GitHub Enterprise for the usage in our company. Our department got an own organization within it for our usage across the teams we have. Currently we’re administering all teams, repositories, memberships etc. manually via the GitHub Web Interface. This causes some troubles due to inconsistencies in naming conventions, and team memberships and people just not being familiar with GitHub and the policies we have.
So what I would like to do, is to move to a Terraform based administration (Infrastructure As A Code). Terraform has a GitHub provider which would allow us to manage the organization in a proper code workflow via PRs, Checks and Code Reviews. Instead of having many admins for all teams, they would just file a PR on the configuration repo where it is then approved or rejected. Some training will be needed here of course but having some examples/templates should solve this quickly.
The unfortunate thing is that I do not have a test environment where I could start learning about how this could work. I could register a test organization on GitHub.com or ask the admins of our GHE to give me one temporarily. But then I’m still without users to test.
Shall I just register a bunch of test users in GitHub.com for my purpose (will need likely around 10)? I could also ask some people but it just does not work out that smooth for any testing. Is there maybe a dedicated GitHub.com test environment that could be used or can I spin-up some local API environment for this? I would be even willing to just fire up a local trial GitHub Enterprise instance in a VM if this is possible.
I could not really find any recommendation or references on this topic in the docs.
This page shows some info about registering an app in your own account, but that’s more a WebHook based App which reacts on stuff happening in GH while I want to administer it.
For a GHE trial I need to get in contact with Sales which also gives me just 45 days to get started (not much if you just do this a side task).
Looking forward to get some input here.