-
Notifications
You must be signed in to change notification settings - Fork 3
/
get.feature
73 lines (61 loc) · 1.68 KB
/
get.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
Feature: Getting packs
Background:
Given I'm in project dir
Scenario: Get a pack
Given file ./Oyafile containing
"""
Project: project
"""
When I run "oya get github.com/tooploox/[email protected]"
Then the command succeeds
And file ./.oya/packs/github.com/tooploox/[email protected]/Oyafile exists
Scenario: Get a pack with invalid import
Given file ./Oyafile containing
"""
Project: project
Import:
invalidPack: foo.com/fooba/fooba
"""
When I run "oya get github.com/tooploox/[email protected]"
Then the command succeeds
And file ./.oya/packs/github.com/tooploox/[email protected]/Oyafile exists
Scenario: Get two versions of the same pack
Given file ./project1/Oyafile containing
"""
Project: project1
Require:
github.com/tooploox/oya-fixtures: v1.0.0
Import:
fixtures: github.com/tooploox/oya-fixtures
"""
And file ./project2/Oyafile containing
"""
Project: project2
Require:
github.com/tooploox/oya-fixtures: v1.1.0
Import:
fixtures: github.com/tooploox/oya-fixtures
"""
When I'm in the ./project1 dir
And I run "oya run --recurse fixtures.version"
Then the command succeeds
And the command outputs
"""
1.0.0
"""
When I'm in the ../project2 dir
And I run "oya run fixtures.version"
Then the command succeeds
And the command outputs
"""
1.1.0
"""
@nocircleci
Scenario: Get a pack from a private repo
Given file ./Oyafile containing
"""
Project: project
"""
When I run "oya get github.com/bilus/[email protected]"
Then the command succeeds
And file ./.oya/packs/github.com/bilus/[email protected]/Oyafile exists