From cccac97be6ba66c64bb5e278baa52351e1c48a62 Mon Sep 17 00:00:00 2001 From: gscho Date: Mon, 10 May 2021 09:16:38 -0400 Subject: [PATCH] Update example to use params properly Signed-off-by: gscho --- docs-chef-io/content/inspec/resources/bond.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs-chef-io/content/inspec/resources/bond.md b/docs-chef-io/content/inspec/resources/bond.md index f012e0312..7d5a0f6ff 100644 --- a/docs-chef-io/content/inspec/resources/bond.md +++ b/docs-chef-io/content/inspec/resources/bond.md @@ -75,11 +75,10 @@ The `params` matcher tests arbitrary parameters for the bonded network interface describe bond('bond0') do its('mode') { should eq 'IEEE 802.3ad Dynamic link aggregation' } - its('Transmit Hash Policy') { should eq 'layer3+4 (1)' } - its('MII Status') { should eq 'up' } - its('MII Polling Interval (ms)') { should eq '100' } - its('Up Delay (ms)') { should eq '0' } - its('Down Delay (ms)') { should eq '0' } + its('params') { should have_key 'Transmit Hash Policy' } + its('params') { should include 'Transmit Hash Policy' => 'layer3+4 (1)' } + its('params') { should have_key 'MII Status' } + its('params') { should include 'MII Status' => 'up' } end ## Matchers