Skip to content

Commit

Permalink
dt/rbac_upgrade: Upgrade to head version instead of a specific 24.x
Browse files Browse the repository at this point in the history
The intent of this test is to show that upgrading from a non-RBAC
supporting version to an RBAC supporting build creates the Users
role.

Previously, we would install v24.1.x explicitly. This broke because
we have tagged v24.2.0-dev (which bumps the head version) but have
NOT yet tagged v24.1.1 (so 24.1 doesn't appear in released_versions).

Simplest solution here is to upgrade directly to head version from
a non-RBAC supporting version, which should have the same effect
functionally but is more general.

Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
  • Loading branch information
oleiman committed Apr 24, 2024
1 parent 016d51a commit dd763ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/rptest/tests/rbac_upgrade_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def test_rbac_migration(self):
self.admin.create_user("bob")

# Update all nodes to newest version
self.installer.install(self.redpanda.nodes, (24, 1))
self.installer.install(self.redpanda.nodes,
self.installer.head_version())
self.redpanda.restart_nodes(self.redpanda.nodes)
_ = wait_for_num_versions(self.redpanda, 1)

Expand Down

0 comments on commit dd763ce

Please sign in to comment.