@@ -58,17 +58,22 @@ load 'test/test_helper.bash'
5858
5959@test " [howtos] - search.js" {
6060 runExample $HOWTOS_DIR search.js
61- assert_success
62-
63- # Check output for search-query-match[] snippet
64- assert_output --partial " [search-query-match] result count: 5"
61+ # This whole example is going to fail due to the below bug:
62+ # https://issues.couchbase.com/browse/JSCBC-1044
63+ assert_failure
64+
65+ diag " TODO: Uncomment (lines 66-76) when JSCBC-1044 is fixed"
66+ # assert_success
6567
66- # Check output for search-query-matchPhrase[] snippet
67- assert_output --partial " [search-query-matchPhrase] result count: 4"
68- assert_output --partial " hotel_11331"
69- assert_output --partial " hotel_15915"
70- assert_output --partial " hotel_3606"
71- assert_output --partial " hotel_28259"
68+ # # Check output for search-query-match[] snippet
69+ # assert_output --partial "[search-query-match] result count: 5"
70+
71+ # # Check output for search-query-matchPhrase[] snippet
72+ # assert_output --partial "[search-query-matchPhrase] result count: 4"
73+ # assert_output --partial "hotel_11331"
74+ # assert_output --partial "hotel_15915"
75+ # assert_output --partial "hotel_3606"
76+ # assert_output --partial "hotel_28259"
7277
7378 # Check output for search-query-dateRange[] snippet.
7479 # https://issues.couchbase.com/browse/JSCBC-942, errors thrown for consistency/consistentWith query options.
@@ -78,36 +83,40 @@ load 'test/test_helper.bash'
7883
7984@test " [howtos] - search-conjuncts-disjuncts.js" {
8085 runExample $HOWTOS_DIR search-conjuncts-disjuncts.js
81- assert_success
82-
83- # Check output for search-query-conjuncts[] snippet
84- assert_output --partial " [search-query-conjuncts] result count: 2"
85-
86- # Check output for search-query-disjuncts[] snippet
87- assert_output --partial " [search-query-disjuncts] result count: 11"
88-
89- # Check output for handle-hits[] snippet
90- assert_output --partial " Result #1 ID: hotel_21726"
91-
92- # Check output for handle-facets[] snippet
93- assert_output --partial << -EOF
94- Descriptions facet: {
95- field: 'description',
96- total: 223,
97- missing: 0,
98- other: 195,
99- terms: [
100- { term: 'louvre', count: 7 },
101- { term: 'hotel', count: 6 },
102- { term: 'rooms', count: 6 },
103- { term: 'eiffel', count: 5 },
104- { term: 'close', count: 4 }
105- ]
106- }
107- EOF
86+ # This whole example is going to fail due to the below bug:
87+ # https://issues.couchbase.com/browse/JSCBC-1044
88+ assert_failure
89+
90+ diag " TODO: Uncomment (lines 91-117) when JSCBC-1044 is fixed"
91+ # assert_success
92+
93+ # # Check output for search-query-conjuncts[] snippet
94+ # assert_output --partial "[search-query-conjuncts] result count: 2"
95+
96+ # # Check output for search-query-disjuncts[] snippet
97+ # assert_output --partial "[search-query-disjuncts] result count: 11"
98+
99+ # # Check output for handle-hits[] snippet
100+ # assert_output --partial "Result #1 ID: hotel_21726"
101+
102+ # # Check output for handle-facets[] snippet
103+ # assert_output --partial <<-EOF
104+ # Descriptions facet: {
105+ # field: 'description',
106+ # total: 223,
107+ # missing: 0,
108+ # other: 195,
109+ # terms: [
110+ # { term: 'louvre', count: 7 },
111+ # { term: 'hotel', count: 6 },
112+ # { term: 'rooms', count: 6 },
113+ # { term: 'eiffel', count: 5 },
114+ # { term: 'close', count: 4 }
115+ # ]
116+ # }
117+ # EOF
108118}
109119
110-
111120@test " [howtos] - subdoc.js" {
112121 runExample $HOWTOS_DIR subdoc.js
113122 assert_success
128137 # Check output for mutate-increment[] snippet
129138 assert_output --partial << -EOF
130139mutate-increment
131- { value: 1 }
140+ MutateInResultEntry { value: 1 }
132141EOF
133142}
134143
141150 runExample $HOWTOS_DIR views.js
142151 assert_success
143152}
153+
154+ @test " [howtos] - transactions-example.ts" {
155+ # It compiles at least, so that should be enough validation.
156+ skip " Needs to be run on a multi-node cluster"
157+
158+ runTSExample $HOWTOS_DIR transactions-example.ts
159+ assert_success
160+ }
0 commit comments