Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions apricot/local/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,13 @@ var _ = Describe("local service", func() {
Expect(err).To(HaveOccurred())
})
})
When("retrieving the detector spelled lower-case for a host", func() {
// not supported
It("should produce an error", func() {
detector, err = svc.GetDetectorForHost("abc")
Expect(err).To(HaveOccurred())
})
})
})
Describe("getting detectors for hosts", func() {
var (
Expand Down Expand Up @@ -550,6 +557,13 @@ var _ = Describe("local service", func() {
Expect(err).To(HaveOccurred())
})
})
When("retrieving the link IDs for a detector spelled lower-case", func() {
// not supported
It("should produce an error", func() {
linkIDs, err = svc.GetAliasedLinkIDsForDetector("abc", false)
Expect(err).To(HaveOccurred())
})
})
When("retrieving the link IDs for a detector without readoutcard config", func() {
It("should produce an error", func() {
linkIDs, err = svc.GetAliasedLinkIDsForDetector("DEF", false)
Expand Down
2 changes: 1 addition & 1 deletion core/integration/dcs/dcsutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func resolveDefaults(detectorArgMap map[string]string, varStack map[string]strin
}

func addEnabledLinks(detectorArgMap map[string]string, varStack map[string]string, ecsDetector string, theLog *logrus.Entry) map[string]string {
sendDetLinks, ok := varStack[ecsDetector+"_dcs_send_enabled_links"]
sendDetLinks, ok := varStack[strings.ToLower(ecsDetector)+"_dcs_send_enabled_links"]
if !ok || sendDetLinks != "true" {
return detectorArgMap
}
Expand Down