TT#177600 Rename ngcpcfg.instances to instances.yml

This makes it clear this is not an ngcpcfg tool specific file but one
more in line with the cfg-schema and friends. It also gives it a proper
extension to make it clear it is a YAML file.

Change-Id: I6f19945a3ffc0e1406024b60e401688d7d3c68cc
mr10.5.1
Guillem Jover 4 years ago
parent 73d188a6e0
commit 57ca2ef5b6

@ -31,7 +31,7 @@ TEMPLATE_POOL_BASE="${NGCPCTL_MAIN}/templates"
SERVICES_POOL_BASE="${NGCPCTL_MAIN}/templates"
# location of instances info for templates
TEMPLATE_INSTANCES="${NGCPCTL_MAIN}/ngcpcfg.instances"
TEMPLATE_INSTANCES="${NGCPCTL_MAIN}/instances.yml"
# timestamp format for console output
TIME_FORMAT="+%F %T"

@ -23,7 +23,7 @@
[ -n "${SERVICES_POOL_BASE:-}" ] || SERVICES_POOL_BASE="${NGCPCTL_MAIN}/templates"
# location of instances info for templates
[ -n "${TEMPLATE_INSTANCES:-}" ] || TEMPLATE_INSTANCES="${NGCPCTL_MAIN}/ngcpcfg.instances"
[ -n "${TEMPLATE_INSTANCES:-}" ] || TEMPLATE_INSTANCES="${NGCPCTL_MAIN}/instances.yml"
# timestamp format for console output
[ -n "${TIME_FORMAT:-}" ] || TIME_FORMAT="+%F %T"

@ -16,7 +16,7 @@ def test_apply_instances(ngcpcfgcli, tmpdir):
env={
"NGCP_HOSTNAME": "lb01a",
"TEMPLATE_POOL_BASE": "fixtures/build_instances",
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NGCPCFG": "fixtures/ngcpcfg_carrier_instances.cfg",
},
)
@ -51,7 +51,7 @@ def test_apply_instances_changes(ngcpcfg, ngcpcfgcli, tmpdir, gitrepo):
env={
"NGCP_HOSTNAME": "lb01a",
"TEMPLATE_POOL_BASE": "fixtures/apply_instances",
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NGCPCFG": "fixtures/ngcpcfg_carrier_instances.cfg",
}
)

@ -13,7 +13,7 @@ def test_build_instances(ngcpcfgcli):
env={
"NGCP_HOSTNAME": "lb01a",
"TEMPLATE_POOL_BASE": "fixtures/build_instances",
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NGCPCFG": "fixtures/ngcpcfg_carrier_instances.cfg",
},
)
@ -58,7 +58,7 @@ def test_build_instance_customtt(ngcpcfgcli):
env={
"NGCP_HOSTNAME": "lb01a",
"TEMPLATE_POOL_BASE": "fixtures/build_instances",
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NGCPCFG": "fixtures/ngcpcfg_carrier_instances.cfg",
},
)
@ -81,7 +81,7 @@ def test_instances_info_noargs(helpercli, tmpdir):
out = helpercli(
"instances-info",
env={
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NETWORK_CONFIG": "fixtures/repos/network_carrier_instances.yml",
},
)
@ -96,7 +96,7 @@ def test_instances_info_args(helpercli, tmpdir):
"instances-info",
"/etc",
env={
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NETWORK_CONFIG": "fixtures/repos/network_carrier_instances.yml",
},
)
@ -111,7 +111,7 @@ def test_instances_info_args_same(helpercli, tmpdir):
"instances-info",
"/etc/kamailio/lb",
env={
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NETWORK_CONFIG": "fixtures/repos/network_carrier_instances.yml",
},
)
@ -126,7 +126,7 @@ def test_instances_info_args_longer(helpercli, tmpdir):
"instances-info",
"/etc/kamailio/lb/db",
env={
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NETWORK_CONFIG": "fixtures/repos/network_carrier_instances.yml",
},
)
@ -141,7 +141,7 @@ def test_instances_info_relative_path(helpercli):
"instances-info",
"../lb/db",
env={
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NETWORK_CONFIG": "fixtures/repos/network_carrier_instances.yml",
},
)

@ -14,7 +14,7 @@ def test_carrier_instances(ngcpcfgcli):
env={
"NGCP_HOSTNAME": "lb01a",
"TEMPLATE_POOL_BASE": "fixtures/build_instances",
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NGCPCFG": "fixtures/ngcpcfg_carrier_instances.cfg",
},
)
@ -48,7 +48,7 @@ def test_pro_instances(ngcpcfgcli):
env={
"NGCP_HOSTNAME": "sp1",
"TEMPLATE_POOL_BASE": "fixtures/build_instances",
"TEMPLATE_INSTANCES": "fixtures/repos/ngcp.instances",
"TEMPLATE_INSTANCES": "fixtures/repos/instances.yml",
"NGCPCFG": "fixtures/ngcpcfg_pro_instances.cfg",
},
)

Loading…
Cancel
Save