- Run
./stub_server.py
-- it serves fixtures fromfixtures
directory on port 8888. - Redirect packets for
169.254.169.254:80
to127.0.01:8888
:
iptables -t nat -A OUTPUT -p tcp -d 169.254.169.254 -j DNAT --to-destination 127.0.0.1:8888
export PYTHONPATH=./lib ./azuremetadata
make test
make coverage