inspec/test/unit/mock/cmd/Get-NetIPAddress
Matt Kulka 633cea6673 support address matchers on interface resource
Adds missing functionality to `interface`. Fixes #1830

```
describe interface("eth0") do
  its(ipv4_addresses) { should include 1.2.3.4 }
end
```

And so on... see diff/docs for additional matchers.

Signed-off-by: Matt Kulka <mkulka@parchment.com>
2019-04-12 08:24:13 -07:00

14 lines
411 B
Text

[
{
"IPv6Address": "::1",
"IPv4Address": null,
"InterfaceAlias": "vEthernet (Intel(R) PRO 1000 MT Network Connection - Virtual Switch)",
"PrefixLength": 128
},
{
"IPv6Address": null,
"IPv4Address": "127.0.0.1",
"InterfaceAlias": "vEthernet (Intel(R) PRO 1000 MT Network Connection - Virtual Switch)",
"PrefixLength": 8
}
]