~charmers/charms/trusty/neutron-agents-midonet/trunk

« back to all changes in this revision

Viewing changes to tests/006-minimal-trusty-kilo-mem

  • Committer: Antoni Segura Puimedon
  • Date: 2016-02-12 00:39:19 UTC
  • Revision ID: toni@midokura.com-20160212003919-kpj0ure01no229fh
amulet: remove old tests and add check for nova-api-metadata

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
#
 
3
# Copyright (c) 2015 Midokura SARL, All Rights Reserved.
 
4
#
 
5
# Licensed under the Apache License, Version 2.0 (the "License");
 
6
# you may not use this file except in compliance with the License.
 
7
# You may obtain a copy of the License at
 
8
#
 
9
#    http://www.apache.org/licenses/LICENSE-2.0
 
10
#
 
11
# Unless required by applicable law or agreed to in writing, software
 
12
# distributed under the License is distributed on an "AS IS" BASIS,
 
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
# See the License for the specific language governing permissions and
 
15
# limitations under the License.
 
16
import os
 
17
 
 
18
import basic_deployment
 
19
 
 
20
if __name__ == '__main__':
 
21
    if None in (os.getenv('MEM_USERNAME'), os.getenv('MEM_PWD')):
 
22
        print('Missing MEM_USERNAME and MEM_PWD environment variables for '
 
23
              'running Midokura Enterprise MidoNet tests. Skipping test')
 
24
    else:
 
25
        deployment = basic_deployment.AgentMinimumDeployment(
 
26
            ubuntu_series='trusty',
 
27
            openstack_origin='cloud:trusty-kilo',
 
28
            midonet_origin='mem-1.9')
 
29
        deployment.run_tests()