Skip to content

Commit da2ec6d

Browse files
authored
Bump integration tests to use Hadoop 3.4.0 (#98)
1 parent 8da3336 commit da2ec6d

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

crates/hdfs-native/minidfs/pom.xml

+15-4
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,35 @@
1111
<dependency>
1212
<groupId>org.apache.hadoop</groupId>
1313
<artifactId>hadoop-minicluster</artifactId>
14-
<version>3.3.6</version>
14+
<version>3.4.0</version>
15+
<exclusions>
16+
<exclusion>
17+
<groupId>ch.qos.logback</groupId>
18+
<artifactId>*</artifactId>
19+
</exclusion>
20+
</exclusions>
1521
</dependency>
1622
<dependency>
1723
<groupId>org.apache.hadoop</groupId>
1824
<artifactId>hadoop-minikdc</artifactId>
19-
<version>3.3.6</version>
25+
<version>3.4.0</version>
2026
</dependency>
2127
<dependency>
2228
<groupId>org.apache.hadoop</groupId>
2329
<artifactId>hadoop-hdfs-rbf</artifactId>
24-
<version>3.3.6</version>
30+
<version>3.4.0</version>
2531
</dependency>
2632
<dependency>
2733
<groupId>org.apache.hadoop</groupId>
2834
<artifactId>hadoop-hdfs-rbf</artifactId>
29-
<version>3.3.6</version>
35+
<version>3.4.0</version>
3036
<type>test-jar</type>
3137
</dependency>
38+
<dependency>
39+
<groupId>org.apache.hadoop</groupId>
40+
<artifactId>hadoop-federation-balance</artifactId>
41+
<version>3.4.0</version>
42+
</dependency>
3243
<dependency>
3344
<groupId>junit</groupId>
3445
<artifactId>junit</artifactId>

crates/hdfs-native/tests/test_ec.rs

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ mod test {
7474
async fn test_erasure_coded_read() -> Result<()> {
7575
let _ = env_logger::builder().is_test(true).try_init();
7676

77+
#[allow(unused_mut)]
7778
let mut dfs_features = HashSet::from([DfsFeatures::EC]);
7879
#[cfg(feature = "kerberos")]
7980
dfs_features.insert(DfsFeatures::Security);
@@ -118,6 +119,7 @@ mod test {
118119
async fn test_erasure_coded_write() -> Result<()> {
119120
let _ = env_logger::builder().is_test(true).try_init();
120121

122+
#[allow(unused_mut)]
121123
let mut dfs_features = HashSet::from([DfsFeatures::EC]);
122124
#[cfg(feature = "kerberos")]
123125
dfs_features.insert(DfsFeatures::Security);

crates/hdfs-native/tests/test_integration.rs

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ mod test {
3434

3535
#[tokio::test]
3636
#[serial]
37+
#[cfg(feature = "kerberos")]
3738
async fn test_integrity_kerberos() {
3839
test_with_features(&HashSet::from([
3940
DfsFeatures::Security,
@@ -81,6 +82,7 @@ mod test {
8182

8283
#[tokio::test]
8384
#[serial]
85+
#[cfg(feature = "kerberos")]
8486
async fn test_aes() {
8587
test_with_features(&HashSet::from([
8688
DfsFeatures::Security,
@@ -93,6 +95,7 @@ mod test {
9395

9496
#[tokio::test]
9597
#[serial]
98+
#[cfg(feature = "kerberos")]
9699
async fn test_forced_data_transfer_encryption() {
97100
// DataTransferEncryption enabled but privacy isn't, still force encryption
98101
test_with_features(&HashSet::from([
@@ -105,6 +108,7 @@ mod test {
105108

106109
#[tokio::test]
107110
#[serial]
111+
#[cfg(feature = "kerberos")]
108112
async fn test_data_transfer_encryption() {
109113
test_with_features(&HashSet::from([
110114
DfsFeatures::Security,
@@ -117,6 +121,7 @@ mod test {
117121

118122
#[tokio::test]
119123
#[serial]
124+
#[cfg(feature = "kerberos")]
120125
async fn test_data_transfer_encryption_aes() {
121126
test_with_features(&HashSet::from([
122127
DfsFeatures::Security,

crates/hdfs-native/tests/test_write_resiliency.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod test {
1818
#[cfg(feature = "kerberos")]
1919
let _dfs = MiniDfs::with_features(&HashSet::from([DfsFeatures::HA, DfsFeatures::Security]));
2020
#[cfg(not(feature = "kerberos"))]
21-
let _dfs = MiniDfs::with_features(&HashSet::from([DfsFeatures::HA, DfsFeatures::RBF]));
21+
let _dfs = MiniDfs::with_features(&HashSet::from([DfsFeatures::HA]));
2222
let client = Client::default();
2323

2424
// Second client for checking lease

0 commit comments

Comments
 (0)