diff options
author | David Schmitt <david.schmitt@puppet.com> | 2016-08-14 13:50:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 13:50:22 +0100 |
commit | 1d9d2c02d6669d4a6219140ae7ff3648a30c89cf (patch) | |
tree | 709bcf434658a291ce9a87e3bc4639992141725b /spec/fixtures | |
parent | f9c74fb04ecb9daccfa8b35b854ffd0601187a16 (diff) | |
parent | adf922c28441bc95f5cbac1f0951256c080b3298 (diff) |
Merge pull request #630 from HelenCampbell/validateLegacy
(MODULES-3540) Addition of validate legacy function
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/test/manifests/absolute_path.pp (renamed from spec/fixtures/modules/test/manifests/absolute_path.pp) | 0 | ||||
-rw-r--r-- | spec/fixtures/test/manifests/array.pp (renamed from spec/fixtures/modules/test/manifests/array.pp) | 0 | ||||
-rw-r--r-- | spec/fixtures/test/manifests/bool.pp (renamed from spec/fixtures/modules/test/manifests/bool.pp) | 0 | ||||
-rw-r--r-- | spec/fixtures/test/manifests/float.pp (renamed from spec/fixtures/modules/test/manifests/float.pp) | 0 | ||||
-rw-r--r-- | spec/fixtures/test/manifests/integer.pp (renamed from spec/fixtures/modules/test/manifests/integer.pp) | 0 | ||||
-rw-r--r-- | spec/fixtures/test/manifests/numeric.pp (renamed from spec/fixtures/modules/test/manifests/numeric.pp) | 0 | ||||
-rw-r--r-- | spec/fixtures/test/manifests/string.pp (renamed from spec/fixtures/modules/test/manifests/string.pp) | 0 | ||||
-rw-r--r-- | spec/fixtures/test/manifests/validate_legacy.pp | 18 |
8 files changed, 18 insertions, 0 deletions
diff --git a/spec/fixtures/modules/test/manifests/absolute_path.pp b/spec/fixtures/test/manifests/absolute_path.pp index d77f6bd..d77f6bd 100644 --- a/spec/fixtures/modules/test/manifests/absolute_path.pp +++ b/spec/fixtures/test/manifests/absolute_path.pp diff --git a/spec/fixtures/modules/test/manifests/array.pp b/spec/fixtures/test/manifests/array.pp index 84b6a5b..84b6a5b 100644 --- a/spec/fixtures/modules/test/manifests/array.pp +++ b/spec/fixtures/test/manifests/array.pp diff --git a/spec/fixtures/modules/test/manifests/bool.pp b/spec/fixtures/test/manifests/bool.pp index ab5b5ea..ab5b5ea 100644 --- a/spec/fixtures/modules/test/manifests/bool.pp +++ b/spec/fixtures/test/manifests/bool.pp diff --git a/spec/fixtures/modules/test/manifests/float.pp b/spec/fixtures/test/manifests/float.pp index 03a603d..03a603d 100644 --- a/spec/fixtures/modules/test/manifests/float.pp +++ b/spec/fixtures/test/manifests/float.pp diff --git a/spec/fixtures/modules/test/manifests/integer.pp b/spec/fixtures/test/manifests/integer.pp index a4f26df..a4f26df 100644 --- a/spec/fixtures/modules/test/manifests/integer.pp +++ b/spec/fixtures/test/manifests/integer.pp diff --git a/spec/fixtures/modules/test/manifests/numeric.pp b/spec/fixtures/test/manifests/numeric.pp index 2657ebc..2657ebc 100644 --- a/spec/fixtures/modules/test/manifests/numeric.pp +++ b/spec/fixtures/test/manifests/numeric.pp diff --git a/spec/fixtures/modules/test/manifests/string.pp b/spec/fixtures/test/manifests/string.pp index 6508c70..6508c70 100644 --- a/spec/fixtures/modules/test/manifests/string.pp +++ b/spec/fixtures/test/manifests/string.pp diff --git a/spec/fixtures/test/manifests/validate_legacy.pp b/spec/fixtures/test/manifests/validate_legacy.pp new file mode 100644 index 0000000..706df88 --- /dev/null +++ b/spec/fixtures/test/manifests/validate_legacy.pp @@ -0,0 +1,18 @@ +# Class to test stdlib validate_legacy function + +class test::validate_legacy( + $type, + $prev_validation, + $value, + $previous_arg1, + $previous_arg2 = undef, + ) { + + if $previous_arg2 == undef { + validate_legacy( $type, $prev_validation, $value, $previous_arg1 ) + } else { + validate_legacy( $type, $prev_validation, $value, $previous_arg1, $previous_arg2 ) + } + notice("Success") + +} |