GithubHelp home page GithubHelp logo

avocado-framework / avocado-server Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 12.0 494 KB

REST based interface for applications to interact with an avocado server

License: Other

Python 70.17% Shell 0.86% HTML 5.62% CSS 11.64% JavaScript 9.34% Makefile 2.37%

avocado-server's People

Contributors

clebergnu avatar ldoktor avatar lmr avatar pandawei avatar ruda avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avocado-server's Issues

Avocado server test FAILed

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

Issue with installing Django.

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 this.

How to use the avocado server, couldn't find appropriate documentation?

avocado server api test missing job.main() entry point

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()

Unknown command: 'syncdb'

[avocado@avocado-server]$ ./scripts/avocado-server-manage syncdb -v0 --noinput
Unknown command: 'syncdb'
Type 'avocado-server-manage help' for usage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.