Help with NixOS Testing Library

Hello, is there any good documentation on how to reference separate nodes’ IP addresses in nixos tests? Just judging by some examples I found online I think I can just use http://my-node:9090 where I have pkgs.nixosTest { nodes.my-node = ... } . Is that correct? If so, will it work for me to do something like this:

  nodes = {
    service1 = { 
      service.my-server = { 
        enable = true; 
        port = 9090;
      }; 
    };
    service2 = { 
      service.my-client = { 
        enable = true; 
        service1-address = "http://service1:9090"; 
    };
  };

Where service2 will automatically connect to service1, and then I can make some assertions about service2.

1 Like

Yes, that should work.