avocado-framework / avocado-server Goto Github PK
View Code? Open in Web Editor NEWREST based interface for applications to interact with an avocado server
License: Other
REST based interface for applications to interact with an avocado server
License: Other
python selftests/all/functional/avocadoserver/api.py
After following the instructions of the avocado-run-testplan
tool, here's what I've found:
Profilers declared: ['vmstat 1', 'journalctl -f']
Profiler disabled
START selftests/all/functional/avocadoserver/api.py
Test instance parameters:
id = selftests/all/functional/avocadoserver/api.py
omit_non_tests = False
Default parameters:
base_url = http://127.0.0.1:9405
password = 123
username = admin
Test instance params override defaults whenever available
Testing that the server returns its version
Traceback (most recent call last):
File "selftests/all/functional/avocadoserver/api.py", line 246, in action
self.test_version()
File "selftests/all/functional/avocadoserver/api.py", line 49, in test_version
self.get("/version/")
File "selftests/all/functional/avocadoserver/api.py", line 30, in get
self.assertEquals(response.status_code, status_code)
File "/usr/lib64/python2.7/unittest/case.py", line 551, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib64/python2.7/unittest/case.py", line 544, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: 403 != 200
FAIL selftests/all/functional/avocadoserver/api.py -> AssertionError: 403 != 200
from django.urls import NoReverseMatch
ImportError: No module named urls
[30/Nov/2018 09:00:46] "GET /jobs/ HTTP/1.1" 500 59
I may somehow be just completely missing it, but I have been unable to work out how one actually sends their results to the avocado server once you have your avocado server up and running.
Downloading Django-2.0.tar.gz (8.0MB)
100% |████████████████████████████████| 8.0MB 103kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-qItdzL/django/setup.py", line 32, in
version = import('django').get_version()
File "django/init.py", line 1, in
from django.utils.version import get_version
File "django/utils/version.py", line 61, in
@functools.lru_cache()
AttributeError: 'module' object has no attribute 'lru_cache'
How to use the avocado server, couldn't find appropriate documentation?
diff --git a/selftests/all/functional/avocadoserver/api.py b/selftests/all/functional/avocadoserver/api.py
index 8f9a74d..c617d01 100644
--- a/selftests/all/functional/avocadoserver/api.py
+++ b/selftests/all/functional/avocadoserver/api.py
@@ -5,6 +5,7 @@ run.
"""
from avocado import test
+from avocado import job
import json
import requests
@@ -260,3 +261,6 @@ class api(test.Test):
self.test_jobs_add()
self.test_jobs_del()
self.test_jobs_activities_empty()
+
+if __name__ == '__main__':
+ job.main()
[avocado@avocado-server]$ ./scripts/avocado-server-manage syncdb -v0 --noinput
Unknown command: 'syncdb'
Type 'avocado-server-manage help' for usage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.