Restore test_run_ci_on_github_repo.bats #72
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Restore the tests in
test_run_ci_on_github_repo.bats
in the updated code, which has been restructured and improved towards Google Bash Style guide compliance. This requires some effort. The first test of this file passes. Currently the second test is being restored:An issue in this test is that it requires using the GitLab personal access token, which has not yet been generated by the
.install_gitlab.sh -s -r
command. This test requires that token because it runs:From
which calls:
which asks the repositories from the GitLab API using the GitLab personal access token. Additionally, the function to manually create this token:
in file:
create_personal_access_token.sh
throws an error.Solution
create_gitlab_personal_access_token()
works.get_project_list(){
works.copy_github_branches_with_yaml_to_gitlab_repo() {
works.Then restore the remainder of the tests.
Then create/call the receipe to run this GitLab CI on GitHub from `./install_gitlab.sh -s -r
Then create a function that loops over all the repositories of a GitHub user and runs the CI on them
Then create a monitoring script that detects changes in the GitHub repo and runs the CI on them.
Create a separate issue to: Write a test that verifies
create_gitlab_personal_access_token()
works.Create a separate issue to verify/ensure (and test) that the
install_gitlab.sh -s -r
command automatically generates this GitLab token. Ps. I expect that the code does do that automatically (if it works) but that it fails at doing so because of the error that is thrown by thecreate_gitlab_personal_access_token()
function. So perhaps before creating a call to the function, see if such a call already exists.The text was updated successfully, but these errors were encountered: