rabbitmq - How to use Rabbit inside a gitlab-ci.yml file? -


i want test gitlab-ci.yml rpc nameko server.

i can't succeed make work rabitt inside .gitlab-ci.yml::

image: python:latest  before_script:   - apt-get update -yq   - apt-get install -y python-dev python-pip tree   - curl -i http://guest:guest@rabbitmq:8080/api/overview  mytest:   artifacts:     paths:     - dist   script:   - pip install -r requirements.txt    - pip install .   - pytest --amqp-uri=amqp://guest:guest@rabbitmq:5672 --rabbit-ctl-uri=http://guest:guest@rabbitmq:15672 tests   # - python setup.py test   - python setup.py bdist_wheel  look:   stage: deploy   script:   - ls -lah dist services:   - rabbitmq:3-management 

the rabbit start correctly::

2017-04-13t18:19:23.436309219z  2017-04-13t18:19:23.436409026z               rabbitmq 3.6.9. copyright (c) 2007-2016 pivotal software, inc. 2017-04-13t18:19:23.436432568z   ##  ##      licensed under mpl.  see http://www.rabbitmq.com/ 2017-04-13t18:19:23.436451431z   ##  ## 2017-04-13t18:19:23.436468542z   ##########  logs: tty 2017-04-13t18:19:23.436485607z   ######  ##        tty 2017-04-13t18:19:23.436501886z   ########## 2017-04-13t18:19:23.436519036z               starting broker... 2017-04-13t18:19:23.440790736z  2017-04-13t18:19:23.440809836z =info report==== 13-apr-2017::18:19:23 === 2017-04-13t18:19:23.440819014z starting rabbitmq 3.6.9 on erlang 19.3 2017-04-13t18:19:23.440827601z copyright (c) 2007-2016 pivotal software, inc. 2017-04-13t18:19:23.440835737z licensed under mpl.  see http://www.rabbitmq.com/ 2017-04-13t18:19:23.443408721z  2017-04-13t18:19:23.443429311z =info report==== 13-apr-2017::18:19:23 === 2017-04-13t18:19:23.443439837z node           : rabbit@ea1a207b738e 2017-04-13t18:19:23.443449307z home dir       : /var/lib/rabbitmq 2017-04-13t18:19:23.443460663z config file(s) : /etc/rabbitmq/rabbitmq.config 2017-04-13t18:19:23.443470393z cookie hash    : h6vfb5lezz4gr1nguqovsg== 2017-04-13t18:19:23.443480053z log            : tty 2017-04-13t18:19:23.443489256z sasl log       : tty 2017-04-13t18:19:23.443498676z database dir   : /var/lib/rabbitmq/mnesia/rabbit@ea1a207b738e 2017-04-13t18:19:27.717290199z  2017-04-13t18:19:27.717345348z =info report==== 13-apr-2017::18:19:27 === 2017-04-13t18:19:27.717355143z memory limit set 3202mb of 8005mb total. 2017-04-13t18:19:27.726821043z  2017-04-13t18:19:27.726841925z =info report==== 13-apr-2017::18:19:27 === 2017-04-13t18:19:27.726850927z disk free limit set 50mb 2017-04-13t18:19:27.732864417z  2017-04-13t18:19:27.732882507z =info report==== 13-apr-2017::18:19:27 === 2017-04-13t18:19:27.732891347z limiting approx 1048476 file handles (943626 sockets) 2017-04-13t18:19:27.733030868z  2017-04-13t18:19:27.733041770z =info report==== 13-apr-2017::18:19:27 === 2017-04-13t18:19:27.733049763z fhc read buffering:  off 2017-04-13t18:19:27.733126168z fhc write buffering: on 2017-04-13t18:19:27.793026622z  2017-04-13t18:19:27.793043832z =info report==== 13-apr-2017::18:19:27 === 2017-04-13t18:19:27.793052900z database directory @ /var/lib/rabbitmq/mnesia/rabbit@ea1a207b738e empty. initialising scratch... 2017-04-13t18:19:27.800414211z  2017-04-13t18:19:27.800429311z =info report==== 13-apr-2017::18:19:27 === 2017-04-13t18:19:27.800438013z     application: mnesia 2017-04-13t18:19:27.800464988z     exited: stopped 2017-04-13t18:19:27.800473228z     type: temporary 2017-04-13t18:19:28.129404329z  2017-04-13t18:19:28.129482072z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.129491680z waiting mnesia tables 30000 ms, 9 retries left 2017-04-13t18:19:28.153509130z  2017-04-13t18:19:28.153526528z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.153535638z waiting mnesia tables 30000 ms, 9 retries left 2017-04-13t18:19:28.193558406z  2017-04-13t18:19:28.193600316z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.193611144z waiting mnesia tables 30000 ms, 9 retries left 2017-04-13t18:19:28.194448672z  2017-04-13t18:19:28.194464866z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.194475629z priority queues enabled, real bq rabbit_variable_queue 2017-04-13t18:19:28.208882072z  2017-04-13t18:19:28.208912016z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.208921824z starting rabbit_node_monitor 2017-04-13t18:19:28.211145158z  2017-04-13t18:19:28.211169236z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.211182089z management plugin: using rates mode 'basic' 2017-04-13t18:19:28.224499311z  2017-04-13t18:19:28.224527962z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.224538810z msg_store_transient: using rabbit_msg_store_ets_index provide index 2017-04-13t18:19:28.226355958z  2017-04-13t18:19:28.226376272z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.226385706z msg_store_persistent: using rabbit_msg_store_ets_index provide index 2017-04-13t18:19:28.227832476z  2017-04-13t18:19:28.227870221z =warning report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.227891823z msg_store_persistent: rebuilding indices scratch 2017-04-13t18:19:28.230832501z  2017-04-13t18:19:28.230872729z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.230893941z adding vhost '/' 2017-04-13t18:19:28.385440862z  2017-04-13t18:19:28.385520360z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.385540022z creating user 'guest' 2017-04-13t18:19:28.398092244z  2017-04-13t18:19:28.398184254z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.398206496z setting user tags user 'guest' [administrator] 2017-04-13t18:19:28.413704571z  2017-04-13t18:19:28.413789806z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.413810378z setting permissions 'guest' in '/' '.*', '.*', '.*' 2017-04-13t18:19:28.451109821z  2017-04-13t18:19:28.451162892z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.451172185z started tcp listener on [::]:5672 2017-04-13t18:19:28.475429729z  2017-04-13t18:19:28.475491074z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.475501172z management plugin started. port: 15672 2017-04-13t18:19:28.475821397z  2017-04-13t18:19:28.475835599z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.475844143z statistics database started. 2017-04-13t18:19:28.487572236z  completed 6 plugins. 2017-04-13t18:19:28.487797794z  2017-04-13t18:19:28.487809763z =info report==== 13-apr-2017::18:19:28 === 2017-04-13t18:19:28.487818426z server startup complete; 6 plugins started. 2017-04-13t18:19:28.487826288z  * rabbitmq_management 2017-04-13t18:19:28.487833914z  * rabbitmq_web_dispatch 2017-04-13t18:19:28.487841610z  * rabbitmq_management_agent 2017-04-13t18:19:28.487861057z  * amqp_client 2017-04-13t18:19:28.487875546z  * cowboy 2017-04-13t18:19:28.487883514z  * cowlib  ********* 

but error

$ pytest --amqp-uri=amqp://guest:guest@rabbitmq:5672 --rabbit-ctl-uri=http://guest:guest@rabbitmq:15672 tests ============================= test session starts ============================== platform linux -- python 3.6.1, pytest-3.0.7, py-1.4.33, pluggy-0.4.0 ... e           exception: connection error rabbitmq management http api @ http://guest:guest@rabbitmq:15672/api/overview, enabled? ... source:565: deprecationwarning: invalid escape sequence \* error: job failed: exit code 1 


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -