summaryrefslogtreecommitdiffstats
path: root/nfvparser/tox.ini
blob: 8fc2a88641b53b9a3c41aa96b7568192df55acc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[tox]
minversion = 1.6
envlist = py27,pep8
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'

[testenv:pep8]
commands = flake8

[testenv:venv]
commands = {posargs}

[testenv:cover]
commands = python setup.py testr --coverage --coverage-package-name=toscaparser --testr-args='{posargs}'

[testenv:docs]
commands = python setup.py build_sphinx

[testenv:debug]
commands = oslo_debug_helper -t toscaparser/tests {posargs}

[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.

show-source = True
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
input: dh_location_id heartbeatService: type: dcae.nodes.DockerContainerForComponentsUsingDmaap properties: application_config: streams_publishes: dcae_cl_out: dmaap_info: topic_url: get_input: snmp_publish_url type: message_router snmptrap.version: "1.3.0" snmptrap.title: "ONAP SNMP Trap Receiver" protocols.transport: "udp" protocols.ipv4_interface: "0.0.0.0" protocols.ipv4_port: 162 protocols.ipv6_interface: "::1" protocols.ipv6_port: 162 cache.dns_cache_ttl_seconds: 60 publisher.http_timeout_milliseconds: 1500 publisher.http_retries: 3 publisher.http_milliseconds_between_retries: 750 publisher.http_primary_publisher: "true" publisher.http_peer_publisher: "unavailable" publisher.max_traps_between_publishes: 10 publisher.max_milliseconds_between_publishes: 10000 files.runtime_base_dir: "/opt/app/snmptrap" files.log_dir: "logs" files.data_dir: "data" files.pid_dir: "tmp" files.arriving_traps_log: "snmptrapd_arriving_traps.log" files.snmptrapd_diag: "snmptrapd_prog_diag.log" files.traps_stats_log: "snmptrapd_stats.csv" files.perm_status_file: "snmptrapd_status.log" files.eelf_base_dir: "/opt/app/snmptrap/logs" files.eelf_error: "error.log" files.eelf_debug: "debug.log" files.eelf_audit: "audit.log" files.eelf_metrics: "metrics.log" files.roll_frequency: "hour" files.minimum_severity_to_log: 2 trap_def.1.trap_oid" : ".1.3.6.1.4.1.74.2.46.12.1.1" trap_def.1.trap_category: "DCAE-SNMP-TRAPS" trap_def.2.trap_oid" : "*" trap_def.2.trap_category: "DCAE-SNMP-TRAPS" stormwatch.1.stormwatch_oid" : ".1.3.6.1.4.1.74.2.46.12.1.1" stormwatch.1.low_water_rearm_per_minute" : "5" stormwatch.1.high_water_arm_per_minute" : "100" stormwatch.2.stormwatch_oid" : ".1.3.6.1.4.1.74.2.46.12.1.2" stormwatch.2.low_water_rearm_per_minute" : "2" stormwatch.2.high_water_arm_per_minute" : "200" stormwatch.3.stormwatch_oid" : ".1.3.6.1.4.1.74.2.46.12.1.2" stormwatch.3.low_water_rearm_per_minute" : "2" stormwatch.3.high_water_arm_per_minute" : "200" docker_config: healthcheck: script: /app/bin/check_health.py interval: 18s timeout: 30s type: docker image: get_input: tag_version location_id: get_input: dh_location_id service_component_type: dcaegen2-collectors-snmptrap relationships: - target: docker_service_host type: dcae.relationships.component_contained_in