Update
This commit is contained in:
parent
a37785b391
commit
33458b2ca3
9915 changed files with 1247019 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
title: Existing values are kept
|
||||
|
||||
config:
|
||||
dist-file: parameters.dist.yml
|
||||
|
||||
dist-file: parameters.dist.yml
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
config:
|
||||
foo: bar
|
||||
boolean: false
|
||||
another: ~
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# This file is auto-generated during the composer install
|
||||
config:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
another: ~
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# This file is auto-generated during the composer install
|
||||
config:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
another: null
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
title: Using a custom parameter key
|
||||
|
||||
config:
|
||||
parameter-key: config
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
another: ~
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
another: ~
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
another: null
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1 @@
|
|||
title: Existing values are kept
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1 @@
|
|||
title: Existing empty files are valid (Capifony compatibility)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# This file is auto-generated during the composer install
|
||||
foobar: baz
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: bar
|
||||
foobar: baz
|
||||
|
|
@ -0,0 +1 @@
|
|||
title: Existing files without the parameters key are valid
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
|
||||
extra_key: a new extra key
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
another_key: foo
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
extra_key: 'a new extra key'
|
||||
another_key: foo
|
||||
|
|
@ -0,0 +1 @@
|
|||
title: Extra top level keys are preserved
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
another: ~
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
another: 'null'
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
title: Existing values are not asked interactively again
|
||||
|
||||
interactive: true
|
||||
|
||||
requested_params:
|
||||
boolean:
|
||||
default: 'false'
|
||||
input: 'false'
|
||||
another:
|
||||
default: 'null'
|
||||
input: '"null"'
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
parameters:
|
||||
boolean: false
|
||||
another: test
|
||||
nested: nested
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
boolean: true
|
||||
another: null
|
||||
nested:
|
||||
foo: bar
|
||||
bar:
|
||||
- foo
|
||||
- test
|
||||
- null
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
title: Missing keys are asked interactively
|
||||
|
||||
interactive: true
|
||||
|
||||
requested_params:
|
||||
boolean:
|
||||
default: 'false'
|
||||
input: 'true'
|
||||
nested:
|
||||
default: nested
|
||||
input: '{foo: bar, bar: [foo, test, null]}'
|
||||
another:
|
||||
default: test
|
||||
input: 'null'
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
parameters:
|
||||
boolean: false
|
||||
another: test
|
||||
nested: nested
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
boolean: true
|
||||
nested:
|
||||
foo: env_foo
|
||||
bar:
|
||||
- env
|
||||
- test
|
||||
- null
|
||||
another: null
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
title: Values provided by the environment are not asked interactively
|
||||
|
||||
config:
|
||||
env-map:
|
||||
boolean: IC_TEST_BOOL
|
||||
nested: IC_TEST_NESTED
|
||||
|
||||
environment:
|
||||
IC_TEST_BOOL: 'true'
|
||||
IC_TEST_NESTED: '{foo: env_foo, bar: [env, test, null]}'
|
||||
|
||||
interactive: true
|
||||
|
||||
requested_params:
|
||||
another:
|
||||
default: test
|
||||
input: 'null'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
outdated: outdated_param
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
outdated: outdated_param
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
title: Outdated keys can be kept in the parameters file
|
||||
|
||||
config:
|
||||
keep-outdated: true
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
another: ~
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
another: null
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1 @@
|
|||
title: Non existent files are created
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
another: ~
|
||||
nested:
|
||||
foo: bar
|
||||
bar: baz
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: foobar
|
||||
boolean: true
|
||||
another: null
|
||||
nested:
|
||||
foo: env_foo
|
||||
bar:
|
||||
- env
|
||||
- test
|
||||
- null
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
title: Environment variables are used over dist file defaults
|
||||
|
||||
config:
|
||||
env-map:
|
||||
boolean: IC_TEST_BOOL
|
||||
foo: IC_TEST_FOO
|
||||
nested: IC_TEST_NESTED
|
||||
another: IC_TEST_NOT_SET
|
||||
|
||||
environment:
|
||||
IC_TEST_BOOL: 'true'
|
||||
IC_TEST_FOO: 'foobar'
|
||||
IC_TEST_NESTED: '{foo: env_foo, bar: [env, test, null]}'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
outdated: outdated_param
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
|
|
@ -0,0 +1 @@
|
|||
title: Outdated keys are removed from the parameters file
|
||||
6
trunk/_vendor/incenteev/composer-parameter-handler/Tests/fixtures/testcases/renamed/dist.yml
vendored
Normal file
6
trunk/_vendor/incenteev/composer-parameter-handler/Tests/fixtures/testcases/renamed/dist.yml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
parameters:
|
||||
new: bar
|
||||
new2: new2
|
||||
new3: test
|
||||
new4: test4
|
||||
new5: test5
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
old: old_value
|
||||
new2: foo
|
||||
old2: bar
|
||||
old4: old4
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
new: old_value
|
||||
new2: foo
|
||||
new3: test
|
||||
new4: old4
|
||||
new5: old4
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
title: Key can be renamed and the value is reused
|
||||
|
||||
config:
|
||||
rename-map:
|
||||
new: old
|
||||
new2: old2
|
||||
new3: old3
|
||||
new4: old4
|
||||
new5: new4 # Cascade renaming
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
parameters:
|
||||
new: bar
|
||||
new2: new2
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
old: old_value
|
||||
old2: old_value2
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
new: new_env_value
|
||||
new2: old_value2
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
title: Environment variables win over renamed keys
|
||||
|
||||
config:
|
||||
rename-map:
|
||||
new: old
|
||||
new2: old2
|
||||
env-map:
|
||||
new: IC_TEST_NEW
|
||||
|
||||
environment:
|
||||
IC_TEST_NEW: 'new_env_value'
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
boolean: false
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: existing_foo
|
||||
boolean: false
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
title: Files can be located in subfolders
|
||||
|
||||
config:
|
||||
file: 'app/parameters.yml'
|
||||
|
||||
dist-file: 'app/parameters.yml.dist'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
parameters:
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# This file is auto-generated during the composer install
|
||||
parameters:
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
title: Files can be located in different folders than the dist and the folder is created
|
||||
|
||||
config:
|
||||
file: 'app/parameters.yml'
|
||||
dist-file: 'dist/parameters.yml'
|
||||
|
||||
dist-file: 'dist/parameters.yml'
|
||||
Loading…
Add table
Add a link
Reference in a new issue