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

     1  /*
     2  API Bunnyshell Environments
     3  
     4  Testing ProjectVariableAPIService
     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_ProjectVariableAPIService(t *testing.T) {
    21  
    22  	configuration := openapiclient.NewConfiguration()
    23  	apiClient := openapiclient.NewAPIClient(configuration)
    24  
    25  	t.Run("Test ProjectVariableAPIService ProjectVariableCreate", func(t *testing.T) {
    26  
    27  		t.Skip("skip test") // remove to run test
    28  
    29  		resp, httpRes, err := apiClient.ProjectVariableAPI.ProjectVariableCreate(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 ProjectVariableAPIService ProjectVariableDelete", func(t *testing.T) {
    38  
    39  		t.Skip("skip test") // remove to run test
    40  
    41  		var id string
    42  
    43  		httpRes, err := apiClient.ProjectVariableAPI.ProjectVariableDelete(context.Background(), id).Execute()
    44  
    45  		require.Nil(t, err)
    46  		assert.Equal(t, 200, httpRes.StatusCode)
    47  
    48  	})
    49  
    50  	t.Run("Test ProjectVariableAPIService ProjectVariableEdit", func(t *testing.T) {
    51  
    52  		t.Skip("skip test") // remove to run test
    53  
    54  		var id string
    55  
    56  		resp, httpRes, err := apiClient.ProjectVariableAPI.ProjectVariableEdit(context.Background(), id).Execute()
    57  
    58  		require.Nil(t, err)
    59  		require.NotNil(t, resp)
    60  		assert.Equal(t, 200, httpRes.StatusCode)
    61  
    62  	})
    63  
    64  	t.Run("Test ProjectVariableAPIService ProjectVariableList", func(t *testing.T) {
    65  
    66  		t.Skip("skip test") // remove to run test
    67  
    68  		resp, httpRes, err := apiClient.ProjectVariableAPI.ProjectVariableList(context.Background()).Execute()
    69  
    70  		require.Nil(t, err)
    71  		require.NotNil(t, resp)
    72  		assert.Equal(t, 200, httpRes.StatusCode)
    73  
    74  	})
    75  
    76  	t.Run("Test ProjectVariableAPIService ProjectVariableView", func(t *testing.T) {
    77  
    78  		t.Skip("skip test") // remove to run test
    79  
    80  		var id string
    81  
    82  		resp, httpRes, err := apiClient.ProjectVariableAPI.ProjectVariableView(context.Background(), id).Execute()
    83  
    84  		require.Nil(t, err)
    85  		require.NotNil(t, resp)
    86  		assert.Equal(t, 200, httpRes.StatusCode)
    87  
    88  	})
    89  
    90  }