(self)
| 112 | [('127.0.0.1', self.defaultport), ('::1', self.defaultport)]) |
| 113 | |
| 114 | def _run_nonloopback_tests(self): |
| 115 | self.log.info("Using interface %s for testing" % self.non_loopback_ip) |
| 116 | |
| 117 | # check only non-loopback interface |
| 118 | self.run_bind_test([self.non_loopback_ip], self.non_loopback_ip, [self.non_loopback_ip], |
| 119 | [(self.non_loopback_ip, self.defaultport)]) |
| 120 | |
| 121 | # Check that with invalid rpcallowip, we are denied |
| 122 | self.run_allowip_test([self.non_loopback_ip], self.non_loopback_ip, self.defaultport) |
| 123 | assert_raises_rpc_error(-342, "non-JSON HTTP response with '403 Forbidden' from server", self.run_allowip_test, ['1.1.1.1'], self.non_loopback_ip, self.defaultport) |
| 124 | |
| 125 | if __name__ == '__main__': |
| 126 | RPCBindTest().main() |
no test coverage detected