Skip to content

Commit be74b7a

Browse files
committed
RSCBC-220: Don't run ping test against community edition
1 parent 60fdfce commit be74b7a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

sdk/couchbase-core/tests/common/features.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ pub enum TestFeatureCode {
6969
HistoryRetention,
7070
UserGroups,
7171
UsersMB69096,
72+
PingRSCBC220,
7273
}
7374

7475
impl TestAgent {
@@ -101,6 +102,9 @@ impl TestAgent {
101102
TestFeatureCode::UsersMB69096 => {
102103
!self.cluster_version.equal(&SERVER_VERSION_800_COMMUNITY)
103104
}
105+
TestFeatureCode::PingRSCBC220 => {
106+
self.cluster_version.edition != Some(NodeEdition::Community)
107+
}
104108
}
105109
}
106110
}

sdk/couchbase-core/tests/diagnostics.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
use crate::common::default_agent_options::create_default_options;
20+
use crate::common::features::TestFeatureCode;
2021
use crate::common::test_config::{run_test, setup_test};
2122
use couchbase_core::agent::Agent;
2223
use couchbase_core::connection_state::ConnectionState;
@@ -35,6 +36,10 @@ mod common;
3536
#[test]
3637
fn test_ping() {
3738
run_test(async |mut agent| {
39+
if !agent.supports_feature(&TestFeatureCode::PingRSCBC220) {
40+
return;
41+
}
42+
3843
let opts = PingOptions::new()
3944
.kv_timeout(Duration::from_millis(1000))
4045
.query_timeout(Duration::from_millis(75000))

0 commit comments

Comments
 (0)