bunnyshell.com/sdk@v0.16.0/test/api_component_git_test.go (about)

     1  /*
     2  API Bunnyshell Environments
     3  
     4  Testing ComponentGitAPIService
     5  
     6  */
     7  
     8  // Code generated by OpenAPI Generator (https://openapi-generator.tech);
     9  
    10  package sdk
    11  
    12  import (
    13  	openapiclient "bunnyshell.com/sdk"
    14  	"context"
    15  	"github.com/stretchr/testify/assert"
    16  	"github.com/stretchr/testify/require"
    17  	"testing"
    18  )
    19  
    20  func Test_sdk_ComponentGitAPIService(t *testing.T) {
    21  
    22  	configuration := openapiclient.NewConfiguration()
    23  	apiClient := openapiclient.NewAPIClient(configuration)
    24  
    25  	t.Run("Test ComponentGitAPIService ComponentGitList", func(t *testing.T) {
    26  
    27  		t.Skip("skip test") // remove to run test
    28  
    29  		resp, httpRes, err := apiClient.ComponentGitAPI.ComponentGitList(context.Background()).Execute()
    30  
    31  		require.Nil(t, err)
    32  		require.NotNil(t, resp)
    33  		assert.Equal(t, 200, httpRes.StatusCode)
    34  
    35  	})
    36  
    37  	t.Run("Test ComponentGitAPIService ComponentGitView", func(t *testing.T) {
    38  
    39  		t.Skip("skip test") // remove to run test
    40  
    41  		var id string
    42  
    43  		resp, httpRes, err := apiClient.ComponentGitAPI.ComponentGitView(context.Background(), id).Execute()
    44  
    45  		require.Nil(t, err)
    46  		require.NotNil(t, resp)
    47  		assert.Equal(t, 200, httpRes.StatusCode)
    48  
    49  	})
    50  
    51  }