gritano 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/features/data/local_commands/repo_add_tmp_jeka_git.txt +1 -0
- data/features/data/local_commands/repo_add_tmp_p_lang_git.txt +1 -0
- data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio.txt +1 -0
- data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/local_commands/repo_list.txt +6 -0
- data/features/data/local_commands/repo_read_add_tmp_gritano_git_arybonadio.txt +1 -0
- data/features/data/local_commands/repo_read_add_tmp_gritano_git_jessicaeto.txt +1 -0
- data/features/data/local_commands/repo_read_add_tmp_p_lang_git_jessicaeto.txt +1 -0
- data/features/data/local_commands/repo_read_rm_tmp_jeka_git_aribonadio.txt +1 -0
- data/features/data/local_commands/repo_read_rm_tmp_jeka_git_igorbonadio.txt +1 -0
- data/features/data/local_commands/repo_read_rm_tmp_p_lang_git_igorbonadio.txt +1 -0
- data/features/data/local_commands/repo_rm_tmp_jeka_git.txt +1 -0
- data/features/data/local_commands/repo_rm_tmp_p_lang_git.txt +1 -0
- data/features/data/local_commands/repo_user_list_tmp_jeka_git.txt +6 -0
- data/features/data/local_commands/repo_user_list_tmp_ruby_git.txt +1 -0
- data/features/data/local_commands/repo_write_add_tmp_gritano_git_arybonadio.txt +1 -0
- data/features/data/local_commands/repo_write_add_tmp_gritano_git_jessicaeto.txt +1 -0
- data/features/data/local_commands/repo_write_add_tmp_p_lang_git_jessicaeto.txt +1 -0
- data/features/data/local_commands/repo_write_rm_tmp_gritano_git_arybonadio.txt +1 -0
- data/features/data/local_commands/repo_write_rm_tmp_gritano_git_igorbonadio.txt +1 -0
- data/features/data/local_commands/repo_write_rm_tmp_p_lang_git_igorbonadio.txt +1 -0
- data/features/data/local_commands/user_add_igorbonadio.txt +1 -0
- data/features/data/local_commands/user_add_jose.txt +1 -0
- data/features/data/local_commands/user_admin_add_arybonadio.txt +1 -0
- data/features/data/local_commands/user_admin_add_igorbonadio.txt +1 -0
- data/features/data/local_commands/user_admin_rm_arybonadio.txt +1 -0
- data/features/data/local_commands/user_admin_rm_igorbonadio.txt +1 -0
- data/features/data/local_commands/user_key_add_igorbonadio_marvin.txt +1 -0
- data/features/data/local_commands/user_key_add_userrr_marvino.txt +1 -0
- data/features/data/local_commands/user_key_list_arybonadio.txt +1 -0
- data/features/data/local_commands/user_key_list_igorbonadio.txt +5 -0
- data/features/data/local_commands/user_key_rm_igorbonadio_eva.txt +1 -0
- data/features/data/local_commands/user_key_rm_igorbonadio_marvino.txt +1 -0
- data/features/data/local_commands/user_list.txt +6 -0
- data/features/data/local_commands/user_repo_list_arybonadio.txt +1 -0
- data/features/data/local_commands/user_repo_list_igorbonadio.txt +6 -0
- data/features/data/local_commands/user_rm_igorbonadio.txt +1 -0
- data/features/data/local_commands/user_rm_jose.txt +1 -0
- data/features/data/local_commands/version.txt +1 -0
- data/features/data/local_help.txt +27 -0
- data/features/data/remote_commands/admin_help_igorbonadio.txt +27 -0
- data/features/data/remote_commands/admin_help_jessicaeto.txt +27 -0
- data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_list_igorbonadio.txt +6 -0
- data/features/data/remote_commands/admin_repo_list_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_igorbonadio.txt +6 -0
- data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_add_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_add_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_add_jose_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_add_jose_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_add_arybonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_add_arybonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_add_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_add_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_rm_arybonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_rm_arybonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_key_add_userrr_marvino_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_key_add_userrr_marvino_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_key_list_arybonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_key_list_arybonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_key_list_igorbonadio_igorbonadio.txt +5 -0
- data/features/data/remote_commands/admin_user_key_list_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_list_igorbonadio.txt +6 -0
- data/features/data/remote_commands/admin_user_list_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_repo_list_arybonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_repo_list_arybonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_repo_list_igorbonadio_igorbonadio.txt +6 -0
- data/features/data/remote_commands/admin_user_repo_list_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_rm_igorbonadio_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_rm_igorbonadio_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_user_rm_jose_igorbonadio.txt +1 -0
- data/features/data/remote_commands/admin_user_rm_jose_jessicaeto.txt +1 -0
- data/features/data/remote_commands/admin_version_igorbonadio.txt +13 -0
- data/features/data/remote_commands/admin_version_jessicaeto.txt +1 -0
- data/features/data/remote_commands/help_igorbonadio.txt +13 -0
- data/features/data/remote_commands/help_jessicaeto.txt +13 -0
- data/features/data/remote_commands/invalid_command_igorbonadio.txt +13 -0
- data/features/data/remote_commands/invalid_command_jessicaeto.txt +13 -0
- data/features/data/remote_commands/key_add_keyname_igorbonadio.txt +1 -0
- data/features/data/remote_commands/key_add_keyname_jessicaeto.txt +1 -0
- data/features/data/remote_commands/key_list_igorbonadio.txt +5 -0
- data/features/data/remote_commands/key_list_jessicaeto.txt +5 -0
- data/features/data/remote_commands/key_rm_hal_igorbonadio.txt +1 -0
- data/features/data/remote_commands/key_rm_hal_jessicaeto.txt +1 -0
- data/features/data/remote_commands/repo_list_igorbonadio.txt +6 -0
- data/features/data/remote_commands/repo_list_jessicaeto.txt +5 -0
- data/features/data/remote_commands/version_igorbonadio.txt +1 -0
- data/features/data/remote_commands/version_jessicaeto.txt +1 -0
- data/features/install.feature +40 -0
- data/features/local.feature +80 -0
- data/features/remote.feature +156 -0
- data/features/step_definitions/background_step.rb +24 -0
- data/features/step_definitions/install_step.rb +30 -0
- data/features/step_definitions/local_step.rb +25 -0
- data/features/step_definitions/remote_step.rb +49 -0
- data/gritano.gemspec +142 -1
- data/lib/gritano/cli.rb +1 -1
- data/lib/gritano/console/remote.rb +8 -2
- data/lib/gritano/models/user.rb +0 -6
- data/spec/model_user_spec.rb +0 -26
- metadata +143 -2
@@ -0,0 +1 @@
|
|
1
|
+
error: Key could not be removed.
|
@@ -0,0 +1 @@
|
|
1
|
+
error: access denied
|
@@ -0,0 +1 @@
|
|
1
|
+
error: access denied
|
@@ -0,0 +1 @@
|
|
1
|
+
error: User arybonadio is not registered
|
@@ -0,0 +1 @@
|
|
1
|
+
error: access denied
|
@@ -0,0 +1 @@
|
|
1
|
+
error: access denied
|
@@ -0,0 +1 @@
|
|
1
|
+
User igorbonadio removed.
|
@@ -0,0 +1 @@
|
|
1
|
+
error: access denied
|
@@ -0,0 +1 @@
|
|
1
|
+
error: User jose could not be removed.
|
@@ -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 @@
|
|
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 @@
|
|
1
|
+
error: Key could not be removed.
|
@@ -0,0 +1 @@
|
|
1
|
+
Key removed successfully.
|
@@ -0,0 +1 @@
|
|
1
|
+
v{{VERSION}}
|
@@ -0,0 +1 @@
|
|
1
|
+
v{{VERSION}}
|
@@ -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 |
|