From 54d3d47daf9190275bbdaf8703b84969a4593451 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Fri, 24 Mar 2017 23:31:34 -0700 Subject: PLT-6076 Adding viper libs for config file changes (#5871) * Adding viper libs for config file changes * Removing the old fsnotify lib * updating some missing libs --- .../hcl/hcl/printer/testdata/comment.golden | 36 +++++++++++++++ .../hcl/hcl/printer/testdata/comment.input | 37 +++++++++++++++ .../hcl/printer/testdata/comment_aligned.golden | 32 +++++++++++++ .../hcl/hcl/printer/testdata/comment_aligned.input | 28 +++++++++++ .../hcl/hcl/printer/testdata/comment_array.golden | 13 ++++++ .../hcl/hcl/printer/testdata/comment_array.input | 13 ++++++ .../hcl/printer/testdata/comment_end_file.golden | 6 +++ .../hcl/printer/testdata/comment_end_file.input | 5 ++ .../testdata/comment_multiline_indent.golden | 12 +++++ .../testdata/comment_multiline_indent.input | 13 ++++++ .../testdata/comment_multiline_no_stanza.golden | 7 +++ .../testdata/comment_multiline_no_stanza.input | 6 +++ .../testdata/comment_multiline_stanza.golden | 10 ++++ .../testdata/comment_multiline_stanza.input | 10 ++++ .../hcl/printer/testdata/comment_newline.golden | 3 ++ .../hcl/hcl/printer/testdata/comment_newline.input | 2 + .../printer/testdata/comment_object_multi.golden | 9 ++++ .../printer/testdata/comment_object_multi.input | 9 ++++ .../hcl/printer/testdata/comment_standalone.golden | 17 +++++++ .../hcl/printer/testdata/comment_standalone.input | 16 +++++++ .../hcl/hcl/printer/testdata/complexhcl.golden | 54 ++++++++++++++++++++++ .../hcl/hcl/printer/testdata/complexhcl.input | 53 +++++++++++++++++++++ .../hcl/hcl/printer/testdata/empty_block.golden | 12 +++++ .../hcl/hcl/printer/testdata/empty_block.input | 14 ++++++ .../hashicorp/hcl/hcl/printer/testdata/list.golden | 43 +++++++++++++++++ .../hashicorp/hcl/hcl/printer/testdata/list.input | 37 +++++++++++++++ .../hcl/hcl/printer/testdata/list_comment.golden | 7 +++ .../hcl/hcl/printer/testdata/list_comment.input | 6 +++ .../hcl/printer/testdata/list_of_objects.golden | 10 ++++ .../hcl/hcl/printer/testdata/list_of_objects.input | 10 ++++ .../hcl/printer/testdata/multiline_string.golden | 7 +++ .../hcl/printer/testdata/multiline_string.input | 7 +++ .../hcl/printer/testdata/object_singleline.golden | 26 +++++++++++ .../hcl/printer/testdata/object_singleline.input | 19 ++++++++ .../printer/testdata/object_with_heredoc.golden | 6 +++ .../hcl/printer/testdata/object_with_heredoc.input | 6 +++ 36 files changed, 601 insertions(+) create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_indent.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_indent.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_no_stanza.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_no_stanza.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_stanza.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_stanza.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_newline.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_newline.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_object_multi.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_object_multi.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_standalone.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_standalone.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/complexhcl.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/complexhcl.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/empty_block.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/empty_block.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/list.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/list.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/list_comment.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/list_comment.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/list_of_objects.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/list_of_objects.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/multiline_string.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/multiline_string.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/object_singleline.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/object_singleline.input create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/object_with_heredoc.golden create mode 100644 vendor/github.com/hashicorp/hcl/hcl/printer/testdata/object_with_heredoc.input (limited to 'vendor/github.com/hashicorp/hcl/hcl/printer/testdata') diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.golden b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.golden new file mode 100644 index 000000000..9d4b072a0 --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.golden @@ -0,0 +1,36 @@ +// A standalone comment is a comment which is not attached to any kind of node + +// This comes from Terraform, as a test +variable "foo" { + # Standalone comment should be still here + + default = "bar" + description = "bar" # yooo +} + +/* This is a multi line standalone +comment*/ + +// fatih arslan +/* This is a developer test +account and a multine comment */ +developer = ["fatih", "arslan"] // fatih arslan + +# One line here +numbers = [1, 2] // another line here + +# Another comment +variable = { + description = "bar" # another yooo + + foo { + # Nested standalone + + bar = "fatih" + } +} + +// lead comment +foo { + bar = "fatih" // line comment 2 +} // line comment 3 diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.input b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.input new file mode 100644 index 000000000..57c37ac1d --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.input @@ -0,0 +1,37 @@ +// A standalone comment is a comment which is not attached to any kind of node + + // This comes from Terraform, as a test +variable "foo" { + # Standalone comment should be still here + + default = "bar" + description = "bar" # yooo +} + +/* This is a multi line standalone +comment*/ + + +// fatih arslan +/* This is a developer test +account and a multine comment */ +developer = [ "fatih", "arslan"] // fatih arslan + +# One line here +numbers = [1,2] // another line here + + # Another comment +variable = { + description = "bar" # another yooo + foo { + # Nested standalone + + bar = "fatih" + } +} + + // lead comment +foo { + bar = "fatih" // line comment 2 +} // line comment 3 + diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.golden b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.golden new file mode 100644 index 000000000..6ff21504c --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.golden @@ -0,0 +1,32 @@ +aligned { + # We have some aligned items below + foo = "fatih" # yoo1 + default = "bar" # yoo2 + bar = "bar and foo" # yoo3 + + default = { + bar = "example" + } + + #deneme arslan + fatih = ["fatih"] # yoo4 + + #fatih arslan + fatiharslan = ["arslan"] // yoo5 + + default = { + bar = "example" + } + + security_groups = [ + "foo", # kenya 1 + "${aws_security_group.firewall.foo}", # kenya 2 + ] + + security_groups2 = [ + "foo", # kenya 1 + "bar", # kenya 1.5 + "${aws_security_group.firewall.foo}", # kenya 2 + "foobar", # kenya 3 + ] +} diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.input b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.input new file mode 100644 index 000000000..bd43ab1ad --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_aligned.input @@ -0,0 +1,28 @@ +aligned { +# We have some aligned items below + foo = "fatih" # yoo1 + default = "bar" # yoo2 + bar = "bar and foo" # yoo3 + default = { + bar = "example" + } + #deneme arslan + fatih = ["fatih"] # yoo4 + #fatih arslan + fatiharslan = ["arslan"] // yoo5 + default = { + bar = "example" + } + +security_groups = [ + "foo", # kenya 1 + "${aws_security_group.firewall.foo}", # kenya 2 +] + +security_groups2 = [ + "foo", # kenya 1 + "bar", # kenya 1.5 + "${aws_security_group.firewall.foo}", # kenya 2 + "foobar", # kenya 3 +] +} diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.golden b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.golden new file mode 100644 index 000000000..e778eafa3 --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.golden @@ -0,0 +1,13 @@ +banana = [ + # I really want to comment this item in the array. + "a", + + # This as well + "b", + + "c", # And C + "d", + + # And another + "e", +] diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.input b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.input new file mode 100644 index 000000000..e778eafa3 --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_array.input @@ -0,0 +1,13 @@ +banana = [ + # I really want to comment this item in the array. + "a", + + # This as well + "b", + + "c", # And C + "d", + + # And another + "e", +] diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.golden b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.golden new file mode 100644 index 000000000..dbeae36a8 --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.golden @@ -0,0 +1,6 @@ +resource "blah" "blah" {} + +// +// +// + diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.input b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.input new file mode 100644 index 000000000..68c4c282e --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_end_file.input @@ -0,0 +1,5 @@ +resource "blah" "blah" {} + +// +// +// diff --git a/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_indent.golden b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_indent.golden new file mode 100644 index 000000000..74c4ccd89 --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment_multiline_indent.golden @@ -0,0 +1,12 @@ +resource "provider" "resource" { + /* + SPACE_SENSITIVE_CODE = <