You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Guillem Jover
21d7cbbce2
TT#56053 Make the node state a run-time variable
...
Nowadays goss yml files are generated by ngcpcfg. But their content
depends on whether the node is active or not, which can change
dynamically during the lifetime of the generated files from the
templates. Which will make the goss checks fail when the node state
changes.
Switch the node state into a run-time variable, and use go template
support to parametrize this into the goss checks.
For the Template Toolkit values that get instantiated within the go
template conditionals, we need to make sure we always set a boolean
value, as the Template Toolkit will return undef on false values,
which would be considered a non-existining argument. Even though the
has_role method will always return either 0 or 1, we still force
a boolean value to make the code future-proof in case more logic is
added on the same check, which would then turn it into a Template
Toolkit boolean evaluation and possibly return nothing on false.
Change-Id: I19c3ef48f09c8d2e79613ef118adc362399a6e78
5 years ago
..
000_self-test-command.yaml.tt2
TT#16555 Make the tests universal
8 years ago
110_filesys-cores.yaml.tt2
TT#46902 Add test for /ngcp-data/coredumps and adapt /var/lib/systemd/coredump
7 years ago
120_filesys-free-space.yaml.tt2
TT#16555 Make the tests universal
8 years ago
130_filesys-ngcp.yaml.tt2
TT#72908 Fix whitespace in previous commit
5 years ago
131_filesys-ngcp-pro.yaml.tt2
TT#51416 Remove shared-files dir from CE checks
6 years ago
132_filesys-ngcp-templates.yaml.tt2
TT#16555 Make the tests universal
8 years ago
133_filesys-deprecated.yaml.tt2
TT#47721 /etc/mysql/mariadb.cnf is needed for upgrades of mariadb
7 years ago
134_filesys-voisniff.yaml.tt2
TT#72851 add test for voisniff data directory
5 years ago
200_user-debian.yaml.tt2
TT#51701 Add support for switch from deprecated /var/run to /run
6 years ago
210_user-ngcp.yaml.tt2
TT#51701 Add support for switch from deprecated /var/run to /run
6 years ago
310_package-ngcp.yaml.tt2
TT#66583 Update prosody version for mr8.2+ (to ensure new/upstream prosody is in use)
5 years ago
400_process-debian.yaml.tt2
TT#72351 Match service and process running to ngcp-service definitions
5 years ago
410_process-ngcp.yaml.tt2
TT#56053 Make the node state a run-time variable
5 years ago
411_process-ngcp-pro.yaml.tt2
TT#56053 Make the node state a run-time variable
5 years ago
500_init-daemons-dabian.yaml.tt2
TT#59361 Mark /run/systemd/generator.late as a directory
6 years ago
510_init-daemons-ngcp.yaml.tt2
TT#56053 Make the node state a run-time variable
5 years ago
610_kernel-sysctl-params.yaml.tt2
TT#46801 Update for systemd 239-7~bpo9+1
7 years ago
615_kernel-modules.yaml.tt2
TT#56053 Make the node state a run-time variable
5 years ago
800_network-hostname.yaml.tt2
TT#56053 Switch from environment variables to a goss variables file
5 years ago
810_network-dns-debian.yaml.tt2
TT#26008 Update goss to 0.3.5 + fix resolveable->resolvable, upstream fix
8 years ago
811_network-dns-ngcp-ce.yaml.tt2
TT#26008 Update goss to 0.3.5 + fix resolveable->resolvable, upstream fix
8 years ago
812_network-dns-ngcp-pro.yaml.tt2
TT#72351 Fix DNS match on CARRIER
5 years ago
820_network-ports-debian.yaml.tt2
Revert "TT#35912 Fix ssh listening address"
7 years ago
821_network-ports-ngcp.yaml.tt2
TT#56053 Make the node state a run-time variable
5 years ago
822_network-ports-ngcp-pro.yaml.tt2
TT#29920 Remove glusterfs port check, it fails very often nowadays
7 years ago
830_network-interfaces-legacy.yaml.tt2
TT#24206 Use of legacy network device names
7 years ago
900_service-ngcp-api.yaml.tt2
TT#56053 Make the node state a run-time variable
5 years ago
910_service-influxdb.yaml.tt2
TT#20091 Simplify influxdb list check (no need to grep output, goss has builtin functions)
8 years ago
911_service-grafana.yaml.tt2
TT#72351 Do not expect the grafana db on non-mgmt or li_dist nodes
5 years ago
915_service-snmp.yaml.tt2
TT#72351 Fix snmpwalk check on CARRIER
5 years ago
920_service-asterisk-odbc-pro.yaml.tt2
TT#56053 Make the node state a run-time variable
5 years ago
930_service-mariadb.yaml.tt2
TT#63466 Ensure sp1<->sp2 and db->prx replications are using GTID
6 years ago
goss.yaml.tt2
TT#56053 Switch from environment variables to a goss variables file
5 years ago