Skip to content

Commit

Permalink
Merge pull request #5731 from r-vasquez/patch-license-test
Browse files Browse the repository at this point in the history
test: patch rpk cluster license test
  • Loading branch information
r-vasquez committed Jul 29, 2022
2 parents b15d5a5 + 0c0502e commit e08b1f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/rptest/tests/rpk_cluster_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ def test_upload_cluster_license_rpk(self):

@cluster(num_nodes=3)
def test_upload_cluster_license_error(self):
license = get_cluster_license()
if license is None:
self.logger.info(
"Skipping test, REDPANDA_SAMPLE_LICENSE env var not found")
return

with expect_exception(RpkException,
lambda e: "Internal Server Error" in str(e)):
license = get_cluster_license()
if license is None:
self.logger.info(
"Skipping test, REDPANDA_SAMPLE_LICENSE env var not found")
return

with tempfile.NamedTemporaryFile() as tf:
tf.write(bytes(license + 'r', 'UTF-8'))
tf.seek(0)
Expand Down

0 comments on commit e08b1f9

Please sign in to comment.