@@ -0,0 +1,1219 @@
+#!/usr/bin/python%0A# coding: utf-7%0A%0Aimport json%0Aimport requests%0A%0Aurl = 'http://localhost:5000/api/v1/object-issue'%0A%0Adata = '''%0A%7B%0A    %22title%22: %22Check that the route cache is flushed after NIC change%22,%0A    %22description%22: %5B%0A        %7B%0A            %22type%22: %22main%22,%0A            %22mime-type%22: %22text/markdown%22,%0A            %22data%22: %22a mardown formatted long text encoded in base64%22%0A        %7D,%0A        %7B%0A            %22type%22: %22media%22,%0A            %22mime-type%22: %22media/png%22,%0A            %22description%22: %22image of the routing architecture and test setup%22,%0A            %22name%22: %22image-foo.png%22,%0A            %22data%22: %22%3Cbase64 encoded image%3E%22%0A        %7D%0A    %5D,%0A    %22categories%22: %5B%0A        %22team:orange%22,%0A        %22topic:ip%22,%0A        %22subtopic:route-cache%22%0A    %5D,%0A    %22version%22: 0,%0A    %22data%22: %5B%0A        %7B%0A            %22description%22: %22network configuration script%22,%0A            %22file-name%22: %22network-config.sh%22,%0A            %22mime-type%22: %22text/plain%22,%0A            %22data%22: %22%3Cbase64 encoded data%3E%22%0A        %7D%0A    %5D%0A%7D%0A'''%0A%0Aheaders = %7B'Content-type': 'application/json', 'Accept': 'application/json'%7D%0Ar = requests.post(url, data=data, headers=headers)%0A#r = requests.post(url, data=json.dumps(data), headers=headers)%0Aprint(r.status_code)%0Aprint(r.json())%0A

implement simple push test