forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request redpanda-data#24053 from BenPope/core-7999-tiered-…
…storage-sanctioning [CORE-7999] Tiered storage sanctioning for topic creation
- Loading branch information
Showing
3 changed files
with
148 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2024 Redpanda Data, Inc. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.md | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0 | ||
|
||
#include "config_frontend.h" | ||
#include "redpanda/tests/fixture.h" | ||
|
||
class topic_properties_test_fixture : public redpanda_thread_fixture { | ||
public: | ||
topic_properties_test_fixture() { wait_for_controller_leadership().get(); } | ||
|
||
void revoke_license() { | ||
app.controller->get_feature_table() | ||
.invoke_on_all([](auto& ft) { return ft.revoke_license(); }) | ||
.get(); | ||
} | ||
|
||
void update_cluster_config(std::string_view k, std::string_view v) { | ||
app.controller->get_config_frontend() | ||
.local() | ||
.patch( | ||
cluster::config_update_request{ | ||
.upsert{{ss::sstring{k}, ss::sstring{v}}}, | ||
}, | ||
model::timeout_clock::now() + 5s) | ||
.get(); | ||
} | ||
}; |