mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
Remove invalid test cases for tags
Signed-off-by: Irving Popovetsky <irving@chef.io>
This commit is contained in:
parent
4aebe87c2e
commit
bbb927e3dd
1 changed files with 3 additions and 21 deletions
|
@ -454,28 +454,16 @@ end
|
|||
tag1.to_hash.must_equal res1
|
||||
control.add_tag(tag1)
|
||||
|
||||
res2 = { name: "key2'", value: "value'" }
|
||||
res2 = { name: "key2", value: %w{a b} }
|
||||
tag2 = Inspec::Tag.new(res2[:name], res2[:value])
|
||||
tag2.to_hash.must_equal res2
|
||||
control.add_tag(tag2)
|
||||
|
||||
res3 = { name: "key3\"", value: "value\"" }
|
||||
tag3 = Inspec::Tag.new(res3[:name], res3[:value])
|
||||
tag3.to_hash.must_equal res3
|
||||
control.add_tag(tag3)
|
||||
|
||||
res4 = { name: "key4", value: %w{a b} }
|
||||
tag4 = Inspec::Tag.new(res4[:name], res4[:value])
|
||||
tag4.to_hash.must_equal res4
|
||||
control.add_tag(tag4)
|
||||
|
||||
control.id = "tag.control.id"
|
||||
control.to_ruby.must_equal '
|
||||
control "tag.control.id" do
|
||||
tag key: "value"
|
||||
tag key2\': "value\'"
|
||||
tag key3": "value\""
|
||||
tag key4: ["a", "b"]
|
||||
tag key2: ["a", "b"]
|
||||
end
|
||||
'.strip
|
||||
|
||||
|
@ -489,13 +477,7 @@ end
|
|||
name: "key",
|
||||
value: "value",
|
||||
}, {
|
||||
name: "key2'",
|
||||
value: "value'",
|
||||
}, {
|
||||
name: "key3\"",
|
||||
value: "value\"",
|
||||
}, {
|
||||
name: "key4",
|
||||
name: "key2",
|
||||
value: %w{a b},
|
||||
}],
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue