gritano 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. data/README.rdoc +1 -1
  2. data/VERSION +1 -1
  3. data/features/data/local_commands/repo_add_tmp_jeka_git.txt +1 -0
  4. data/features/data/local_commands/repo_add_tmp_p_lang_git.txt +1 -0
  5. data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio.txt +1 -0
  6. data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
  7. data/features/data/local_commands/repo_list.txt +6 -0
  8. data/features/data/local_commands/repo_read_add_tmp_gritano_git_arybonadio.txt +1 -0
  9. data/features/data/local_commands/repo_read_add_tmp_gritano_git_jessicaeto.txt +1 -0
  10. data/features/data/local_commands/repo_read_add_tmp_p_lang_git_jessicaeto.txt +1 -0
  11. data/features/data/local_commands/repo_read_rm_tmp_jeka_git_aribonadio.txt +1 -0
  12. data/features/data/local_commands/repo_read_rm_tmp_jeka_git_igorbonadio.txt +1 -0
  13. data/features/data/local_commands/repo_read_rm_tmp_p_lang_git_igorbonadio.txt +1 -0
  14. data/features/data/local_commands/repo_rm_tmp_jeka_git.txt +1 -0
  15. data/features/data/local_commands/repo_rm_tmp_p_lang_git.txt +1 -0
  16. data/features/data/local_commands/repo_user_list_tmp_jeka_git.txt +6 -0
  17. data/features/data/local_commands/repo_user_list_tmp_ruby_git.txt +1 -0
  18. data/features/data/local_commands/repo_write_add_tmp_gritano_git_arybonadio.txt +1 -0
  19. data/features/data/local_commands/repo_write_add_tmp_gritano_git_jessicaeto.txt +1 -0
  20. data/features/data/local_commands/repo_write_add_tmp_p_lang_git_jessicaeto.txt +1 -0
  21. data/features/data/local_commands/repo_write_rm_tmp_gritano_git_arybonadio.txt +1 -0
  22. data/features/data/local_commands/repo_write_rm_tmp_gritano_git_igorbonadio.txt +1 -0
  23. data/features/data/local_commands/repo_write_rm_tmp_p_lang_git_igorbonadio.txt +1 -0
  24. data/features/data/local_commands/user_add_igorbonadio.txt +1 -0
  25. data/features/data/local_commands/user_add_jose.txt +1 -0
  26. data/features/data/local_commands/user_admin_add_arybonadio.txt +1 -0
  27. data/features/data/local_commands/user_admin_add_igorbonadio.txt +1 -0
  28. data/features/data/local_commands/user_admin_rm_arybonadio.txt +1 -0
  29. data/features/data/local_commands/user_admin_rm_igorbonadio.txt +1 -0
  30. data/features/data/local_commands/user_key_add_igorbonadio_marvin.txt +1 -0
  31. data/features/data/local_commands/user_key_add_userrr_marvino.txt +1 -0
  32. data/features/data/local_commands/user_key_list_arybonadio.txt +1 -0
  33. data/features/data/local_commands/user_key_list_igorbonadio.txt +5 -0
  34. data/features/data/local_commands/user_key_rm_igorbonadio_eva.txt +1 -0
  35. data/features/data/local_commands/user_key_rm_igorbonadio_marvino.txt +1 -0
  36. data/features/data/local_commands/user_list.txt +6 -0
  37. data/features/data/local_commands/user_repo_list_arybonadio.txt +1 -0
  38. data/features/data/local_commands/user_repo_list_igorbonadio.txt +6 -0
  39. data/features/data/local_commands/user_rm_igorbonadio.txt +1 -0
  40. data/features/data/local_commands/user_rm_jose.txt +1 -0
  41. data/features/data/local_commands/version.txt +1 -0
  42. data/features/data/local_help.txt +27 -0
  43. data/features/data/remote_commands/admin_help_igorbonadio.txt +27 -0
  44. data/features/data/remote_commands/admin_help_jessicaeto.txt +27 -0
  45. data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_igorbonadio.txt +1 -0
  46. data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_jessicaeto.txt +1 -0
  47. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio.txt +1 -0
  48. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_igorbonadio.txt +1 -0
  49. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
  50. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_igorbonadio.txt +1 -0
  51. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_jessicaeto.txt +1 -0
  52. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_jessicaeto.txt +1 -0
  53. data/features/data/remote_commands/admin_repo_list_igorbonadio.txt +6 -0
  54. data/features/data/remote_commands/admin_repo_list_jessicaeto.txt +1 -0
  55. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_igorbonadio.txt +1 -0
  56. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_jessicaeto.txt +1 -0
  57. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +1 -0
  58. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +1 -0
  59. data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +1 -0
  60. data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +1 -0
  61. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_igorbonadio.txt +1 -0
  62. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_jessicaeto.txt +1 -0
  63. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_igorbonadio.txt +1 -0
  64. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_jessicaeto.txt +1 -0
  65. data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +1 -0
  66. data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
  67. data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_igorbonadio.txt +1 -0
  68. data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_jessicaeto.txt +1 -0
  69. data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_igorbonadio.txt +1 -0
  70. data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_jessicaeto.txt +1 -0
  71. data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_igorbonadio.txt +6 -0
  72. data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_jessicaeto.txt +1 -0
  73. data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_igorbonadio.txt +1 -0
  74. data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_jessicaeto.txt +1 -0
  75. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_igorbonadio.txt +1 -0
  76. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_jessicaeto.txt +1 -0
  77. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +1 -0
  78. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +1 -0
  79. data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +1 -0
  80. data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +1 -0
  81. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_igorbonadio.txt +1 -0
  82. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_jessicaeto.txt +1 -0
  83. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_igorbonadio.txt +1 -0
  84. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_jessicaeto.txt +1 -0
  85. data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +1 -0
  86. data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
  87. data/features/data/remote_commands/admin_user_add_igorbonadio_igorbonadio.txt +1 -0
  88. data/features/data/remote_commands/admin_user_add_igorbonadio_jessicaeto.txt +1 -0
  89. data/features/data/remote_commands/admin_user_add_jose_igorbonadio.txt +1 -0
  90. data/features/data/remote_commands/admin_user_add_jose_jessicaeto.txt +1 -0
  91. data/features/data/remote_commands/admin_user_admin_add_arybonadio_igorbonadio.txt +1 -0
  92. data/features/data/remote_commands/admin_user_admin_add_arybonadio_jessicaeto.txt +1 -0
  93. data/features/data/remote_commands/admin_user_admin_add_igorbonadio_igorbonadio.txt +1 -0
  94. data/features/data/remote_commands/admin_user_admin_add_igorbonadio_jessicaeto.txt +1 -0
  95. data/features/data/remote_commands/admin_user_admin_rm_arybonadio_igorbonadio.txt +1 -0
  96. data/features/data/remote_commands/admin_user_admin_rm_arybonadio_jessicaeto.txt +1 -0
  97. data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_igorbonadio.txt +1 -0
  98. data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_jessicaeto.txt +1 -0
  99. data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_igorbonadio.txt +1 -0
  100. data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_jessicaeto.txt +1 -0
  101. data/features/data/remote_commands/admin_user_key_add_userrr_marvino_igorbonadio.txt +1 -0
  102. data/features/data/remote_commands/admin_user_key_add_userrr_marvino_jessicaeto.txt +1 -0
  103. data/features/data/remote_commands/admin_user_key_list_arybonadio_igorbonadio.txt +1 -0
  104. data/features/data/remote_commands/admin_user_key_list_arybonadio_jessicaeto.txt +1 -0
  105. data/features/data/remote_commands/admin_user_key_list_igorbonadio_igorbonadio.txt +5 -0
  106. data/features/data/remote_commands/admin_user_key_list_igorbonadio_jessicaeto.txt +1 -0
  107. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_igorbonadio.txt +1 -0
  108. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_jessicaeto.txt +1 -0
  109. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_igorbonadio.txt +1 -0
  110. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_jessicaeto.txt +1 -0
  111. data/features/data/remote_commands/admin_user_list_igorbonadio.txt +6 -0
  112. data/features/data/remote_commands/admin_user_list_jessicaeto.txt +1 -0
  113. data/features/data/remote_commands/admin_user_repo_list_arybonadio_igorbonadio.txt +1 -0
  114. data/features/data/remote_commands/admin_user_repo_list_arybonadio_jessicaeto.txt +1 -0
  115. data/features/data/remote_commands/admin_user_repo_list_igorbonadio_igorbonadio.txt +6 -0
  116. data/features/data/remote_commands/admin_user_repo_list_igorbonadio_jessicaeto.txt +1 -0
  117. data/features/data/remote_commands/admin_user_rm_igorbonadio_igorbonadio.txt +1 -0
  118. data/features/data/remote_commands/admin_user_rm_igorbonadio_jessicaeto.txt +1 -0
  119. data/features/data/remote_commands/admin_user_rm_jose_igorbonadio.txt +1 -0
  120. data/features/data/remote_commands/admin_user_rm_jose_jessicaeto.txt +1 -0
  121. data/features/data/remote_commands/admin_version_igorbonadio.txt +13 -0
  122. data/features/data/remote_commands/admin_version_jessicaeto.txt +1 -0
  123. data/features/data/remote_commands/help_igorbonadio.txt +13 -0
  124. data/features/data/remote_commands/help_jessicaeto.txt +13 -0
  125. data/features/data/remote_commands/invalid_command_igorbonadio.txt +13 -0
  126. data/features/data/remote_commands/invalid_command_jessicaeto.txt +13 -0
  127. data/features/data/remote_commands/key_add_keyname_igorbonadio.txt +1 -0
  128. data/features/data/remote_commands/key_add_keyname_jessicaeto.txt +1 -0
  129. data/features/data/remote_commands/key_list_igorbonadio.txt +5 -0
  130. data/features/data/remote_commands/key_list_jessicaeto.txt +5 -0
  131. data/features/data/remote_commands/key_rm_hal_igorbonadio.txt +1 -0
  132. data/features/data/remote_commands/key_rm_hal_jessicaeto.txt +1 -0
  133. data/features/data/remote_commands/repo_list_igorbonadio.txt +6 -0
  134. data/features/data/remote_commands/repo_list_jessicaeto.txt +5 -0
  135. data/features/data/remote_commands/version_igorbonadio.txt +1 -0
  136. data/features/data/remote_commands/version_jessicaeto.txt +1 -0
  137. data/features/install.feature +40 -0
  138. data/features/local.feature +80 -0
  139. data/features/remote.feature +156 -0
  140. data/features/step_definitions/background_step.rb +24 -0
  141. data/features/step_definitions/install_step.rb +30 -0
  142. data/features/step_definitions/local_step.rb +25 -0
  143. data/features/step_definitions/remote_step.rb +49 -0
  144. data/gritano.gemspec +142 -1
  145. data/lib/gritano/cli.rb +1 -1
  146. data/lib/gritano/console/remote.rb +8 -2
  147. data/lib/gritano/models/user.rb +0 -6
  148. data/spec/model_user_spec.rb +0 -26
  149. metadata +143 -2
