Skip to content

Commit

Permalink
fix test (helm-chart not in harbor api >=2.10)
Browse files Browse the repository at this point in the history
Signed-off-by: flbla <[email protected]>
  • Loading branch information
flbla committed Feb 7, 2024
1 parent c089789 commit e37b6b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
11 changes: 1 addition & 10 deletions docs/resources/robot_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ resource "harbor_robot_account" "system" {
action = "push"
resource = "repository"
}
access {
action = "read"
resource = "helm-chart"
}
access {
action = "read"
resource = "helm-chart-version"
}
kind = "project"
namespace = harbor_project.main.name
}
Expand All @@ -61,7 +53,6 @@ The above example, creates a system level robot account with permissions to
- permission to create labels on system level
- pull repository across all projects
- push repository to project "my-project-name"
- read helm-chart and helm-chart-version in project "my-project-name"

### Project Level

Expand Down Expand Up @@ -147,7 +138,7 @@ The following arguments are supported:
### Access Arguments
* **action** - (string, required) Eg. `push`, `pull`, `read`, etc. Check [available actions](https://github.com/goharbor/harbor/blob/-/src/common/rbac/const.go).

* **resource** - (string, required) Eg. `repository`, `helm-chart`, `labels`, etc. Check [available resources](https://github.com/goharbor/harbor/blob/-/src/common/rbac/const.go).
* **resource** - (string, required) Eg. `repository`, `labels`, etc. Check [available resources](https://github.com/goharbor/harbor/blob/-/src/common/rbac/const.go).

* **effect** - (string, optional) Either `allow` or `deny`. Defaults to `allow`.

Expand Down
10 changes: 1 addition & 9 deletions provider/resource_robot_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func testAccCheckRobotSystem(projectName string) string {
permissions {
access {
action = "create"
resource = "labels"
resource = "label"
}
kind = "system"
namespace = "/"
Expand All @@ -96,14 +96,6 @@ func testAccCheckRobotSystem(projectName string) string {
action = "push"
resource = "repository"
}
access {
action = "read"
resource = "helm-chart"
}
access {
action = "read"
resource = "helm-chart-version"
}
kind = "project"
namespace = harbor_project.main.name
}
Expand Down

0 comments on commit e37b6b8

Please sign in to comment.