Skip to content

Commit

Permalink
feat(CodeArts): move codearts inspector and deploy to new directory
Browse files Browse the repository at this point in the history
  • Loading branch information
saf3dfsa committed Dec 13, 2024
1 parent e365479 commit d2e8e9c
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 53 deletions.
19 changes: 11 additions & 8 deletions huaweicloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/cnad"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/coc"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/codearts"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/codeartsdeploy"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/codeartsinspector"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/cph"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/cpts"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/cse"
Expand Down Expand Up @@ -2173,14 +2175,15 @@ func Provider() *schema.Provider {
"huaweicloud_cpts_task": cpts.ResourceTask(),

// CodeArts
"huaweicloud_codearts_project": codearts.ResourceProject(),
"huaweicloud_codearts_repository": codearts.ResourceRepository(),
"huaweicloud_codearts_deploy_application": codearts.ResourceDeployApplication(),
"huaweicloud_codearts_deploy_group": codearts.ResourceDeployGroup(),
"huaweicloud_codearts_deploy_host": codearts.ResourceDeployHost(),

"huaweicloud_codearts_inspector_website": codearts.ResourceInspectorWebsite(),
"huaweicloud_codearts_inspector_website_scan": codearts.ResourceInspectorWebsiteScan(),
"huaweicloud_codearts_project": codearts.ResourceProject(),
"huaweicloud_codearts_repository": codearts.ResourceRepository(),

"huaweicloud_codearts_deploy_application": codeartsdeploy.ResourceDeployApplication(),
"huaweicloud_codearts_deploy_group": codeartsdeploy.ResourceDeployGroup(),
"huaweicloud_codearts_deploy_host": codeartsdeploy.ResourceDeployHost(),

"huaweicloud_codearts_inspector_website": codeartsinspector.ResourceInspectorWebsite(),
"huaweicloud_codearts_inspector_website_scan": codeartsinspector.ResourceInspectorWebsiteScan(),

"huaweicloud_dsc_instance": dsc.ResourceDscInstance(),
"huaweicloud_dsc_asset_obs": dsc.ResourceAssetObs(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codearts
package codeartsdeploy

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codearts
package codeartsdeploy

import (
"fmt"
Expand Down Expand Up @@ -191,6 +191,15 @@ func TestAccDeployGroup_errorCheck(t *testing.T) {
})
}

func testProject_basic(name string) string {
return fmt.Sprintf(`
resource "huaweicloud_codearts_project" "test" {
name = "%s"
type = "scrum"
}
`, name)
}

func testDeployGroup_basic(name string) string {
return fmt.Sprintf(`
%s
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codearts
package codeartsdeploy

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codearts
package codeartsinspector

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codearts
package codeartsinspector

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// ---------------------------------------------------------------
// *** AUTO GENERATED CODE ***
// @Product ProjectMan
// ---------------------------------------------------------------

package codearts

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// ---------------------------------------------------------------
// *** AUTO GENERATED CODE ***
// @Product CodeHub
// ---------------------------------------------------------------

package codearts

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// ---------------------------------------------------------------
// *** AUTO GENERATED CODE ***
// @Product CodeArts
// ---------------------------------------------------------------

package codearts
package codeartsdeploy

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// ---------------------------------------------------------------
// *** AUTO GENERATED CODE ***
// @Product CodeArts
// ---------------------------------------------------------------

package codearts
package codeartsdeploy

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// ---------------------------------------------------------------
// *** AUTO GENERATED CODE ***
// @Product CodeArts
// ---------------------------------------------------------------

package codearts
package codeartsdeploy

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// ---------------------------------------------------------------
// *** AUTO GENERATED CODE ***
// @Product CodeArts
// ---------------------------------------------------------------

package codearts
package codeartsinspector

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// ---------------------------------------------------------------
// *** AUTO GENERATED CODE ***
// @Product CodeArts
// ---------------------------------------------------------------

package codearts
package codeartsinspector

import (
"context"
Expand Down

0 comments on commit d2e8e9c

Please sign in to comment.