Skip to content

Commit 2091b95

Browse files
authored
RCBC-476: FeatureNotAvailable for cb2 ping/diagnostics (#139)
1 parent 73a166e commit 2091b95

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/couchbase/protostellar/bucket.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def default_collection
4646
def collections
4747
Management::CollectionManager.new(client: @client, bucket_name: @name)
4848
end
49+
50+
def ping(_options = Options::Ping::DEFAULT)
51+
raise Couchbase::Error::FeatureNotAvailable, "The #{Protostellar::NAME} protocol does not support ping"
52+
end
4953
end
5054
end
5155
end

lib/couchbase/protostellar/cluster.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ def search_query(index_name, query, options = Couchbase::Options::Search::DEFAUL
144144
ResponseConverter::Search.to_search_result(resp, options)
145145
end
146146

147+
def diagnostics(_options = Options::Diagnostics::DEFAULT)
148+
raise Couchbase::Error::FeatureNotAvailable, "The #{Protostellar::NAME} protocol does not support diagnostics"
149+
end
150+
151+
def ping(_options = Options::Ping::DEFAULT)
152+
raise Couchbase::Error::FeatureNotAvailable, "The #{Protostellar::NAME} protocol does not support ping"
153+
end
154+
147155
private
148156

149157
def initialize(host, options = ConnectOptions.new)

0 commit comments

Comments
 (0)