mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Fixed lint
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
bfd59c1b14
commit
04c1af6a24
2 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@ module Inspec::Resources
|
||||||
supports platform: "unix"
|
supports platform: "unix"
|
||||||
supports platform: "windows"
|
supports platform: "windows"
|
||||||
|
|
||||||
attr_reader :result
|
|
||||||
def initialize(content)
|
def initialize(content)
|
||||||
@content = content
|
@content = content
|
||||||
super({ content: @content })
|
super({ content: @content })
|
||||||
|
|
|
@ -10,7 +10,7 @@ describe "Inspec::Resources::OpaApi" do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "verify opa api query result parsing when output is empty" do
|
it "verify opa api query result parsing when output is empty" do
|
||||||
resource = load_resource("opa_api", url: "localhost:8181/v1/data/example/violation", data: "v1-data-input1.json")
|
resource = load_resource("opa_api", url: "localhost:8181/v1/data/example/violation", data: "v1-data-input1.json")
|
||||||
_(resource.result).must_be_nil
|
_(resource.result).must_be_nil
|
||||||
_(resource.params["result"]).must_equal([])
|
_(resource.params["result"]).must_equal([])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue