Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 494 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 494 Bytes

azuremetadata

Running in development

Running the stub metadata server locally

  1. Run ./stub_server.py -- it serves fixtures from fixtures directory on port 8888.
  2. Redirect packets for 169.254.169.254:80 to 127.0.01:8888:
iptables -t nat -A OUTPUT -p tcp -d 169.254.169.254 -j DNAT --to-destination 127.0.0.1:8888

Running the command-line tool

export PYTHONPATH=./lib ./azuremetadata

Running tests

make test
make coverage