@@ -0,0 +1,6 @@
1
+ +-------------+
2
+ | user |
3
+ +-------------+
4
+ | igorbonadio |
5
+ | jessicaeto |
6
+ +-------------+
@@ -0,0 +1 @@
1
+ error: User arybonadio is not registered
@@ -0,0 +1,6 @@
1
+ +-----------------+
2
+ | repositories |
3
+ +-----------------+
4
+ | tmp/gritano.git |
5
+ | tmp/jeka.git |
6
+ +-----------------+
@@ -0,0 +1 @@
1
+ error: User jose could not be removed.
@@ -0,0 +1,13 @@
1
+ ssh git@host.com [command]
2
+
3
+ Examples:
4
+ ssh git@host.com version
5
+ ssh git@host.com help
6
+ ssh git@host.com repo:list
7
+ ssh git@host.com key:list
8
+ ssh git@host.com key:add keyname < key.pub
9
+ ssh git@host.com key:rm keyname
10
+ ssh git@host.com admin:help
11
+
12
+ --
13
+ v{{VERSION}}
@@ -0,0 +1 @@
1
+ error: access denied
@@ -0,0 +1,13 @@
1
+ ssh git@host.com [command]
2
+
3
+ Examples:
4
+ ssh git@host.com version
5
+ ssh git@host.com help
6
+ ssh git@host.com repo:list
7
+ ssh git@host.com key:list
8
+ ssh git@host.com key:add keyname < key.pub
9
+ ssh git@host.com key:rm keyname
10
+ ssh git@host.com admin:help
11
+
12
+ --
13
+ v{{VERSION}}
@@ -0,0 +1,13 @@
1
+ ssh git@host.com [command]
2
+
3
+ Examples:
4
+ ssh git@host.com version
5
+ ssh git@host.com help
6
+ ssh git@host.com repo:list
7
+ ssh git@host.com key:list
8
+ ssh git@host.com key:add keyname < key.pub
9
+ ssh git@host.com key:rm keyname
10
+ ssh git@host.com admin:help
11
+
12
+ --
13
+ v{{VERSION}}
@@ -0,0 +1,13 @@
1
+ ssh git@host.com [command]
2
+
3
+ Examples:
4
+ ssh git@host.com version
5
+ ssh git@host.com help
6
+ ssh git@host.com repo:list
7
+ ssh git@host.com key:list
8
+ ssh git@host.com key:add keyname < key.pub
9
+ ssh git@host.com key:rm keyname
10
+ ssh git@host.com admin:help
11
+
12
+ --
13
+ v{{VERSION}}
@@ -0,0 +1,13 @@
1
+ ssh git@host.com [command]
2
+
3
+ Examples:
4
+ ssh git@host.com version
5
+ ssh git@host.com help
6
+ ssh git@host.com repo:list
7
+ ssh git@host.com key:list
8
+ ssh git@host.com key:add keyname < key.pub
9
+ ssh git@host.com key:rm keyname
10
+ ssh git@host.com admin:help
11
+
12
+ --
13
+ v{{VERSION}}
@@ -0,0 +1 @@
1
+ Key added successfully.
@@ -0,0 +1 @@
1
+ Key added successfully.
@@ -0,0 +1,5 @@
1
+ +------+
2
+ | keys |
3
+ +------+
4
+ | eva |
5
+ +------+
@@ -0,0 +1,5 @@
1
+ +------+
2
+ | keys |
3
+ +------+
4
+ | hal |
5
+ +------+
@@ -0,0 +1 @@
1
+ error: Key could not be removed.
@@ -0,0 +1 @@
1
+ Key removed successfully.
@@ -0,0 +1,6 @@
1
+ +-----------------+
2
+ | repositories |
3
+ +-----------------+
4
+ | tmp/gritano.git |
5
+ | tmp/jeka.git |
6
+ +-----------------+
@@ -0,0 +1,5 @@
1
+ +--------------+
2
+ | repositories |
3
+ +--------------+
4
+ | tmp/jeka.git |
5
+ +--------------+
@@ -0,0 +1,40 @@
1
+ Feature: Setup
2
+ In order to set up a git server
3
+ As a git user
4
+ I want to install gritano
5
+
6
+ Scenario: Gritano is not installed
7
+ Given I start the gritano console but gritano is not installed
8
+ When I execute any command
9
+ Then I should see the error: "Error: First run 'gritano setup:prepare && gritano setup:install'"
10
+
11
+ Scenario: Git is not installed
12
+ Given I start the gritano console but gritano is not installed
13
+ When I execute "help"
14
+ Then I should see the local help
15
+
16
+ Scenario: Gritano is not installed
17
+ Given I start the gritano console but gritano is not installed
18
+ When I execute "help"
19
+ Then I should see the local help
20
+
21
+ Scenario: Git is not installed
22
+ Given I start the gritano console but gritano is not installed
23
+ When I execute "version"
24
+ Then I should see a message
25
+
26
+ Scenario: Gritano is not installed
27
+ Given I start the gritano console but gritano is not installed
28
+ When I execute "version"
29
+ Then I should see a message
30
+
31
+ Scenario: Install
32
+ Given I start the gritano console but gritano is not installed
33
+ When I install it
34
+ Then I should see that gritano was successful installed
35
+
36
+ Scenario: Update
37
+ Given I start the gritano console
38
+ When I update it
39
+ Then I should see that gritano was successful updated
40
+
@@ -0,0 +1,80 @@
1
+ Feature: Local access
2
+ In order to use gritano locally
3
+ As a git user
4
+ I want to execute some commands
5
+
6
+ Background:
7
+ Given the following users exist:
8
+ | login | admin |
9
+ | igorbonadio | true |
10
+ | jessicaeto | false |
11
+
12
+ And the following keys exist:
13
+ | login | key |
14
+ | igorbonadio | eva |
15
+ | jessicaeto | hal |
16
+
17
+ And the following repositories exist:
18
+ | name |
19
+ | tmp/gritano.git |
20
+ | tmp/jeka.git |
21
+
22
+ And the following permissions exist:
23
+ | user | repo | access |
24
+ | igorbonadio | tmp/gritano.git | read |
25
+ | igorbonadio | tmp/gritano.git | write |
26
+ | igorbonadio | tmp/jeka.git | read |
27
+ | jessicaeto | tmp/jeka.git | read |
28
+ | jessicaeto | tmp/jeka.git | write |
29
+
30
+ Scenario: Get help
31
+ Given I start the gritano console
32
+ When I execute "help"
33
+ Then I should see the local help
34
+
35
+ Scenario Outline: Execute command
36
+ Given I start the gritano console
37
+ When I execute "<command>"
38
+ Then I should see a message
39
+ Examples:
40
+ | command |
41
+ | version |
42
+ | user:add jose |
43
+ | user:key:add igorbonadio marvin |
44
+ | user:key:rm igorbonadio eva |
45
+ | user:rm igorbonadio |
46
+ | user:list |
47
+ | user:key:list igorbonadio |
48
+ | user:repo:list igorbonadio |
49
+ | user:admin:add igorbonadio |
50
+ | user:admin:rm igorbonadio |
51
+ | repo:add tmp/p-lang.git |
52
+ | repo:add tmp/p-lang.git igorbonadio |
53
+ | repo:add tmp/p-lang.git igorbonadio jessicaeto |
54
+ | repo:rm tmp/jeka.git |
55
+ | repo:read:add tmp/gritano.git jessicaeto |
56
+ | repo:write:add tmp/gritano.git jessicaeto |
57
+ | repo:read:rm tmp/jeka.git igorbonadio |
58
+ | repo:write:rm tmp/gritano.git igorbonadio |
59
+ | repo:list |
60
+ | repo:user:list tmp/jeka.git |
61
+ | user:add igorbonadio |
62
+ | user:rm jose |
63
+ | user:key:add userrr marvino |
64
+ | user:key:rm igorbonadio marvino |
65
+ | user:key:list arybonadio |
66
+ | user:repo:list arybonadio |
67
+ | user:admin:add arybonadio |
68
+ | user:admin:rm arybonadio |
69
+ | repo:add tmp/jeka.git |
70
+ | repo:rm tmp/p-lang.git |
71
+ | repo:read:add tmp/gritano.git arybonadio |
72
+ | repo:read:add tmp/p-lang.git jessicaeto |
73
+ | repo:write:add tmp/gritano.git arybonadio |
74
+ | repo:write:add tmp/p-lang.git jessicaeto |
75
+ | repo:read:rm tmp/jeka.git aribonadio |
76
+ | repo:read:rm tmp/p-lang.git igorbonadio |
77
+ | repo:write:rm tmp/gritano.git arybonadio |
78
+ | repo:write:rm tmp/p-lang.git igorbonadio |
79
+ | repo:user:list tmp/ruby.git |
80
+
@@ -0,0 +1,156 @@
1
+ Feature: Remote access
2
+ In order to use gritano remotely
3
+ As a user
4
+ I want to execute some commands
5
+
6
+ Background:
7
+ Given the following users exist:
8
+ | login | admin |
9
+ | igorbonadio | true |
10
+ | jessicaeto | false |
11
+
12
+ And the following keys exist:
13
+ | login | key |
14
+ | igorbonadio | eva |
15
+ | jessicaeto | hal |
16
+
17
+ And the following repositories exist:
18
+ | name |
19
+ | tmp/gritano.git |
20
+ | tmp/jeka.git |
21
+
22
+ And the following permissions exist:
23
+ | user | repo | access |
24
+ | igorbonadio | tmp/gritano.git | read |
25
+ | igorbonadio | tmp/gritano.git | write |
26
+ | igorbonadio | tmp/jeka.git | read |
27
+ | jessicaeto | tmp/jeka.git | read |
28
+ | jessicaeto | tmp/jeka.git | write |
29
+
30
+ Scenario: Git read access
31
+ Given I start the remote console with "igorbonadio"
32
+ When I try to get "tmp/gritano.git"
33
+ Then I should get it
34
+
35
+ Scenario: Git write access
36
+ Given I start the remote console with "igorbonadio"
37
+ When I try to send data to "tmp/gritano.git"
38
+ Then I should send it
39
+
40
+ Scenario: Git read access denied
41
+ Given I start the remote console with "jessicaeto"
42
+ When I try to get "tmp/gritano.git"
43
+ Then I should not get it
44
+
45
+ Scenario: Git write access denied
46
+ Given I start the remote console with "jessicaeto"
47
+ When I try to send data to "tmp/gritano.git"
48
+ Then I should not send it
49
+
50
+ Scenario Outline: Normal user execute command
51
+ Given I start the remote console with "jessicaeto"
52
+ When I execute "<command>" via ssh
53
+ Then I should see a message via ssh
54
+ Examples:
55
+ | command |
56
+ | invalid:command |
57
+ | version |
58
+ | help |
59
+ | repo:list |
60
+ | key:list |
61
+ | key:add keyname |
62
+ | key:rm hal |
63
+ | admin:help |
64
+ | admin:version |
65
+ | admin:user:add jose |
66
+ | admin:user:key:add igorbonadio marvin |
67
+ | admin:user:key:rm igorbonadio eva |
68
+ | admin:user:rm igorbonadio |
69
+ | admin:user:list |
70
+ | admin:user:key:list igorbonadio |
71
+ | admin:user:repo:list igorbonadio |
72
+ | admin:user:admin:add igorbonadio |
73
+ | admin:user:admin:rm igorbonadio |
74
+ | admin:repo:add tmp/p-lang.git |
75
+ | admin:repo:add tmp/p-lang.git igorbonadio |
76
+ | admin:repo:add tmp/p-lang.git igorbonadio jessicaeto |
77
+ | admin:repo:rm tmp/jeka.git |
78
+ | admin:repo:read:add tmp/gritano.git jessicaeto |
79
+ | admin:repo:write:add tmp/gritano.git jessicaeto |
80
+ | admin:repo:read:rm tmp/jeka.git igorbonadio |
81
+ | admin:repo:write:rm tmp/gritano.git igorbonadio |
82
+ | admin:repo:list |
83
+ | admin:repo:user:list tmp/jeka.git |
84
+ | admin:user:add igorbonadio |
85
+ | admin:user:rm jose |
86
+ | admin:user:key:add userrr marvino |
87
+ | admin:user:key:rm igorbonadio marvino |
88
+ | admin:user:key:list arybonadio |
89
+ | admin:user:repo:list arybonadio |
90
+ | admin:user:admin:add arybonadio |
91
+ | admin:user:admin:rm arybonadio |
92
+ | admin:repo:add tmp/jeka.git |
93
+ | admin:repo:rm tmp/p-lang.git |
94
+ | admin:repo:read:add tmp/gritano.git arybonadio |
95
+ | admin:repo:read:add tmp/p-lang.git jessicaeto |
96
+ | admin:repo:write:add tmp/gritano.git arybonadio |
97
+ | admin:repo:write:add tmp/p-lang.git jessicaeto |
98
+ | admin:repo:read:rm tmp/jeka.git aribonadio |
99
+ | admin:repo:read:rm tmp/p-lang.git igorbonadio |
100
+ | admin:repo:write:rm tmp/gritano.git arybonadio |
101
+ | admin:repo:write:rm tmp/p-lang.git igorbonadio |
102
+ | admin:repo:user:list tmp/ruby.git |
103
+
104
+ Scenario Outline: Admin user execute command
105
+ Given I start the remote console with "igorbonadio"
106
+ When I execute "<command>" via ssh
107
+ Then I should see a message via ssh
108
+ Examples:
109
+ | command |
110
+ | invalid:command |
111
+ | version |
112
+ | help |
113
+ | repo:list |
114
+ | key:list |
115
+ | key:add keyname |
116
+ | key:rm hal |
117
+ | admin:help |
118
+ | admin:version |
119
+ | admin:user:add jose |
120
+ | admin:user:key:add igorbonadio marvin |
121
+ | admin:user:key:rm igorbonadio eva |
122
+ | admin:user:rm igorbonadio |
123
+ | admin:user:list |
124
+ | admin:user:key:list igorbonadio |
125
+ | admin:user:repo:list igorbonadio |
126
+ | admin:user:admin:add igorbonadio |
127
+ | admin:user:admin:rm igorbonadio |
128
+ | admin:repo:add tmp/p-lang.git |
129
+ | admin:repo:add tmp/p-lang.git igorbonadio |
130
+ | admin:repo:add tmp/p-lang.git igorbonadio jessicaeto |
131
+ | admin:repo:rm tmp/jeka.git |
132
+ | admin:repo:read:add tmp/gritano.git jessicaeto |
133
+ | admin:repo:write:add tmp/gritano.git jessicaeto |
134
+ | admin:repo:read:rm tmp/jeka.git igorbonadio |
135
+ | admin:repo:write:rm tmp/gritano.git igorbonadio |
136
+ | admin:repo:list |
137
+ | admin:repo:user:list tmp/jeka.git |
138
+ | admin:user:add igorbonadio |
139
+ | admin:user:rm jose |
140
+ | admin:user:key:add userrr marvino |
141
+ | admin:user:key:rm igorbonadio marvino |
142
+ | admin:user:key:list arybonadio |
143
+ | admin:user:repo:list arybonadio |
144
+ | admin:user:admin:add arybonadio |
145
+ | admin:user:admin:rm arybonadio |
146
+ | admin:repo:add tmp/jeka.git |
147
+ | admin:repo:rm tmp/p-lang.git |
148
+ | admin:repo:read:add tmp/gritano.git arybonadio |
149
+ | admin:repo:read:add tmp/p-lang.git jessicaeto |
150
+ | admin:repo:write:add tmp/gritano.git arybonadio |
151
+ | admin:repo:write:add tmp/p-lang.git jessicaeto |
152
+ | admin:repo:read:rm tmp/jeka.git aribonadio |
153
+ | admin:repo:read:rm tmp/p-lang.git igorbonadio |
154
+ | admin:repo:write:rm tmp/gritano.git arybonadio |
155
+ | admin:repo:write:rm tmp/p-lang.git igorbonadio |
156
+ | admin:repo:user:list tmp/ruby.git |