[openstack-dev] [openstack-infra] Using Neutron client in the gate

2015-12-10 Thread Gal Sagie
Hello All,

I would like to run some "fullstack" integration tests for Kuryr and run
them in
the gate.
For the tests i would like to use the Neutron client for communicating with
the
working devstack Neutron service.

What is the best way to instantiate the client in terms of auth_url and
credentials ?
(I saw 'secretadmin' is used as admin password, but wondered if using hard
coded
args is the best approach)

Thanks
Gal.
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [openstack-infra] Using Neutron client in the gate

2015-12-10 Thread Akihiro Motoki
Hi Gal,

One simple way is to get credentials from clouds.yaml (through
os-client-config).
devstack prepares clouds.yaml (~/.config/openstack/clouds.yaml) which contains
both devstack-admin (admin) and devstack (demo) account.

neutronclient functional test is a good example.
http://git.openstack.org/cgit/openstack/python-neutronclient/tree/neutronclient/tests/functional/base.py#n19

I hope it helps you.

Akihiro


2015-12-10 18:50 GMT+09:00 Gal Sagie :
> Hello All,
>
> I would like to run some "fullstack" integration tests for Kuryr and run
> them in
> the gate.
> For the tests i would like to use the Neutron client for communicating with
> the
> working devstack Neutron service.
>
> What is the best way to instantiate the client in terms of auth_url and
> credentials ?
> (I saw 'secretadmin' is used as admin password, but wondered if using hard
> coded
> args is the best approach)
>
> Thanks
> Gal.
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev