2025-04-29 Fred Gleason <fredg@paravelsystems.com>

* Modified regex code in ' RDConfig::provisioningHostShortName()' and
	'RDConfig::provisioningServiceName()' to use the QRegularExpression
	class rather than QRegExp.
	* Added a 'test_provisioning' test harness in 'tests/'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2025-04-29 12:25:43 -04:00
parent 632739f59a
commit 77b1dde5c1
9 changed files with 151 additions and 43 deletions

View File

@@ -117,7 +117,7 @@ XportHostname=
CreateHost=No
NewHostTemplate=some_host_entry
NewHostIpAddress=lo
NewHostShortNameRegex=[^*]*
NewHostShortNameRegex=(\w+)-(\w+)
NewHostShortNameGroup=0
; If CreateService=Yes, a Service entry will be automatically created in the DB
@@ -128,7 +128,7 @@ NewHostShortNameGroup=0
; captured group from the regex specified in 'NewServiceNameGroup='.
CreateService=No
NewServiceTemplate=some_service_entry
NewServiceNameRegex=[^*]*
NewServiceNameRegex=(\w+)-(\w+)
NewServiceNameGroup=0
[Logs]