summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/tacker/vars/main.yml
blob: c934090cb6ec8be01bb47b8bb669433488b9cee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
##############################################################################
# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

tacker_configs_templates:
  - src: tacker.j2
    dest:
      - /usr/local/etc/tacker/tacker.conf
elf): self.test = vnf_base.VnfOnBoardingBase(project='functest', case='aaa') self.test.project = "functest" self.test.case_name = "aaa" self.test.start_time = "1" self.test.stop_time = "5" self.test.criteria = "" self.test.details = {"orchestrator": {"status": "PASS", "result": "", "duration": 20}, "vnf": {"status": "PASS", "result": "", "duration": 15}, "test_vnf": {"status": "FAIL", "result": "", "duration": 5}} def test_deploy_vnf_unimplemented(self): with self.assertRaises(Exception) as context: self.test.deploy_vnf() self.assertTrue('VNF not deployed' in context.exception) def test_test_vnf_unimplemented(self): with self.assertRaises(Exception) as context: self.test.test_vnf()() self.assertTrue('VNF not tested' in context.exception) def test_parse_results(self): self.assertNotEqual(self.test.parse_results(), 0) if __name__ == "__main__": unittest.main(verbosity=2)