Since we're going to be deploying AutoQA 0.7.0 soon, we need to
have
documentation about the new features.
I've written up some installation instructions for YOURLS to be used
in
AutoQA. I'd appreciate comments and a look over to make sure that I
didn't get anything wrong.
https://fedoraproject.org/wiki/Install_and_configure_YOURLS_for_AutoQA
I have made many adjustments in that page when I tried to configure and use yourls.
Currently I am stuck at no documentation for /etc/autoqa/yourls.conf. I believe it should
be included in that page. This is my configuration file now (aqd is my server):
[yourls]
baseurl=http://aqd/report
apiurl=http://aqd/report/yourls-api.php
username=username
password=password
urltitle=
Test ends with:
Traceback (most recent call last):
File "/usr/share/autotest/common_lib/test.py", line 618, in
_call_test_function
return func(*args, **dargs)
File "/usr/share/autotest/common_lib/test.py", line 291, in execute
postprocess_profiled_run, args, dargs)
File "/usr/share/autotest/common_lib/test.py", line 211, in _call_run_once
self.run_once(*args, **dargs)
File "/usr/lib/python2.7/site-packages/autoqa/decorators.py", line 72, in
newf
f_result = f(*args, **kwargs) #call the decorated function
File "/usr/share/autotest/tests/rpmlint/rpmlint.py", line 85, in run_once
self.post_results(optin={'pkg': name, 'kojitag': kojitag})
File "/usr/lib/python2.7/site-packages/autoqa/test.py", line 232, in
post_results
self._send_email(test_detail, optin=optin, logname=logname)
File "/usr/lib/python2.7/site-packages/autoqa/test.py", line 293, in
_send_email
logname=logname)
File "/usr/lib/python2.7/site-packages/autoqa/test.py", line 335, in
_create_email_body
url = self._shorten_url(self.url['result_dir'] + urllib.quote(logname),
test_detail)
File "/usr/lib/python2.7/site-packages/autoqa/test.py", line 180, in
_shorten_url
url = self._yourls_client.shorten(url)
File "/usr/lib/python2.7/site-packages/yourls/client.py", line 108, in
shorten
raw_data = json.loads(self._send_request(args))
File "/usr/lib/python2.7/site-packages/yourls/client.py", line 80, in
_send_request
r = urllib2.urlopen(req)
File "/usr/lib64/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 398, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 511, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 436, in error
return self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 370, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 519, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
Hints?