Skip to content

Commit

Permalink
Update bc tests to include versions up to 4.14.0
Browse files Browse the repository at this point in the history
### Motivation

4.14.0 release 

### Changes

followed https://bookkeeper.apache.org/community/release_guide/#verify-docker-image and used apache#2171 as example



Reviewers: Enrico Olivelli <eolivelli@gmail.com>

This closes apache#2719 from dlg99/bctests-4_14
  • Loading branch information
dlg99 authored and Sunny-Island committed Jun 2, 2021
1 parent 43f3ddb commit 1e8cab0
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class TestCompatOldClients {
private static byte[] PASSWD = "foobar".getBytes()

// 4.1.0 doesn't work because metadata format changed
private def oldClientVersions = ["4.4.0", "4.5.1", "4.6.2", "4.7.2", "4.8.2", "4.9.2" ]
private def oldClientVersions = ["4.4.0", "4.5.1", "4.6.2", "4.7.2", "4.8.2", "4.9.2",
"4.10.0", "4.11.1", "4.12.1", "4.13.0", "4.14.0" ]

@ArquillianResource
DockerClient docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class TestCompatUpgradeWithHostnameBookieId {
private static final Logger LOG = LoggerFactory.getLogger(TestCompatUpgradeWithHostnameBookieId.class)
private static byte[] PASSWD = "foobar".getBytes()

private def oldClientVersions = ["4.4.0", "4.5.1", "4.6.2", "4.7.2", "4.8.2", "4.9.2"]
private def oldClientVersions = ["4.4.0", "4.5.1", "4.6.2", "4.7.2", "4.8.2", "4.9.2",
"4.10.0", "4.11.1", "4.12.1", "4.13.0", "4.14.0" ]

@ArquillianResource
DockerClient docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,70 @@ class TestCompatUpgrade {
}

@Test
public void test472toCurrentMaster() throws Exception {
testUpgrade("4.7.2", System.getProperty("currentVersion"))
public void test472to480() throws Exception {
testUpgrade("4.7.2", "4.8.0")
}

@Test
public void test480to481() throws Exception {
testUpgrade("4.8.0", "4.8.1")
}


@Test
public void test481to482() throws Exception {
testUpgrade("4.8.1", "4.8.2")
}

@Test
public void test490to491() throws Exception {
testUpgrade("4.9.0", "4.9.1")
}


@Test
public void test491to492() throws Exception {
testUpgrade("4.9.1", "4.9.2")
}

@Test
public void test492to4100() throws Exception {
testUpgrade("4.9.2", "4.10.0")
}

@Test
public void test4100to4110() throws Exception {
testUpgrade("4.10.0", "4.11.0")
}

@Test
public void test4110to4111() throws Exception {
testUpgrade("4.11.0", "4.11.1")
}

@Test
public void test4111to4120() throws Exception {
testUpgrade("4.11.1", "4.12.0")
}


@Test
public void test4120to4121() throws Exception {
testUpgrade("4.12.0", "4.12.1")
}

@Test
public void test4121to4130() throws Exception {
testUpgrade("4.12.1", "4.13.0")
}

@Test
public void test4130to4140() throws Exception {
testUpgrade("4.13.0", "4.14.0")
}

@Test
public void test414toCurrentMaster() throws Exception {
testUpgrade("4.14.0", System.getProperty("currentVersion"))
}
}
8 changes: 8 additions & 0 deletions tests/docker-images/all-released-versions-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.7.1/bookkee
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.7.2/bookkeeper-server-4.7.2-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.8.2/bookkeeper-server-4.8.2-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.9.2/bookkeeper-server-4.9.2-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.10.0/bookkeeper-server-4.10.0-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.11.0/bookkeeper-server-4.11.0-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.11.1/bookkeeper-server-4.11.1-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.12.0/bookkeeper-server-4.12.0-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.12.1/bookkeeper-server-4.12.1-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.13.0/bookkeeper-server-4.13.0-bin.tar.gz{,.sha512,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.14.0/bookkeeper-server-4.14.0-bin.tar.gz{,.sha512,.asc}

RUN wget -nv https://archive.apache.org/dist/incubator/pulsar/pulsar-1.21.0-incubating/apache-pulsar-1.21.0-incubating-bin.tar.gz{,.asc}
RUN wget -nv https://dist.apache.org/repos/dist/release/bookkeeper/KEYS
RUN wget -nv http://svn.apache.org/repos/asf/zookeeper/bookkeeper/dist/KEYS?p=1620552 -O KEYS.old
Expand Down

0 comments on commit 1e8cab0

Please sign in to comment.