Skip to content

Commit

Permalink
Change _ for - in error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
rtorrero committed Oct 18, 2023
1 parent 7558959 commit 7b819ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/factsengine/gatherers/sapinstancehostnameresolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ var (
hostnameRegexCompiled = regexp.MustCompile(`(.+)_(.+)_(.+)`) // <SID>_<InstanceNumber>_<Hostname>
regexSubgroupsCount = 4
SapInstanceHostnameResolverDetailsError = entities.FactGatheringError{
Type: "sapinstance_hostname_resolver-details-error",
Type: "sapinstance-hostname-resolver-details-error",
Message: "error gathering details",
}
SapInstanceHostnameResolverGathererDecodingError = entities.FactGatheringError{
Type: "sapinstance_hostname_resolver-decoding-error",
Type: "sapinstance-hostname-resolver-decoding-error",
Message: "error decoding output to FactValue",
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (suite *SapInstanceHostnameResolverTestSuite) TestSapInstanceHostnameResolv

factResults, err := g.Gather(factRequests)
suite.Nil(factResults)
suite.EqualError(err, "fact gathering error: sapinstance_hostname_resolver-details-error - error gathering details: open /sapmnt/QAS/profile: file does not exist")
suite.EqualError(err, "fact gathering error: sapinstance-hostname-resolver-details-error - error gathering details: open /sapmnt/QAS/profile: file does not exist")
}

func (suite *SapInstanceHostnameResolverTestSuite) TestSapInstanceHostnameResolverLookupHostError() {
Expand Down

0 comments on commit 7b819ae

Please sign in to comment.