github.com/tooploox/oya@v0.0.21-0.20230524103240-1cda1861aad6/features/get.feature (about) 1 Feature: Getting packs 2 3 Background: 4 Given I'm in project dir 5 6 Scenario: Get a pack 7 Given file ./Oyafile containing 8 """ 9 Project: project 10 """ 11 When I run "oya get github.com/tooploox/oya-fixtures@v1.0.0" 12 Then the command succeeds 13 And file ./.oya/packs/github.com/tooploox/oya-fixtures@v1.0.0/Oyafile exists 14 15 Scenario: Get a pack with invalid import 16 Given file ./Oyafile containing 17 """ 18 Project: project 19 20 Import: 21 invalidPack: foo.com/fooba/fooba 22 """ 23 When I run "oya get github.com/tooploox/oya-fixtures@v1.0.0" 24 Then the command succeeds 25 And file ./.oya/packs/github.com/tooploox/oya-fixtures@v1.0.0/Oyafile exists 26 27 Scenario: Get two versions of the same pack 28 Given file ./project1/Oyafile containing 29 """ 30 Project: project1 31 32 Require: 33 github.com/tooploox/oya-fixtures: v1.0.0 34 35 Import: 36 fixtures: github.com/tooploox/oya-fixtures 37 """ 38 And file ./project2/Oyafile containing 39 """ 40 Project: project2 41 42 Require: 43 github.com/tooploox/oya-fixtures: v1.1.0 44 45 Import: 46 fixtures: github.com/tooploox/oya-fixtures 47 """ 48 When I'm in the ./project1 dir 49 And I run "oya run --recurse fixtures.version" 50 Then the command succeeds 51 And the command outputs 52 """ 53 1.0.0 54 55 """ 56 When I'm in the ../project2 dir 57 And I run "oya run fixtures.version" 58 Then the command succeeds 59 And the command outputs 60 """ 61 1.1.0 62 63 """ 64 65 @nocircleci 66 Scenario: Get a pack from a private repo 67 Given file ./Oyafile containing 68 """ 69 Project: project 70 """ 71 When I run "oya get github.com/bilus/oya-fixtures-private@v1.0.0" 72 Then the command succeeds 73 And file ./.oya/packs/github.com/bilus/oya-fixtures-private@v1.0.0/Oyafile exists