bunnyshell.com/sdk@v0.16.0/test/api_environment_variable_test.go (about) 1 /* 2 API Bunnyshell Environments 3 4 Testing EnvironmentVariableAPIService 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_EnvironmentVariableAPIService(t *testing.T) { 21 22 configuration := openapiclient.NewConfiguration() 23 apiClient := openapiclient.NewAPIClient(configuration) 24 25 t.Run("Test EnvironmentVariableAPIService EnvironmentVariableEdit", func(t *testing.T) { 26 27 t.Skip("skip test") // remove to run test 28 29 var id string 30 31 resp, httpRes, err := apiClient.EnvironmentVariableAPI.EnvironmentVariableEdit(context.Background(), id).Execute() 32 33 require.Nil(t, err) 34 require.NotNil(t, resp) 35 assert.Equal(t, 200, httpRes.StatusCode) 36 37 }) 38 39 t.Run("Test EnvironmentVariableAPIService EnvironmentVariableList", func(t *testing.T) { 40 41 t.Skip("skip test") // remove to run test 42 43 resp, httpRes, err := apiClient.EnvironmentVariableAPI.EnvironmentVariableList(context.Background()).Execute() 44 45 require.Nil(t, err) 46 require.NotNil(t, resp) 47 assert.Equal(t, 200, httpRes.StatusCode) 48 49 }) 50 51 t.Run("Test EnvironmentVariableAPIService EnvironmentVariableView", func(t *testing.T) { 52 53 t.Skip("skip test") // remove to run test 54 55 var id string 56 57 resp, httpRes, err := apiClient.EnvironmentVariableAPI.EnvironmentVariableView(context.Background(), id).Execute() 58 59 require.Nil(t, err) 60 require.NotNil(t, resp) 61 assert.Equal(t, 200, httpRes.StatusCode) 62 63 }) 64 65 }