summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add basic test for copy commandadd-copy-testsRichard Maw2013-11-041-0/+27
|
* Also log the username and keytag in the syslog during gitano-authDaniel Silverstone2013-10-031-2/+4
|
* Merge remote-tracking branch 'baserock/baserock/richardipsum/syslog'Daniel Silverstone2013-10-038-13/+132
|\ | | | | | | | | Also fix up test tool so that tests do not fail now that we depend on the SSH_CLIENT environment variable coming from the caller.
| * Add syslogging to gitano-post-receive-hookRichard Ipsum2013-10-021-8/+29
| |
| * Add syslogging to gitano-update-sshRichard Ipsum2013-10-021-0/+3
| |
| * Add syslogging to gitano-update-hookRichard Ipsum2013-10-021-1/+10
| |
| * Add syslogging to gitano-pre-receive-hookRichard Ipsum2013-10-021-2/+10
| |
| * Add syslogging to gitano-authRichard Ipsum2013-10-021-0/+12
| |
| * Add syslog support to gitano.logRichard Ipsum2013-10-021-0/+62
|/
* Add another ls scenarioDaniel Silverstone2013-08-251-0/+17
|
* Merge branch 'dsilvers/testing'Daniel Silverstone2013-08-2525-0/+662
|\ | | | | | | We know it's incomplete, but meh.
| * Support the new yarn --env argumentDaniel Silverstone2013-08-251-2/+2
| |
| * Initial scenario for lsDaniel Silverstone2013-07-191-0/+20
| |
| * Clean up test target now that yarn reports empty inputsDaniel Silverstone2013-07-191-9/+0
| |
| * Add 'fsck' test yarnDaniel Silverstone2013-06-231-0/+64
| |
| * Report number of empty yarns to encourage more test writingDaniel Silverstone2013-06-231-0/+9
| |
| * Add checks for 'gc'Daniel Silverstone2013-06-231-0/+68
| |
| * Additional scenario for the 'as' commandDaniel Silverstone2013-06-221-0/+34
| |
| * Support testing of 'as'Daniel Silverstone2013-06-223-11/+54
| |
| * Add empty command yarnsDaniel Silverstone2013-06-2221-1/+28
| | | | | | | | | | | | | | | | | | In order that we can test every command individually, we want a yarn for each command. These tests should be run before any of the more complex scenarios. As such, we group them all under 02-commands. For now, these yarn files are empty. As time goes by we will add tests for everything these commands can do.
| * Add a repo creation scenarioDaniel Silverstone2013-06-221-0/+25
| |
| * Some more basic testing scenarios.Daniel Silverstone2013-06-222-0/+49
| | | | | | | | | | | | The two scenarios added here verify some basics of users. That the administration user can ls and see gitano-admin, that it is a member thereof and that a fresh user cannot and is not.
| * Initial testing tool, library and basic testDaniel Silverstone2013-06-225-0/+332
| | | | | | | | | | | | | | | | The tool (testing/gitano-test-tool.in) provides a bunch of complex behaviours which are then used by the scenario test implementations in testing/library.yarn. From there, those implementations for scenario tests which are in the rest of the .yarn files in testing/. A top level 'make test' will invoke the test suite.
* | ACTION: Correct mistake regarding HTTP clientDaniel Silverstone2013-06-241-1/+1
|/ | | | | | | | Unfortunately the fix to prevent assert()s in the HTTP client would instead result in silent death in all cases. This fixes that, by correctly locating the response in the 'ok' variable, ready for matching.
* Fix hiccough in error pathDaniel Silverstone2013-06-041-1/+2
|
* MAKEFILE: Also install gitano.copycommandDaniel Silverstone2013-06-041-1/+1
|
* Merge remote-tracking branch 'richardmaw/add-copy-command-rebase3'Daniel Silverstone2013-05-274-5/+319
|\ | | | | | | Reviewed-By: Daniel Silverstone <dsilvers@digital-scurf.org>
| * commands: add copy <source> <target>Richard Maw2013-05-272-0/+110
| |
| * repository: don't break a copy in progressRichard Maw2013-05-271-0/+10
| | | | | | | | | | | | | | | | | | | | This attempts to create the target repository outside the call to util.copy_dir(), since internally it uses mkdir_p, which doesn't distinguish between a repository that already exists. If this check is not made, then it will fail to create a file inside the repository since it already exists, then attempt to clean up after itself, possibly silently breaking the in progress copy.
| * repository: add a copy_to methodRichard Maw2013-05-271-0/+51
| | | | | | | | | | This will create a repository in a different path, so it does not appear until the copy is complete.
| * util: add recursive directory copy functionsRichard Maw2013-05-271-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is complicated enough it could be split out into its own module. The most important function is copy_dir, which along with the source and target, is given an optional table of functions, which can be used to change its behaviour for different types of files. It may also be given a filter function to determine which files to process. The default function excludes . and .. of each directory from the set of directories to process. It is given the parent directory, filename and fileinfo of every file to process, so it may exclude based on any combination of location, file name and file type by returning true.
| * util: add hardlink_file and copy_symlink functionsRichard Maw2013-05-271-0/+24
| | | | | | | | | | | | | | | | | | hardlink file converts from luxio's raw interface to boolean success and error message return values, which are used elsewhere in the codebase. copy_symlink creates a symlink with the same target as the source symlink.
| * util: add copy_fileRichard Maw2013-05-271-0/+44
| |
| * repository: use path_join in some placesRichard Maw2013-05-231-4/+4
| | | | | | | | | | It's longer in these cases, but it's more explicitly creating a path when using a function for it.
| * util: add path_join functionRichard Maw2013-05-231-0/+5
| | | | | | | | | | | | | | | | This is like python's os.path.join. It is shorter to write `util.path_join("foo", "bar", "baz")` than `table.concat({"foo", "bar", "baz"}, "/")`, and I think it looks nicer. If any special path handling is later required, then it can go there.
| * command: fix a typo in rename's error handlerRichard Maw2013-05-231-1/+1
| |
* | Merge branch 'dsilvers/add-commands'Daniel Silverstone2013-05-276-88/+268
|\ \ | | | | | | | | | Reviewd-By: Richard Maw <richard.maw@gmail.com>
| * | SKEL: Add setreadme to the operational defines.Daniel Silverstone2013-05-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Adds op_set_readme to the defines in the skeleton ruleset. This also adds op_set_readme to op_is_config since the README is essentially configuration for the project. Projects can perform deeper checks themselves if they wish, but the global ruleset applies the same to README changes as to everything else to do with project configuration.
| * | COMMAND: Add readme set subcommandDaniel Silverstone2013-05-271-14/+41
| | | | | | | | | | | | Add to the readme command the ability to alter the README of a repository.
| * | REPOSITORY: Add set_readme method.Daniel Silverstone2013-05-271-0/+20
| | | | | | | | | | | | | | | Add a set_readme method to gitano.repository so that we can programmatically change the README.
| * | SKEL: Update defines for rename commandsDaniel Silverstone2013-05-271-2/+4
| | | | | | | | | | | | | | | This updates the defines in the skeleton gitano-admin ruleset to include the user rename and group rename commands.
| * | COMMANDS: Add reasons to generate_confirmation callsDaniel Silverstone2013-05-272-4/+5
| | | | | | | | | | | | | | | This adds reasons to all generate_confirmation calls which were still lacking them.
| * | ADMINCOMMAND: Fix group del to remove subgroup membershipDaniel Silverstone2013-05-271-0/+8
| | | | | | | | | | | | | | | | | | Before this patch, if you used 'group del' to remove a group which was a subgroup member of another group, the resulting config would not parse. This fixes that.
| * | ADMINCOMMAND: Add group renameDaniel Silverstone2013-05-271-5/+42
| | | | | | | | | | | | | | | This adds a group rename command to allow the administrator to easily rename a group including all subgroup memberships.
| * | ADMINCOMMAND: Fix user delete for group membershipDaniel Silverstone2013-05-271-0/+1
| | | | | | | | | | | | | | | Prior to this patch, if you did 'user delete' on a user in a group then the group membership change was not committed.
| * | ADMINCOMMAND: Add user rename commandDaniel Silverstone2013-05-271-7/+50
| | | | | | | | | | | | Add a rename command for users.
| * | REPOSITORY: Allow tokens to be customised with notesDaniel Silverstone2013-05-271-2/+2
| | | | | | | | | | | | | | | | | | Given we now use repository tokens in multiple places, this ensures that the tokens can be customised with notes. This might be to ensure that a delete user token doesn't match a rename user token for example.
| * | REPOCOMMAND: Add fsck commandDaniel Silverstone2013-05-271-1/+20
| | | | | | | | | | | | | | | This adds an fsck command to the repocommand module. This allows git-fsck to be invoked on repositories in a Gitano instance.
| * | REPOCOMMAND: Shunt gc and count-objects to gitano.repocommandDaniel Silverstone2013-05-273-53/+74
|/ / | | | | | | | | | | | | | | Move the gc and count-objects commands to a separate repocommand module so that we can group fsck in with them neatly. This new module is for commands which operate neatly on a repository with little to no extra dependencies.
* | README: Include PCRE dependency informationDaniel Silverstone2013-05-231-0/+2
| |