diff --git a/v1/providers/launchpad/gen/launchpad/test/api_auth_test.go b/v1/providers/launchpad/gen/launchpad/test/api_auth_test.go index f2db4fd2..bb71399b 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_auth_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_auth_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_AuthAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AuthAPIService V1AuthLoginCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AuthAPI.V1AuthLoginCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_AuthAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test AuthAPIService V1AuthLogoutCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AuthAPI.V1AuthLogoutCreate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_AuthAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test AuthAPIService V1AuthPasswordChangeCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AuthAPI.V1AuthPasswordChangeCreate(context.Background()).Execute() @@ -55,11 +50,9 @@ func Test_openapi_AuthAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test AuthAPIService V1AuthRedirectRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AuthAPI.V1AuthRedirectRetrieve(context.Background()).Execute() @@ -67,7 +60,5 @@ func Test_openapi_AuthAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_deployments_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_deployments_test.go index 5dbe6e55..68017040 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_catalog_deployments_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_deployments_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogDeploymentsAPI.V1CatalogDeploymentsBulkPartialUpdate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogDeploymentsAPI.V1CatalogDeploymentsCreate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -57,11 +52,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -71,11 +64,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsInstancesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -85,11 +76,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogDeploymentsAPI.V1CatalogDeploymentsList(context.Background()).Execute() @@ -97,11 +86,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsNotesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -111,11 +98,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsNotesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -125,11 +110,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsNotesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -139,11 +122,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsNotesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -154,11 +135,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsNotesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -169,11 +148,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsNotesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -184,11 +161,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -198,11 +173,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsPipelinesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -212,11 +185,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsPipelinesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -226,11 +197,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsPipelinesTriggerCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -240,11 +209,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -254,11 +221,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsServicesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -268,11 +233,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsServicesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -282,11 +245,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsSshKeysCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -296,11 +257,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsSshKeysDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -310,11 +269,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsSshKeysList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -324,22 +281,18 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsStatsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test httpRes, err := apiClient.CatalogDeploymentsAPI.V1CatalogDeploymentsStatsRetrieve(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsTasksCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -349,11 +302,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsTasksList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -363,11 +314,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsTasksRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var deploymentId string @@ -378,11 +327,9 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogDeploymentsAPIService V1CatalogDeploymentsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -392,7 +339,5 @@ func Test_openapi_CatalogDeploymentsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_experiences_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_experiences_test.go index 651490a3..9ed1c59f 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_catalog_experiences_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_experiences_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesBulkCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogExperiencesAPI.V1CatalogExperiencesBulkCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogExperiencesAPI.V1CatalogExperiencesBulkPartialUpdate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogExperiencesAPI.V1CatalogExperiencesCreate(context.Background()).Execute() @@ -55,11 +50,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -68,11 +61,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -82,11 +73,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogExperiencesAPI.V1CatalogExperiencesList(context.Background()).Execute() @@ -94,11 +83,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesNotesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var experienceId string @@ -108,11 +95,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesNotesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var experienceId string @@ -122,11 +107,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesNotesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var experienceId string @@ -136,11 +119,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesNotesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var experienceId string @@ -151,11 +132,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesNotesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var experienceId string @@ -166,11 +145,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesNotesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var experienceId string @@ -181,11 +158,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -195,11 +170,9 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -209,22 +182,18 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesStatsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test httpRes, err := apiClient.CatalogExperiencesAPI.V1CatalogExperiencesStatsRetrieve(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogExperiencesAPIService V1CatalogExperiencesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -234,7 +203,5 @@ func Test_openapi_CatalogExperiencesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_gpu_os_choices_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_gpu_os_choices_test.go index 45859a9a..1efcbd40 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_catalog_gpu_os_choices_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_gpu_os_choices_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_CatalogGpuOsChoicesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CatalogGpuOsChoicesAPIService V1CatalogGpuOsChoicesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogGpuOsChoicesAPI.V1CatalogGpuOsChoicesCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_CatalogGpuOsChoicesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogGpuOsChoicesAPIService V1CatalogGpuOsChoicesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogGpuOsChoicesAPI.V1CatalogGpuOsChoicesList(context.Background()).Execute() @@ -43,7 +40,5 @@ func Test_openapi_CatalogGpuOsChoicesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_instance_types_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_instance_types_test.go index de184339..2f6a7e78 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_catalog_instance_types_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_instance_types_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_CatalogInstanceTypesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CatalogInstanceTypesAPIService V1CatalogInstanceTypesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogInstanceTypesAPI.V1CatalogInstanceTypesList(context.Background()).Execute() @@ -31,7 +30,5 @@ func Test_openapi_CatalogInstanceTypesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_persona_choices_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_persona_choices_test.go index 2ed0af88..93b07d2c 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_catalog_persona_choices_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_persona_choices_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_CatalogPersonaChoicesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CatalogPersonaChoicesAPIService V1CatalogPersonaChoicesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogPersonaChoicesAPI.V1CatalogPersonaChoicesCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_CatalogPersonaChoicesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogPersonaChoicesAPIService V1CatalogPersonaChoicesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogPersonaChoicesAPI.V1CatalogPersonaChoicesList(context.Background()).Execute() @@ -43,7 +40,5 @@ func Test_openapi_CatalogPersonaChoicesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_runtimes_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_runtimes_test.go index a2719672..b679b5b0 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_catalog_runtimes_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_runtimes_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CatalogRuntimesAPIService V1CatalogRuntimesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogRuntimesAPI.V1CatalogRuntimesCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogRuntimesAPIService V1CatalogRuntimesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -44,11 +41,9 @@ func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogRuntimesAPIService V1CatalogRuntimesHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -58,11 +53,9 @@ func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogRuntimesAPIService V1CatalogRuntimesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogRuntimesAPI.V1CatalogRuntimesList(context.Background()).Execute() @@ -70,11 +63,9 @@ func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogRuntimesAPIService V1CatalogRuntimesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -84,11 +75,9 @@ func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogRuntimesAPIService V1CatalogRuntimesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -98,11 +87,9 @@ func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogRuntimesAPIService V1CatalogRuntimesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -112,7 +99,5 @@ func Test_openapi_CatalogRuntimesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_catalog_vgpu_profile_choices_test.go b/v1/providers/launchpad/gen/launchpad/test/api_catalog_vgpu_profile_choices_test.go index 94e8be51..dc7b8d3f 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_catalog_vgpu_profile_choices_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_catalog_vgpu_profile_choices_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_CatalogVgpuProfileChoicesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CatalogVgpuProfileChoicesAPIService V1CatalogVgpuProfileChoicesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogVgpuProfileChoicesAPI.V1CatalogVgpuProfileChoicesCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_CatalogVgpuProfileChoicesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test CatalogVgpuProfileChoicesAPIService V1CatalogVgpuProfileChoicesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.CatalogVgpuProfileChoicesAPI.V1CatalogVgpuProfileChoicesList(context.Background()).Execute() @@ -43,7 +40,5 @@ func Test_openapi_CatalogVgpuProfileChoicesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_health_test.go b/v1/providers/launchpad/gen/launchpad/test/api_health_test.go index 508bb941..74d62c3a 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_health_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_health_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_HealthAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test HealthAPIService HealthRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.HealthAPI.HealthRetrieve(context.Background()).Execute() @@ -31,7 +30,5 @@ func Test_openapi_HealthAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_identity_profile_test.go b/v1/providers/launchpad/gen/launchpad/test/api_identity_profile_test.go index d5ec9d2f..2045e752 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_identity_profile_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_identity_profile_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_IdentityProfileAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IdentityProfileAPIService V1IdentityProfilePartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.IdentityProfileAPI.V1IdentityProfilePartialUpdate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_IdentityProfileAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test IdentityProfileAPIService V1IdentityProfileRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.IdentityProfileAPI.V1IdentityProfileRetrieve(context.Background()).Execute() @@ -43,7 +40,5 @@ func Test_openapi_IdentityProfileAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_clusters_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_clusters_test.go index 3f1d09d0..1b636692 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_inventory_clusters_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_clusters_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_InventoryClustersAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test InventoryClustersAPIService V1InventoryClustersBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryClustersAPI.V1InventoryClustersBulkPartialUpdate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryClustersAPI.V1InventoryClustersCreate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -56,11 +51,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -70,11 +63,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryClustersAPI.V1InventoryClustersList(context.Background()).Execute() @@ -82,11 +73,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -96,11 +85,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersPipelinesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var clusterId string @@ -110,11 +97,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersPipelinesTriggerCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -124,11 +109,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersProvisionCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryClustersAPI.V1InventoryClustersProvisionCreate(context.Background()).Execute() @@ -136,11 +119,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersProvisionDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -150,11 +131,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersProvisionPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -164,11 +143,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -178,22 +155,18 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersStatsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test httpRes, err := apiClient.InventoryClustersAPI.V1InventoryClustersStatsRetrieve(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersTenantsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var clusterId string @@ -203,11 +176,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersTenantsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var clusterId string @@ -217,11 +188,9 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryClustersAPIService V1InventoryClustersUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -231,7 +200,5 @@ func Test_openapi_InventoryClustersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_gpus_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_gpus_test.go index 44748588..e0e4ccab 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_inventory_gpus_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_gpus_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_InventoryGpusAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test InventoryGpusAPIService V1InventoryGpusBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryGpusAPI.V1InventoryGpusBulkPartialUpdate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryGpusAPI.V1InventoryGpusCreate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -56,11 +51,9 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -70,11 +63,9 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryGpusAPI.V1InventoryGpusList(context.Background()).Execute() @@ -82,11 +73,9 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -96,11 +85,9 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -110,22 +97,18 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusStatsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test httpRes, err := apiClient.InventoryGpusAPI.V1InventoryGpusStatsRetrieve(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryGpusAPIService V1InventoryGpusUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -135,7 +118,5 @@ func Test_openapi_InventoryGpusAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_instances_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_instances_test.go index 078c4ad4..b32544ca 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_inventory_instances_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_instances_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_InventoryInstancesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryInstancesAPI.V1InventoryInstancesBulkPartialUpdate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryInstancesAPI.V1InventoryInstancesCreate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -56,11 +51,9 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -70,11 +63,9 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryInstancesAPI.V1InventoryInstancesList(context.Background()).Execute() @@ -82,11 +73,9 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -96,11 +85,9 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -110,11 +97,9 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryInstancesAPIService V1InventoryInstancesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -124,7 +109,5 @@ func Test_openapi_InventoryInstancesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_locations_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_locations_test.go index fa7658d8..ff7176f5 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_inventory_locations_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_locations_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_InventoryLocationsAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test InventoryLocationsAPIService V1InventoryLocationsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryLocationsAPI.V1InventoryLocationsCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_InventoryLocationsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryLocationsAPIService V1InventoryLocationsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -44,11 +41,9 @@ func Test_openapi_InventoryLocationsAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryLocationsAPIService V1InventoryLocationsHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -58,11 +53,9 @@ func Test_openapi_InventoryLocationsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryLocationsAPIService V1InventoryLocationsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryLocationsAPI.V1InventoryLocationsList(context.Background()).Execute() @@ -70,11 +63,9 @@ func Test_openapi_InventoryLocationsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryLocationsAPIService V1InventoryLocationsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -84,11 +75,9 @@ func Test_openapi_InventoryLocationsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryLocationsAPIService V1InventoryLocationsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -98,11 +87,9 @@ func Test_openapi_InventoryLocationsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryLocationsAPIService V1InventoryLocationsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -112,7 +99,5 @@ func Test_openapi_InventoryLocationsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_nodes_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_nodes_test.go index 302b4e49..8e3f0e12 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_inventory_nodes_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_nodes_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_InventoryNodesAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test InventoryNodesAPIService V1InventoryNodesBulkCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryNodesAPI.V1InventoryNodesBulkCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryNodesAPI.V1InventoryNodesBulkPartialUpdate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryNodesAPI.V1InventoryNodesCreate(context.Background()).Execute() @@ -55,11 +50,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -68,11 +61,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -82,11 +73,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryNodesAPI.V1InventoryNodesList(context.Background()).Execute() @@ -94,11 +83,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -108,11 +95,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -122,11 +107,9 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryNodesAPIService V1InventoryNodesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -136,7 +119,5 @@ func Test_openapi_InventoryNodesAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_oems_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_oems_test.go index 3a8a11da..69cb0dcc 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_inventory_oems_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_oems_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_InventoryOemsAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test InventoryOemsAPIService V1InventoryOemsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryOemsAPI.V1InventoryOemsCreate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_InventoryOemsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryOemsAPIService V1InventoryOemsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -44,11 +41,9 @@ func Test_openapi_InventoryOemsAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryOemsAPIService V1InventoryOemsHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -58,11 +53,9 @@ func Test_openapi_InventoryOemsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryOemsAPIService V1InventoryOemsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryOemsAPI.V1InventoryOemsList(context.Background()).Execute() @@ -70,11 +63,9 @@ func Test_openapi_InventoryOemsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryOemsAPIService V1InventoryOemsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -84,11 +75,9 @@ func Test_openapi_InventoryOemsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryOemsAPIService V1InventoryOemsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -98,11 +87,9 @@ func Test_openapi_InventoryOemsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryOemsAPIService V1InventoryOemsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -112,7 +99,5 @@ func Test_openapi_InventoryOemsAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_inventory_providers_test.go b/v1/providers/launchpad/gen/launchpad/test/api_inventory_providers_test.go index 20da6146..d64a560e 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_inventory_providers_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_inventory_providers_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_InventoryProvidersAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryProvidersAPI.V1InventoryProvidersBulkPartialUpdate(context.Background()).Execute() @@ -31,11 +30,9 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryProvidersAPI.V1InventoryProvidersCreate(context.Background()).Execute() @@ -43,11 +40,9 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -56,11 +51,9 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersHistoryList", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -70,11 +63,9 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersList", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.InventoryProvidersAPI.V1InventoryProvidersList(context.Background()).Execute() @@ -82,11 +73,9 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -96,11 +85,9 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -110,22 +97,18 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersStatsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test httpRes, err := apiClient.InventoryProvidersAPI.V1InventoryProvidersStatsRetrieve(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - }) t.Run("Test InventoryProvidersAPIService V1InventoryProvidersUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test var id string @@ -135,7 +118,5 @@ func Test_openapi_InventoryProvidersAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/launchpad/gen/launchpad/test/api_version_test.go b/v1/providers/launchpad/gen/launchpad/test/api_version_test.go index 41a05bf5..617c2c73 100644 --- a/v1/providers/launchpad/gen/launchpad/test/api_version_test.go +++ b/v1/providers/launchpad/gen/launchpad/test/api_version_test.go @@ -11,19 +11,18 @@ package openapi import ( "context" + "testing" + openapiclient "github.com/brevdev/cloud/v1/providers/launchpad/gen/launchpad" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_openapi_VersionAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test VersionAPIService VersionRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.VersionAPI.VersionRetrieve(context.Background()).Execute() @@ -31,7 +30,5 @@ func Test_openapi_VersionAPIService(t *testing.T) { require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - }) - } diff --git a/v1/providers/shadeform/ufw.go b/v1/providers/shadeform/ufw.go index ae666ecc..5590fa3c 100644 --- a/v1/providers/shadeform/ufw.go +++ b/v1/providers/shadeform/ufw.go @@ -14,10 +14,35 @@ const ( ufwDefaultAllowPort22 = "ufw allow 22/tcp" ufwDefaultAllowPort2222 = "ufw allow 2222/tcp" ufwForceEnable = "ufw --force enable" + + // + ipTablesAllowDockerUserInpboundLoopback = "iptables -I DOCKER-USER -i lo -j ACCEPT" + ipTablesAllowDockerUserOutbound = "iptables -I DOCKER-USER -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT" + ipTablesDropDockerUserInbound = "iptables -A DOCKER-USER -j DROP" ) func (c *ShadeformClient) GenerateFirewallScript(firewallRules v1.FirewallRules) (string, error) { - commands := []string{ufwForceReset, ufwDefaultDropIncoming, ufwDefaultAllowOutgoing, ufwDefaultAllowPort22, ufwDefaultAllowPort2222} + var commands []string + commands = append(commands, c.getUFWCommands(firewallRules)...) + commands = append(commands, c.getIPTablesCommands()...) + + script := "" + for _, command := range commands { + script += fmt.Sprintf("%v\n", command) + } + + encoded := base64.StdEncoding.EncodeToString([]byte(script)) + return encoded, nil +} + +func (c *ShadeformClient) getUFWCommands(firewallRules v1.FirewallRules) []string { + commands := []string{ + ufwForceReset, + ufwDefaultDropIncoming, + ufwDefaultAllowOutgoing, + ufwDefaultAllowPort22, + ufwDefaultAllowPort2222, + } for _, firewallRule := range firewallRules.IngressRules { commands = append(commands, c.convertIngressFirewallRuleToUfwCommand(firewallRule)...) @@ -30,13 +55,16 @@ func (c *ShadeformClient) GenerateFirewallScript(firewallRules v1.FirewallRules) // Add the enable command commands = append(commands, ufwForceEnable) - script := "" - for _, command := range commands { - script += fmt.Sprintf("%v\n", command) - } + return commands +} - encoded := base64.StdEncoding.EncodeToString([]byte(script)) - return encoded, nil +func (c *ShadeformClient) getIPTablesCommands() []string { + commands := []string{ + ipTablesAllowDockerUserInpboundLoopback, + ipTablesAllowDockerUserOutbound, + ipTablesDropDockerUserInbound, + } + return commands } func (c *ShadeformClient) convertIngressFirewallRuleToUfwCommand(firewallRule v1.FirewallRule) []string {