summaryrefslogtreecommitdiff
path: root/spec/fixtures/test/manifests
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2016-08-14 13:50:22 +0100
committerGitHub <noreply@github.com>2016-08-14 13:50:22 +0100
commit1d9d2c02d6669d4a6219140ae7ff3648a30c89cf (patch)
tree709bcf434658a291ce9a87e3bc4639992141725b /spec/fixtures/test/manifests
parentf9c74fb04ecb9daccfa8b35b854ffd0601187a16 (diff)
parentadf922c28441bc95f5cbac1f0951256c080b3298 (diff)
Merge pull request #630 from HelenCampbell/validateLegacy
(MODULES-3540) Addition of validate legacy function
Diffstat (limited to 'spec/fixtures/test/manifests')
-rw-r--r--spec/fixtures/test/manifests/absolute_path.pp6
-rw-r--r--spec/fixtures/test/manifests/array.pp8
-rw-r--r--spec/fixtures/test/manifests/bool.pp8
-rw-r--r--spec/fixtures/test/manifests/float.pp8
-rw-r--r--spec/fixtures/test/manifests/integer.pp8
-rw-r--r--spec/fixtures/test/manifests/numeric.pp8
-rw-r--r--spec/fixtures/test/manifests/string.pp8
-rw-r--r--spec/fixtures/test/manifests/validate_legacy.pp18
8 files changed, 72 insertions, 0 deletions
diff --git a/spec/fixtures/test/manifests/absolute_path.pp b/spec/fixtures/test/manifests/absolute_path.pp
new file mode 100644
index 0000000..d77f6bd
--- /dev/null
+++ b/spec/fixtures/test/manifests/absolute_path.pp
@@ -0,0 +1,6 @@
+# Class to test the Stdlib::Compat::Absolute_path type alias
+class test::absolute_path(
+ Stdlib::Compat::Absolute_path $value,
+ ) {
+ notice("Success")
+}
diff --git a/spec/fixtures/test/manifests/array.pp b/spec/fixtures/test/manifests/array.pp
new file mode 100644
index 0000000..84b6a5b
--- /dev/null
+++ b/spec/fixtures/test/manifests/array.pp
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Array type alias
+class test::array(
+ Stdlib::Compat::Array $value,
+ ) {
+
+ notice("Success")
+
+}
diff --git a/spec/fixtures/test/manifests/bool.pp b/spec/fixtures/test/manifests/bool.pp
new file mode 100644
index 0000000..ab5b5ea
--- /dev/null
+++ b/spec/fixtures/test/manifests/bool.pp
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Bool type alias
+class test::bool(
+ Stdlib::Compat::Bool $value,
+ ) {
+
+ notice("Success")
+
+}
diff --git a/spec/fixtures/test/manifests/float.pp b/spec/fixtures/test/manifests/float.pp
new file mode 100644
index 0000000..03a603d
--- /dev/null
+++ b/spec/fixtures/test/manifests/float.pp
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Float type alias
+class test::float(
+ Stdlib::Compat::Float $value,
+ ) {
+
+ notice("Success")
+
+}
diff --git a/spec/fixtures/test/manifests/integer.pp b/spec/fixtures/test/manifests/integer.pp
new file mode 100644
index 0000000..a4f26df
--- /dev/null
+++ b/spec/fixtures/test/manifests/integer.pp
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Integer type alias
+class test::integer(
+ Stdlib::Compat::Integer $value,
+ ) {
+
+ notice("Success")
+
+}
diff --git a/spec/fixtures/test/manifests/numeric.pp b/spec/fixtures/test/manifests/numeric.pp
new file mode 100644
index 0000000..2657ebc
--- /dev/null
+++ b/spec/fixtures/test/manifests/numeric.pp
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::Numeric type alias
+class test::numeric(
+ Stdlib::Compat::Numeric $value,
+ ) {
+
+ notice("Success")
+
+}
diff --git a/spec/fixtures/test/manifests/string.pp b/spec/fixtures/test/manifests/string.pp
new file mode 100644
index 0000000..6508c70
--- /dev/null
+++ b/spec/fixtures/test/manifests/string.pp
@@ -0,0 +1,8 @@
+# Class to test the Stdlib::Compat::String type alias
+class test::string(
+ Stdlib::Compat::String $value,
+ ) {
+
+ notice("Success")
+
+}
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")
+
+}