mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +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: "windows"
|
||||
|
||||
attr_reader :result
|
||||
def initialize(content)
|
||||
@content = content
|
||||
super({ content: @content })
|
||||
|
|
|
@ -10,7 +10,7 @@ describe "Inspec::Resources::OpaApi" do
|
|||
end
|
||||
|
||||
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.params["result"]).must_equal([])
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue