diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-12-25 01:04:07 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-12-25 01:04:07 +0200 |
commit | 2c38482061c5f9f4485c421f3faae92e49afcd2a (patch) | |
tree | 8f76ab334af3e630d4be0df955e56f830ceee831 /resources | |
parent | 59319c4a0127766028aaf6f8404e0d3e239beba2 (diff) | |
download | git_service-master.tar.gz git_service-master.tar.bz2 git_service-master.zip |
test_config_read: tests if config can be read normally
test_make_repo: checks if repo has been created and if cgitrepos updated
Diffstat (limited to 'resources')
-rw-r--r-- | resources/test/config.test.0.json | 11 | ||||
-rw-r--r-- | resources/test/config.test.1.json | 11 | ||||
-rw-r--r-- | resources/test/testcgitrepos | 12 | ||||
-rw-r--r-- | resources/test/testcgitrepos.1.test | 15 |
4 files changed, 49 insertions, 0 deletions
diff --git a/resources/test/config.test.0.json b/resources/test/config.test.0.json new file mode 100644 index 0000000..f7c3851 --- /dev/null +++ b/resources/test/config.test.0.json @@ -0,0 +1,11 @@ +{ + "authorized_owners": [ + { + "name": "johndoe", + "email": "eg@example.com", + "gpg_pubkey_id": "XXXXXXXXXXXXXXXX" + } + ], + "cgitrepos_file_path": "/path/to/cgitrepos", + "git_host_dir_path": "/path/to/git/host/dir" +} diff --git a/resources/test/config.test.1.json b/resources/test/config.test.1.json new file mode 100644 index 0000000..798491a --- /dev/null +++ b/resources/test/config.test.1.json @@ -0,0 +1,11 @@ +{ + "authorized_owners": [ + { + "name": "johndoe", + "email": "eg@example.com", + "gpg_pubkey_id": "XXXXXXXXXXXXXXXX" + } + ], + "cgitrepos_file_path": "$TEST_CGITREPOS_PATH$", + "git_host_dir_path": "$TEST_GIT_REPOS_DIR_PATH$" +} diff --git a/resources/test/testcgitrepos b/resources/test/testcgitrepos new file mode 100644 index 0000000..755ff35 --- /dev/null +++ b/resources/test/testcgitrepos @@ -0,0 +1,12 @@ +section=my_code_section +repo.url=mock_repo_1 +repo.path=/path/to/mock_repo_1 +repo.desc=foo +repo.owner=bar + +section=put_test_repo_here +repo.url=mock_repo_1 +repo.path=/path/to/mock_repo_1 +repo.desc=foo +repo.owner=bar + diff --git a/resources/test/testcgitrepos.1.test b/resources/test/testcgitrepos.1.test new file mode 100644 index 0000000..9d7ee8a --- /dev/null +++ b/resources/test/testcgitrepos.1.test @@ -0,0 +1,15 @@ +section=my_code_section +repo.url=mock_repo_1 +repo.path=/path/to/mock_repo_1 +repo.desc=foo +repo.owner=bar +section=put_test_repo_here +repo.url=mock_repo_1 +repo.path=/path/to/mock_repo_1 +repo.desc=foo +repo.owner=bar +section=custom +repo.url=test +repo.path=/home/stvnliu/Development/git_service/resources/test/put_git_repo_here/test.git +repo.desc=test description +repo.owner=testuser
\ No newline at end of file |