X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=tests%2Fbase.py;h=c7dad6dc41f27b3adbf6ff338f4b1a02ff0a36a5;hp=ce95056d7e436253c3658edf3f7375c39e2cf902;hb=2d413435b8530cf7b2c8e49cf8cf157679e72432;hpb=32a1519183709fbcdd4fe02fe901f34a42f6cf6b;ds=sidebyside diff --git a/tests/base.py b/tests/base.py index ce95056..c7dad6d 100644 --- a/tests/base.py +++ b/tests/base.py @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +# Copyright 2019 Canonical Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import asyncio import datetime import logging @@ -118,6 +132,7 @@ def get_n2vc(loop=None): vca_user = os.getenv('VCA_USER', 'admin') vca_charms = os.getenv('VCA_CHARMS', None) vca_secret = os.getenv('VCA_SECRET', None) + vca_cacert = os.getenv('VCA_CACERT', None) # Get the Juju Public key juju_public_key = get_juju_public_key() @@ -148,6 +163,7 @@ def get_n2vc(loop=None): artifacts=vca_charms, loop=loop, juju_public_key=juju_public_key, + ca_cert=vca_cacert, ) return client