Ubuntu Pastebin

Paste from elopio at Tue, 12 Apr 2016 15:21:15 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
elopio@calchas:~/workspace/canonical/tanuki-agent/trunk$ ./scripts/api_example.py -X POST -d '{"image_unique_id": "elopiotest-dragonboard-20160412-1", "channel": "edge", "image_reference": {"udf-params": "core rolling --channel edge --kernel canonical-snapdragon-linux.canonical --os ubuntu-core.canonical --gadget canonical-dragon.canonical --developer-mode"}}' ~/.spi.ini https://spi.canonical.com/products/8b2afd31-ae62-449b-8487-21ef451fa80f/images
HTTP  201
{
  "ids": [
    {
      "image_unique_id": "elopiotest-dragonboard-20160412-1",
      "test_opportunity_id": "35a56b4d-4c03-4c8e-b876-ec2bd2570040"
    }
  ]
}
elopio@calchas:~/workspace/canonical/tanuki-agent/trunk$ ./scripts/api_example.py ~/.spi.ini http://spi.canonical.com/products/8b2afd31-ae62-449b-8487-21ef451fa80f/tests/events?test_opportunity_id=35a56b4d-4c03-4c8e-b876-ec2bd2570040
HTTP  401
{
  "message": "Not allowed",
  "id": "unauthorized"
}
Download as text