Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はserverspecにかなり慣れていません。次の行に沿って何かを使用するレシピがあります。
c = node['a']['b']
私の質問は、実際のテストでは、どのようにその値を設定できますか?
それはいけません。Serverspec は Chef とは無関係であり、ノードの属性については何も知りません。独自の非常に限定されたバージョンの ohai があるため、プラットフォーム名とバージョンを確認できます。