-
Notifications
You must be signed in to change notification settings - Fork 3
/
stash.feature
108 lines (95 loc) · 3.71 KB
/
stash.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@stash @cats
Feature: clowder stash
@help
Scenario: stash help in empty directory
Given test directory is empty
When I run 'clowder stash -h' and 'clowder stash --help'
Then the commands succeed
@help
Scenario: stash help with invalid clowder.yaml
Given cats example is initialized
And has invalid clowder.yml
When I run 'clowder stash -h' and 'clowder stash --help'
Then the commands succeed
@help
Scenario: stash help with valid clowder.yaml
Given cats example is initialized
When I run 'clowder stash -h' and 'clowder stash --help'
Then the commands succeed
Scenario Outline: stash
Given cats example is initialized and herded
And created <filename> in <directory>
And project at <directory> staged <filename>
And project at <directory> is dirty
When I run 'clowder stash'
Then the command succeeds
And project at <directory> is clean
Examples:
| directory | filename |
| mu | secret |
| duke | secret |
| black-cats/kishka | secret |
| black-cats/kit | secret |
| black-cats/sasha | secret |
| black-cats/june | secret |
@subdirectory
Scenario Outline: stash subdirectory
Given cats example is initialized and herded
And created <filename> in <directory>
And project at <directory> staged <filename>
And project at <directory> is dirty
When I change to directory mu
And I run 'clowder stash'
Then the command succeeds
And project at <directory> is clean
Examples:
| directory | filename |
| mu | secret |
| duke | secret |
| black-cats/kishka | secret |
| black-cats/kit | secret |
| black-cats/sasha | secret |
| black-cats/june | secret |
@offline
Scenario Outline: stash offline
Given cats example is initialized and herded
And created <filename> in <directory>
And project at <directory> staged <filename>
And project at <directory> is dirty
When the network connection is disabled
And I run 'clowder stash'
And the network connection is enabled
Then the command succeeds
And project at <directory> is clean
Examples:
| directory | filename |
| mu | secret |
| duke | secret |
| black-cats/kishka | secret |
| black-cats/kit | secret |
| black-cats/sasha | secret |
| black-cats/june | secret |
Scenario Outline: stash groups included
Given cats example is initialized and herded
And created <filename> in <directory>
And project at <directory> staged <filename>
When I run 'clowder stash cats'
Then the command succeeds
And project at <directory> is clean
Examples:
| directory | filename |
| mu | secret |
| duke | secret |
Scenario Outline: stash groups excluded
Given cats example is initialized and herded
And created <filename> in <directory>
And project at <directory> staged <filename>
When I run 'clowder stash cats'
Then the command succeeds
And project at <directory> is dirty
Examples:
| directory | filename |
| black-cats/kishka | secret |
| black-cats/kit | secret |
| black-cats/sasha | secret |
| black-cats/june | secret |