Skip to content

Commit

Permalink
tested rabbitmq_parse_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
meetagrawal09 committed Jul 1, 2023
1 parent c6a4d2d commit e9516fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/remote/tests/testthat/test.rabbitmq.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test_that("`rabbitmq_parse_uri()` able to parse the rabbitmq uri to smaller variables", {
uri <- "amqp://guest:guest@localhost:15672/myvhost"
result <- rabbitmq_parse_uri(uri)
expect_equal(result$url, "http://localhost:15672/")
expect_equal(result$vhost$path, c("myvhost"))
expect_equal(result$username, "guest")
expect_equal(result$password, "guest")
})

0 comments on commit e9516fa

Please sign in to comment.