2017-08-15 68 views
0

這兩者有什麼區別?Inspec:檢查用戶和組

it { should be_owned_by 'cool_user' } 
vs 
its('owner') { should eq 'cool_user' } 

it { should be_grouped_into 'cool_group' } 
vs 
its('group') { should eq 'cool_group' } 

回答

0

Inspec支持styles

it { should be_owned_by 'cool_user' } 
it { should be_grouped_into 'cool_group' } 

雖然這種風格看起來寫它更像serverspec方式:)