Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CodeArts): move codearts inspector and deploy to new directory #6019

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading