Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rptest: run rpk tests against redpanda cloud #12558

Merged
merged 7 commits into from
Aug 7, 2023

Conversation

andrewhsu
Copy link
Member

@andrewhsu andrewhsu commented Aug 2, 2023

Updates to the redpanda ducktape test helpers RpkTool and RpkConsumer so they can connect to redpanda cloud. This enables RpkToolTest, which does various topic operations, to be able to test redpanda cloud.

Fixes https://github.com/redpanda-data/cloudv2/issues/7909

Output of manual test run against redpanda cloud:

bash$ ducktape --debug --globals=/home/ubuntu/redpanda/tests/globals.json --cluster=ducktape.cluster.json.JsonCluster --cluster-file=/home/ubuntu/redpanda/tests/cluster.json --test-runner-timeout=3600000 tests/rptest/tests/rpk_topic_test.py::RpkToolTest
...
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_consume_as_group
status:     PASS
run time:   25.118 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_consume_from_partition
status:     PASS
run time:   16.124 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_consume_newest
status:     PASS
run time:   37.517 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_consume_oldest
status:     PASS
run time:   56.293 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_produce
status:     PASS
run time:   37.001 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_create_topic
status:     PASS
run time:   6.571 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_add_unfeasible_number_of_partitions
status:     PASS
run time:   6.435 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_create_topic_with_invalid_config.config_type=cleanup.policy
status:     PASS
run time:   5.953 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_create_topic_with_invalid_config.config_type=compaction.strategy
status:     PASS
run time:   5.781 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_create_topic_with_invalid_config.config_type=compression.type
status:     PASS
run time:   6.187 seconds
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_topic_test.RpkToolTest.test_create_topic_with_invalid_config.config_type=message.timestamp.type
status:     PASS
run time:   5.920 seconds 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
============================================================================================================================================================================================================================
SESSION REPORT (ALL TESTS)
ducktape version: 0.8.8   
session_id:       2023-08-04--011
run time:         3 minutes 29.055 seconds
tests run:        11
passed:           11
failed:           0
ignored:          0
opassed:          0
ofailed:          0
============================================================================================================================================================================================================================

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.2.x
  • v23.1.x
  • v22.3.x

Release Notes

  • none

@andrewhsu
Copy link
Member Author

/ci-repeat 1
skip-units
tests/rptest/tests/rpk_topic_test.py::RpkToolTest.test_create_topic

@andrewhsu
Copy link
Member Author

unrelated unit test failure and all ducktape tests pass. this PR is ready for review.

@andrewhsu andrewhsu marked this pull request as ready for review August 5, 2023 05:19
@savex
Copy link
Contributor

savex commented Aug 7, 2023

Build fails seems unrelated to current changes

@andrewhsu andrewhsu merged commit 0173f19 into redpanda-data:dev Aug 7, 2023
25 checks passed
@andrewhsu andrewhsu deleted the rpk-smoke branch August 7, 2023 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants