fix: rename remaining kafka references to samsa
- OpenSearch description: 'Search results for "..." - kafka' → samsa - Test error message: 'kafka trial' → samsa trial
This commit is contained in:
parent
8e9aae062b
commit
015f8b357a
2 changed files with 2 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ func writeCSV(w http.ResponseWriter, resp SearchResponse) error {
|
||||||
func writeRSS(w http.ResponseWriter, resp SearchResponse) error {
|
func writeRSS(w http.ResponseWriter, resp SearchResponse) error {
|
||||||
q := resp.Query
|
q := resp.Query
|
||||||
escapedTitle := xmlEscape("samsa search: " + q)
|
escapedTitle := xmlEscape("samsa search: " + q)
|
||||||
escapedDesc := xmlEscape("Search results for \"" + q + "\" - kafka")
|
escapedDesc := xmlEscape("Search results for \"" + q + "\" - samsa")
|
||||||
escapedQueryTerms := xmlEscape(q)
|
escapedQueryTerms := xmlEscape(q)
|
||||||
|
|
||||||
link := "/search?q=" + url.QueryEscape(q)
|
link := "/search?q=" + url.QueryEscape(q)
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ func TestFromResponse_Basic(t *testing.T) {
|
||||||
data := FromResponse(resp, "samsa trial", 1, "", "", "")
|
data := FromResponse(resp, "samsa trial", 1, "", "", "")
|
||||||
|
|
||||||
if data.Query != "samsa trial" {
|
if data.Query != "samsa trial" {
|
||||||
t.Errorf("expected query 'kafka trial', got %q", data.Query)
|
t.Errorf("expected query 'samsa trial', got %q", data.Query)
|
||||||
}
|
}
|
||||||
if data.NumberOfResults != 42 {
|
if data.NumberOfResults != 42 {
|
||||||
t.Errorf("expected 42 results, got %d", data.NumberOfResults)
|
t.Errorf("expected 42 results, got %d", data.NumberOfResults)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue