| # Simple example showing multiple mount tables, servers and globing |
| set localaddr="--veyron.tcp.address=127.0.0.1:0" |
| set ws=--veyron.tcp.protocol=ws |
| mt -- $localaddr $ws $localaddr usa |
| mt -- $localaddr $ws $localaddr uk |
| set NAMESPACE_ROOT=$usa_mt |
| mt -- $localaddr $ws $localaddr "palo alto" |
| set NAMESPACE_ROOT=$uk_mt |
| mt -- $localaddr $ws $localaddr "cambridge" |
| # We get two endpoints back, in arbitrary order |
| # one of which is 'ws', the other 'tcp' |
| assertOneOf $usa_mt $ep1 $ep2 |
| resolve "$root/usa/palo alto" |
| # this resolves to the mount table hosting palo alto, not the mount table |
| # that would host any objects mounted on .../palo alto/... |
| # but the uk/cambridge example below seems to behave the opposite way? |
| assertOneOf $pa_mt $ep1 $ep2 |
| assertOneOf $uk_mt $ep1 $ep2 |
| resolve "$root/uk/cambridge" |
| # this behaves differently to the usa/palo alto case? |
| assertOneOf $cam_mt $ep1 $ep2 |