diff options
author | Geir Storli <geirstorli@yahoo.no> | 2017-06-07 10:25:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-07 10:25:00 +0200 |
commit | 76603e0cd7eec494427b3e3fef18e455dd9c6d49 (patch) | |
tree | 17478d69db1efa8ecd5125751b40dd5d4fc6202b /searchcore/src | |
parent | 0a218d6229e1deaf3bc14ffb8de0296414431b8f (diff) | |
parent | 1fa833118ee27389d1a7e3c31eef78d9f8fa25c8 (diff) |
Merge pull request #2624 from yahoo/toregge/use-example-com-instead-of-yahoo-com-in-unit-tests
Use example.com instead of yahoo.com in unit tests.
Diffstat (limited to 'searchcore/src')
-rw-r--r-- | searchcore/src/tests/proton/docsummary/docsummary.cpp | 18 | ||||
-rw-r--r-- | searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/searchcore/src/tests/proton/docsummary/docsummary.cpp b/searchcore/src/tests/proton/docsummary/docsummary.cpp index 5567eb970bb..6c36b004133 100644 --- a/searchcore/src/tests/proton/docsummary/docsummary.cpp +++ b/searchcore/src/tests/proton/docsummary/docsummary.cpp @@ -952,13 +952,13 @@ Test::requireThatUrisAreUsed() startIndexField("urisingle"). startSubField("all"). addUrlTokenizedString( - "http://www.yahoo.com:81/fluke?ab=2#4"). + "http://www.example.com:81/fluke?ab=2#4"). endSubField(). startSubField("scheme"). addUrlTokenizedString("http"). endSubField(). startSubField("host"). - addUrlTokenizedString("www.yahoo.com"). + addUrlTokenizedString("www.example.com"). endSubField(). startSubField("port"). addUrlTokenizedString("81"). @@ -977,13 +977,13 @@ Test::requireThatUrisAreUsed() startElement(1). startSubField("all"). addUrlTokenizedString( - "http://www.yahoo.com:82/fluke?ab=2#8"). + "http://www.example.com:82/fluke?ab=2#8"). endSubField(). startSubField("scheme"). addUrlTokenizedString("http"). endSubField(). startSubField("host"). - addUrlTokenizedString("www.yahoo.com"). + addUrlTokenizedString("www.example.com"). endSubField(). startSubField("port"). addUrlTokenizedString("82"). @@ -1027,13 +1027,13 @@ Test::requireThatUrisAreUsed() startElement(4). startSubField("all"). addUrlTokenizedString( - "http://www.yahoo.com:83/fluke?ab=2#12"). + "http://www.example.com:83/fluke?ab=2#12"). endSubField(). startSubField("scheme"). addUrlTokenizedString("http"). endSubField(). startSubField("host"). - addUrlTokenizedString("www.yahoo.com"). + addUrlTokenizedString("www.example.com"). endSubField(). startSubField("port"). addUrlTokenizedString("83"). @@ -1086,14 +1086,14 @@ Test::requireThatUrisAreUsed() bc.createFieldCacheRepo(getResultConfig())->getFieldCache("class0"), getMarkupFields()); - EXPECT_TRUE(assertString("http://www.yahoo.com:81/fluke?ab=2#4", + EXPECT_TRUE(assertString("http://www.example.com:81/fluke?ab=2#4", "urisingle", dsa, 1)); GeneralResultPtr res = getResult(dsa, 1); { vespalib::Slime slime; decode(res->GetEntry("uriarray"), slime); EXPECT_TRUE(slime.get().valid()); - EXPECT_EQUAL("http://www.yahoo.com:82/fluke?ab=2#8", asVstring(slime.get()[0])); + EXPECT_EQUAL("http://www.example.com:82/fluke?ab=2#8", asVstring(slime.get()[0])); EXPECT_EQUAL("http://www.flickr.com:82/fluke?ab=2#9", asVstring(slime.get()[1])); } { @@ -1104,7 +1104,7 @@ Test::requireThatUrisAreUsed() EXPECT_EQUAL(7L, slime.get()[1]["weight"].asLong()); vespalib::string arr0s = asVstring(slime.get()[0]["item"]); vespalib::string arr1s = asVstring(slime.get()[1]["item"]); - EXPECT_EQUAL("http://www.yahoo.com:83/fluke?ab=2#12", arr0s); + EXPECT_EQUAL("http://www.example.com:83/fluke?ab=2#12", arr0s); EXPECT_EQUAL("http://www.flickr.com:85/fluke?ab=2#13", arr1s); } } diff --git a/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp b/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp index 878833fa58b..b9b74527dca 100644 --- a/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp +++ b/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp @@ -369,9 +369,9 @@ Document Test::makeDocument() { doc.setValue("position2", LongFieldValue(ZCurve::encode(4, 2))); StructFieldValue uri(getDataType("url")); - uri.setValue("all", annotateTerm("http://www.yahoo.com:42/foobar?q#frag")); + uri.setValue("all", annotateTerm("http://www.example.com:42/foobar?q#frag")); uri.setValue("scheme", annotateTerm("http")); - uri.setValue("host", annotateTerm("www.yahoo.com")); + uri.setValue("host", annotateTerm("www.example.com")); uri.setValue("port", annotateTerm("42")); uri.setValue("path", annotateTerm("foobar")); uri.setValue("query", annotateTerm("q")); @@ -379,10 +379,10 @@ Document Test::makeDocument() { doc.setValue("uri", uri); ArrayFieldValue uri_array(getDataType("Array<url>")); - uri.setValue("all", annotateTerm("http://www.yahoo.com:80/foobar?q#frag")); + uri.setValue("all", annotateTerm("http://www.example.com:80/foobar?q#frag")); uri.setValue("port", annotateTerm("80")); uri_array.add(uri); - uri.setValue("all", annotateTerm("https://www.yahoo.com:443/foo?q#frag")); + uri.setValue("all", annotateTerm("https://www.example.com:443/foo?q#frag")); uri.setValue("scheme", annotateTerm("https")); uri.setValue("path", annotateTerm("foo")); uri.setValue("port", annotateTerm("443")); |