# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test UserApi")
api.instance <- UserApi$new()
test_that("CreateUser", {
# tests for CreateUser
# base path: http://petstore.swagger.io/v2
# Create user
# This can only be done by the logged in user.
# @param body User Created user object
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("CreateUsersWithArrayInput", {
# tests for CreateUsersWithArrayInput
# base path: http://petstore.swagger.io/v2
# Creates list of users with given input array
# @param body array[User] List of user object
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("CreateUsersWithListInput", {
# tests for CreateUsersWithListInput
# base path: http://petstore.swagger.io/v2
# Creates list of users with given input array
# @param body array[User] List of user object
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("DeleteUser", {
# tests for DeleteUser
# base path: http://petstore.swagger.io/v2
# Delete user
# This can only be done by the logged in user.
# @param username character The name that needs to be deleted
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("GetUserByName", {
# tests for GetUserByName
# base path: http://petstore.swagger.io/v2
# Get user by user name
# @param username character The name that needs to be fetched. Use user1 for testing.
# @return [User]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("LoginUser", {
# tests for LoginUser
# base path: http://petstore.swagger.io/v2
# Logs user into the system
# @param username character The user name for login
# @param password character The password for login in clear text
# @return [character]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("LogoutUser", {
# tests for LogoutUser
# base path: http://petstore.swagger.io/v2
# Logs out current logged in user session
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("UpdateUser", {
# tests for UpdateUser
# base path: http://petstore.swagger.io/v2
# Updated user
# This can only be done by the logged in user.
# @param username character name that need to be deleted
# @param body User Updated user object
# @return [Void]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.