goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.57k stars 472 forks source link

/etc/hosts file #653

Closed vinodhkumart closed 3 years ago

vinodhkumart commented 3 years ago

Hi ,

I am planning to write a goss test for /etc/hosts entry. But , I am unable any parameters to validate the values liek the below. As I need to validate multiple servers, i need to provide the values dynamically . Coudl you please let me know if any options?

/etc/hosts - file should be present entry shouldbe :

Regards Vinod
vinodhkumart commented 3 years ago

I figured it out myself.