github.com/bilus/oya@v0.0.3-0.20190301162104-da4acbd394c6/features/secrets.feature (about) 1 Feature: Manage Secrets for oya 2 3 Background: 4 Given I'm in project dir 5 6 Scenario: It loads Values and Tasks from secrets.oya if present 7 Given file ./Oyafile containing 8 """ 9 Project: Secrets 10 Values: 11 foo: bar 12 13 all: | 14 echo $foo 15 echo $bar 16 """ 17 And file ./secrets.oya containing 18 """ 19 Secrets: 20 bar: banana 21 """ 22 And I run "oya secrets encrypt" 23 When I run "oya run all" 24 Then the command succeeds 25 And the command outputs to stdout 26 """ 27 bar 28 banana 29 30 """ 31 32 Scenario: Encrypts secrets file 33 Given file ./secrets.oya containing 34 """ 35 Secrets: 36 foo: SECRETPHRASE 37 """ 38 When I run "oya secrets encrypt" 39 Then the command succeeds 40 And file ./secrets.oya does not contain 41 """ 42 SECRETPHRASE 43 """ 44 45 Scenario: Views secrets file 46 Given file ./secrets.oya containing 47 """ 48 Secrets: 49 foo: SECRETPHRASE 50 """ 51 And I run "oya secrets encrypt" 52 When I run "oya secrets view" 53 Then the command succeeds 54 And the command outputs to stdout 55 """ 56 Secrets: 57 foo: SECRETPHRASE 58 """