You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.0 KiB

2 years ago
  1. /*
  2. Seaweedfs Master Server API
  3. Testing DefaultApiService
  4. */
  5. // Code generated by OpenAPI Generator (https://openapi-generator.tech);
  6. package openapi
  7. import (
  8. "context"
  9. openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
  10. "github.com/stretchr/testify/assert"
  11. "github.com/stretchr/testify/require"
  12. "testing"
  13. )
  14. func Test_openapi_DefaultApiService(t *testing.T) {
  15. configuration := openapiclient.NewConfiguration()
  16. apiClient := openapiclient.NewAPIClient(configuration)
  17. t.Run("Test DefaultApiService DirAssign", func(t *testing.T) {
  18. t.Skip("skip test") // remove to run test
  19. resp, httpRes, err := apiClient.DefaultApi.DirAssign(context.Background()).Execute()
  20. require.Nil(t, err)
  21. require.NotNil(t, resp)
  22. assert.Equal(t, 200, httpRes.StatusCode)
  23. })
  24. t.Run("Test DefaultApiService DirLookup", func(t *testing.T) {
  25. t.Skip("skip test") // remove to run test
  26. resp, httpRes, err := apiClient.DefaultApi.DirLookup(context.Background()).Execute()
  27. require.Nil(t, err)
  28. require.NotNil(t, resp)
  29. assert.Equal(t, 200, httpRes.StatusCode)
  30. })
  31. }