Created
July 19, 2021 21:42
-
-
Save mattkasa/8c99e1170f8eb3da554cd6aa74b481a3 to your computer and use it in GitHub Desktop.
TestAccGitLabProjectApprovalRule_basic failing debug output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ make testacc SERVICE=gitlab-ee RUN=TestAccGitLabProjectApprovalRule_basic TF_LOG=DEBUG | |
TF_ACC=1 GITLAB_TOKEN=ACCTEST GITLAB_BASE_URL=http://127.0.0.1:8080/api/v4 go test -v ./gitlab -test.run TestAccGitLabProjectApprovalRule_basic -timeout 40m | |
2021/07/19 14:38:39 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/ HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: Go-http-client/1.1 | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:39 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 404 Not Found | |
Content-Length: 25 | |
Cache-Control: no-cache | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:39 GMT | |
Server: nginx | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9TPK9Z0JMWMBBDQR1YS8 | |
X-Runtime: 0.036446 | |
{ | |
"error": "404 Not Found" | |
} | |
----------------------------------------------------- | |
2021/07/19 14:38:39 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/user HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: go-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:40 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:40 GMT | |
Etag: W/"b6129a989d0ce9a069dad15fe09a7a32" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9TQV7G7HY2D5ZRBA2BXV | |
X-Runtime: 0.122420 | |
3c6 | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root", | |
"created_at": "2021-07-08T23:59:53.460Z", | |
"bio": "", | |
"bio_html": "", | |
"location": null, | |
"public_email": "", | |
"skype": "", | |
"linkedin": "", | |
"twitter": "", | |
"website_url": "", | |
"organization": null, | |
"job_title": "", | |
"bot": false, | |
"work_information": null, | |
"followers": 0, | |
"following": 0, | |
"last_sign_in_at": null, | |
"confirmed_at": "2021-07-08T23:59:53.285Z", | |
"last_activity_on": "2021-07-19", | |
"email": "[email protected]", | |
"theme_id": 1, | |
"color_scheme_id": 1, | |
"projects_limit": 100000, | |
"current_sign_in_at": null, | |
"identities": [], | |
"can_create_group": true, | |
"can_create_project": true, | |
"two_factor_enabled": false, | |
"external": false, | |
"private_profile": false, | |
"commit_email": "[email protected]", | |
"shared_runners_minutes_limit": null, | |
"extra_shared_runners_minutes_limit": null, | |
"is_admin": true, | |
"note": null, | |
"using_license_seat": false | |
} | |
0 | |
----------------------------------------------------- | |
=== RUN TestAccGitLabProjectApprovalRule_basic | |
2021/07/19 14:38:44 [DEBUG] Test: Executing step 0 | |
2021/07/19 14:38:44 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypeValidate | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodeValidatableResource) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkValidate | |
2021/07/19 14:38:44 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypeRefresh | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkRefresh | |
2021/07/19 14:38:44 [DEBUG] New state was assigned lineage "9f09d64b-9e41-fe2f-5010-80dc9e914ccb" | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypePlan | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodePlannableResource) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkPlan | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/ HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: Go-http-client/1.1 | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 404 Not Found | |
Content-Length: 25 | |
Cache-Control: no-cache | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Server: nginx | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9YZ4YK44XTPWHJJ6GSD6 | |
X-Runtime: 0.006758 | |
{ | |
"error": "404 Not Found" | |
} | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/user HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: go-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Etag: W/"b6129a989d0ce9a069dad15fe09a7a32" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9YZEAHZ6TV9NMSCZH3VT | |
X-Runtime: 0.038374 | |
3c6 | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root", | |
"created_at": "2021-07-08T23:59:53.460Z", | |
"bio": "", | |
"bio_html": "", | |
"location": null, | |
"public_email": "", | |
"skype": "", | |
"linkedin": "", | |
"twitter": "", | |
"website_url": "", | |
"organization": null, | |
"job_title": "", | |
"bot": false, | |
"work_information": null, | |
"followers": 0, | |
"following": 0, | |
"last_sign_in_at": null, | |
"confirmed_at": "2021-07-08T23:59:53.285Z", | |
"last_activity_on": "2021-07-19", | |
"email": "[email protected]", | |
"theme_id": 1, | |
"color_scheme_id": 1, | |
"projects_limit": 100000, | |
"current_sign_in_at": null, | |
"identities": [], | |
"can_create_group": true, | |
"can_create_project": true, | |
"two_factor_enabled": false, | |
"external": false, | |
"private_profile": false, | |
"commit_email": "[email protected]", | |
"shared_runners_minutes_limit": null, | |
"extra_shared_runners_minutes_limit": null, | |
"is_admin": true, | |
"note": null, | |
"using_license_seat": false | |
} | |
0 | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] Resource instance state not found for node "gitlab_project_approval_rule.foo", instance gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:44 [WARN] Test: Step plan: DIFF: | |
CREATE: gitlab_project_approval_rule.foo | |
approvals_required: "" => "3" | |
group_ids.#: "" => "1" | |
group_ids.0: "" => "122" | |
id: "" => "<computed>" | |
name: "" => "foo" | |
project: "" => "48" | |
protected_branch_ids.#: "" => "1" | |
protected_branch_ids.0: "" => "21" | |
user_ids.#: "" => "1" | |
user_ids.0: "" => "92" | |
STATE: | |
<no state> | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypeApply | |
2021/07/19 14:38:44 [DEBUG] Resource state not found for node "gitlab_project_approval_rule.foo", instance gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo (prepare state) | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo (prepare state)" (*terraform.NodeApplyableResource) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodeApplyableResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo (prepare state)" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkApply | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/ HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: Go-http-client/1.1 | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 404 Not Found | |
Content-Length: 25 | |
Cache-Control: no-cache | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Server: nginx | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9Z10TCKWXZMH9KQY6846 | |
X-Runtime: 0.009643 | |
{ | |
"error": "404 Not Found" | |
} | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/user HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: go-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Etag: W/"b6129a989d0ce9a069dad15fe09a7a32" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9Z1E2WPJ2SX5TBYD1DYZ | |
X-Runtime: 0.036407 | |
3c6 | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root", | |
"created_at": "2021-07-08T23:59:53.460Z", | |
"bio": "", | |
"bio_html": "", | |
"location": null, | |
"public_email": "", | |
"skype": "", | |
"linkedin": "", | |
"twitter": "", | |
"website_url": "", | |
"organization": null, | |
"job_title": "", | |
"bot": false, | |
"work_information": null, | |
"followers": 0, | |
"following": 0, | |
"last_sign_in_at": null, | |
"confirmed_at": "2021-07-08T23:59:53.285Z", | |
"last_activity_on": "2021-07-19", | |
"email": "[email protected]", | |
"theme_id": 1, | |
"color_scheme_id": 1, | |
"projects_limit": 100000, | |
"current_sign_in_at": null, | |
"identities": [], | |
"can_create_group": true, | |
"can_create_project": true, | |
"two_factor_enabled": false, | |
"external": false, | |
"private_profile": false, | |
"commit_email": "[email protected]", | |
"shared_runners_minutes_limit": null, | |
"extra_shared_runners_minutes_limit": null, | |
"is_admin": true, | |
"note": null, | |
"using_license_seat": false | |
} | |
0 | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] gitlab_project_approval_rule.foo: applying the planned Create change | |
2021/07/19 14:38:44 [DEBUG] Project 48 create gitlab project-level rule {Name:0xc0008a9e90 ApprovalsRequired:0xc000832c60 UserIDs:[92] GroupIDs:[122] ProtectedBranchIDs:[21]} | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
POST /api/v4/projects/48/approval_rules HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: HashiCorp Terraform/0.12.7-sdk (+https://www.terraform.io) Terraform Plugin SDK/1.16.1 terraform-provider-gitlab | |
Content-Length: 99 | |
Accept: application/json | |
Content-Type: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
{ | |
"name": "foo", | |
"approvals_required": 3, | |
"user_ids": [ | |
92 | |
], | |
"group_ids": [ | |
122 | |
], | |
"protected_branch_ids": [ | |
21 | |
] | |
} | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 201 Created | |
Content-Length: 1938 | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Etag: W/"5f8a14d22f9103929bd89c89b217224c" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9Z2RSP9248GCG0MGF6FH | |
X-Runtime: 0.196837 | |
{ | |
"id": 8, | |
"name": "foo", | |
"rule_type": "regular", | |
"eligible_approvers": [ | |
{ | |
"id": 94, | |
"name": "acctest-user-5806300459895441981", | |
"username": "acctest-user-5806300459895441981", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/2a15755e125b6a24d77c20be8fc67d36?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-5806300459895441981" | |
}, | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
}, | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root" | |
} | |
], | |
"approvals_required": 3, | |
"users": [ | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
} | |
], | |
"groups": [ | |
{ | |
"id": 122, | |
"web_url": "http://626530cc87b3/groups/acctest-group-4856214800291667350", | |
"name": "acctest-group-4856214800291667350", | |
"path": "acctest-group-4856214800291667350", | |
"description": "", | |
"visibility": "public", | |
"share_with_group_lock": false, | |
"require_two_factor_authentication": false, | |
"two_factor_grace_period": 48, | |
"project_creation_level": "developer", | |
"auto_devops_enabled": null, | |
"subgroup_creation_level": "maintainer", | |
"emails_disabled": null, | |
"mentions_disabled": null, | |
"lfs_enabled": true, | |
"default_branch_protection": 2, | |
"avatar_url": null, | |
"request_access_enabled": true, | |
"full_name": "acctest-group-4856214800291667350", | |
"full_path": "acctest-group-4856214800291667350", | |
"created_at": "2021-07-19T21:38:42.728Z", | |
"parent_id": null, | |
"ldap_cn": null, | |
"ldap_access": null | |
} | |
], | |
"contains_hidden_groups": false | |
} | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] read gitlab project-level rule 48:8 | |
2021/07/19 14:38:44 [DEBUG] read approval rules for project 48 | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/projects/48/approval_rules HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: HashiCorp Terraform/0.12.7-sdk (+https://www.terraform.io) Terraform Plugin SDK/1.16.1 terraform-provider-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Etag: W/"7ad358964a6d9576962b3c54b171548d" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9Z91AD3TAAXM0DYWDQT0 | |
X-Runtime: 0.070356 | |
794 | |
[ | |
{ | |
"id": 8, | |
"name": "foo", | |
"rule_type": "regular", | |
"eligible_approvers": [ | |
{ | |
"id": 94, | |
"name": "acctest-user-5806300459895441981", | |
"username": "acctest-user-5806300459895441981", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/2a15755e125b6a24d77c20be8fc67d36?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-5806300459895441981" | |
}, | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
}, | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root" | |
} | |
], | |
"approvals_required": 3, | |
"users": [ | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
} | |
], | |
"groups": [ | |
{ | |
"id": 122, | |
"web_url": "http://626530cc87b3/groups/acctest-group-4856214800291667350", | |
"name": "acctest-group-4856214800291667350", | |
"path": "acctest-group-4856214800291667350", | |
"description": "", | |
"visibility": "public", | |
"share_with_group_lock": false, | |
"require_two_factor_authentication": false, | |
"two_factor_grace_period": 48, | |
"project_creation_level": "developer", | |
"auto_devops_enabled": null, | |
"subgroup_creation_level": "maintainer", | |
"emails_disabled": null, | |
"mentions_disabled": null, | |
"lfs_enabled": true, | |
"default_branch_protection": 2, | |
"avatar_url": null, | |
"request_access_enabled": true, | |
"full_name": "acctest-group-4856214800291667350", | |
"full_path": "acctest-group-4856214800291667350", | |
"created_at": "2021-07-19T21:38:42.728Z", | |
"parent_id": null, | |
"ldap_cn": null, | |
"ldap_access": null | |
} | |
], | |
"contains_hidden_groups": false | |
} | |
] | |
0 | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] found project-level rule gitlab.ProjectApprovalRule{ID:8, Name:"foo", RuleType:"regular", EligibleApprovers:[gitlab.BasicUser{ID:94, Username:"acctest-user-5806300459895441981", Name:"acctest-user-5806300459895441981", State:"active", AvatarURL:"https://www.gravatar.com/avatar/2a15755e125b6a24d77c20be8fc67d36?s=80&d=identicon", WebURL:"http://626530cc87b3/acctest-user-5806300459895441981"} gitlab.BasicUser{ID:92, Username:"acctest-user-7859436735092811058", Name:"acctest-user-7859436735092811058", State:"active", AvatarURL:"https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80&d=identicon", WebURL:"http://626530cc87b3/acctest-user-7859436735092811058"} gitlab.BasicUser{ID:1, Username:"root", Name:"Administrator", State:"active", AvatarURL:"https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", WebURL:"http://626530cc87b3/root"}], ApprovalsRequired:3, Users:[gitlab.BasicUser{ID:92, Username:"acctest-user-7859436735092811058", Name:"acctest-user-7859436735092811058", State:"active", AvatarURL:"https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80&d=identicon", WebURL:"http://626530cc87b3/acctest-user-7859436735092811058"}], Groups:[gitlab.Group{ID:122, Name:"acctest-group-4856214800291667350", Path:"acctest-group-4856214800291667350", Description:"", MembershipLock:false, Visibility:"public", LFSEnabled:true, AvatarURL:"", WebURL:"http://626530cc87b3/groups/acctest-group-4856214800291667350", RequestAccessEnabled:true, FullName:"acctest-group-4856214800291667350", FullPath:"acctest-group-4856214800291667350", ParentID:0, ShareWithGroupLock:false, RequireTwoFactorAuth:false, TwoFactorGracePeriod:48, ProjectCreationLevel:"developer", AutoDevopsEnabled:false, SubGroupCreationLevel:"maintainer", EmailsDisabled:false, MentionsDisabled:false, RunnersToken:"", LDAPCN:"", LDAPAccess:0, SharedRunnersMinutesLimit:0, ExtraSharedRunnersMinutesLimit:0, CreatedAt:time.Time{wall:, ext:}}], ContainsHiddenGroups:false} | |
2021/07/19 14:38:44 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:44 [DEBUG] New state was assigned lineage "bf11a2f1-4bc1-44f5-9002-87ba60549ecf" | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/projects/48/approval_rules HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: HashiCorp Terraform/0.12.7-sdk (+https://www.terraform.io) Terraform Plugin SDK/1.16.1 terraform-provider-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Etag: W/"7ad358964a6d9576962b3c54b171548d" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9ZBD5TPKMY6P5NM4DWG7 | |
X-Runtime: 0.099177 | |
794 | |
[ | |
{ | |
"id": 8, | |
"name": "foo", | |
"rule_type": "regular", | |
"eligible_approvers": [ | |
{ | |
"id": 94, | |
"name": "acctest-user-5806300459895441981", | |
"username": "acctest-user-5806300459895441981", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/2a15755e125b6a24d77c20be8fc67d36?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-5806300459895441981" | |
}, | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
}, | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root" | |
} | |
], | |
"approvals_required": 3, | |
"users": [ | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
} | |
], | |
"groups": [ | |
{ | |
"id": 122, | |
"web_url": "http://626530cc87b3/groups/acctest-group-4856214800291667350", | |
"name": "acctest-group-4856214800291667350", | |
"path": "acctest-group-4856214800291667350", | |
"description": "", | |
"visibility": "public", | |
"share_with_group_lock": false, | |
"require_two_factor_authentication": false, | |
"two_factor_grace_period": 48, | |
"project_creation_level": "developer", | |
"auto_devops_enabled": null, | |
"subgroup_creation_level": "maintainer", | |
"emails_disabled": null, | |
"mentions_disabled": null, | |
"lfs_enabled": true, | |
"default_branch_protection": 2, | |
"avatar_url": null, | |
"request_access_enabled": true, | |
"full_name": "acctest-group-4856214800291667350", | |
"full_path": "acctest-group-4856214800291667350", | |
"created_at": "2021-07-19T21:38:42.728Z", | |
"parent_id": null, | |
"ldap_cn": null, | |
"ldap_access": null | |
} | |
], | |
"contains_hidden_groups": false | |
} | |
] | |
0 | |
----------------------------------------------------- | |
testing.go:705: Step 0 error: Check failed: Check 2/2 error: protected_branches | |
Expected | |
<[]int | len:0, cap:0>: nil | |
to consist of | |
<[]int | len:1, cap:1>: [21] | |
the missing elements were | |
<[]int | len:1, cap:1>: [21] | |
2021/07/19 14:38:44 [WARN] Test: Executing destroy step | |
2021/07/19 14:38:44 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypeValidate | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodeAbstractResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkValidate | |
2021/07/19 14:38:44 [WARN] Not fixing up EachModes for gitlab_project_approval_rule.foo because it has no config | |
2021/07/19 14:38:44 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypeRefresh | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodeRefreshableManagedResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkRefresh | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/ HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: Go-http-client/1.1 | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 404 Not Found | |
Content-Length: 25 | |
Cache-Control: no-cache | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Server: nginx | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9ZF60QDE1KTD9YGTHQA2 | |
X-Runtime: 0.006389 | |
{ | |
"error": "404 Not Found" | |
} | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/user HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: go-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Etag: W/"b6129a989d0ce9a069dad15fe09a7a32" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9ZFGBSXDKRJQR0Q3H4A9 | |
X-Runtime: 0.034152 | |
3c6 | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root", | |
"created_at": "2021-07-08T23:59:53.460Z", | |
"bio": "", | |
"bio_html": "", | |
"location": null, | |
"public_email": "", | |
"skype": "", | |
"linkedin": "", | |
"twitter": "", | |
"website_url": "", | |
"organization": null, | |
"job_title": "", | |
"bot": false, | |
"work_information": null, | |
"followers": 0, | |
"following": 0, | |
"last_sign_in_at": null, | |
"confirmed_at": "2021-07-08T23:59:53.285Z", | |
"last_activity_on": "2021-07-19", | |
"email": "[email protected]", | |
"theme_id": 1, | |
"color_scheme_id": 1, | |
"projects_limit": 100000, | |
"current_sign_in_at": null, | |
"identities": [], | |
"can_create_group": true, | |
"can_create_project": true, | |
"two_factor_enabled": false, | |
"external": false, | |
"private_profile": false, | |
"commit_email": "[email protected]", | |
"shared_runners_minutes_limit": null, | |
"extra_shared_runners_minutes_limit": null, | |
"is_admin": true, | |
"note": null, | |
"using_license_seat": false | |
} | |
0 | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] read gitlab project-level rule 48:8 | |
2021/07/19 14:38:44 [DEBUG] read approval rules for project 48 | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/projects/48/approval_rules HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: HashiCorp Terraform/0.12.7-sdk (+https://www.terraform.io) Terraform Plugin SDK/1.16.1 terraform-provider-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Etag: W/"7ad358964a6d9576962b3c54b171548d" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9ZGQ5MF16WJSQP86JANX | |
X-Runtime: 0.072695 | |
794 | |
[ | |
{ | |
"id": 8, | |
"name": "foo", | |
"rule_type": "regular", | |
"eligible_approvers": [ | |
{ | |
"id": 94, | |
"name": "acctest-user-5806300459895441981", | |
"username": "acctest-user-5806300459895441981", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/2a15755e125b6a24d77c20be8fc67d36?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-5806300459895441981" | |
}, | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
}, | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root" | |
} | |
], | |
"approvals_required": 3, | |
"users": [ | |
{ | |
"id": 92, | |
"name": "acctest-user-7859436735092811058", | |
"username": "acctest-user-7859436735092811058", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/acctest-user-7859436735092811058" | |
} | |
], | |
"groups": [ | |
{ | |
"id": 122, | |
"web_url": "http://626530cc87b3/groups/acctest-group-4856214800291667350", | |
"name": "acctest-group-4856214800291667350", | |
"path": "acctest-group-4856214800291667350", | |
"description": "", | |
"visibility": "public", | |
"share_with_group_lock": false, | |
"require_two_factor_authentication": false, | |
"two_factor_grace_period": 48, | |
"project_creation_level": "developer", | |
"auto_devops_enabled": null, | |
"subgroup_creation_level": "maintainer", | |
"emails_disabled": null, | |
"mentions_disabled": null, | |
"lfs_enabled": true, | |
"default_branch_protection": 2, | |
"avatar_url": null, | |
"request_access_enabled": true, | |
"full_name": "acctest-group-4856214800291667350", | |
"full_path": "acctest-group-4856214800291667350", | |
"created_at": "2021-07-19T21:38:42.728Z", | |
"parent_id": null, | |
"ldap_cn": null, | |
"ldap_access": null | |
} | |
], | |
"contains_hidden_groups": false | |
} | |
] | |
0 | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] found project-level rule gitlab.ProjectApprovalRule{ID:8, Name:"foo", RuleType:"regular", EligibleApprovers:[gitlab.BasicUser{ID:94, Username:"acctest-user-5806300459895441981", Name:"acctest-user-5806300459895441981", State:"active", AvatarURL:"https://www.gravatar.com/avatar/2a15755e125b6a24d77c20be8fc67d36?s=80&d=identicon", WebURL:"http://626530cc87b3/acctest-user-5806300459895441981"} gitlab.BasicUser{ID:92, Username:"acctest-user-7859436735092811058", Name:"acctest-user-7859436735092811058", State:"active", AvatarURL:"https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80&d=identicon", WebURL:"http://626530cc87b3/acctest-user-7859436735092811058"} gitlab.BasicUser{ID:1, Username:"root", Name:"Administrator", State:"active", AvatarURL:"https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", WebURL:"http://626530cc87b3/root"}], ApprovalsRequired:3, Users:[gitlab.BasicUser{ID:92, Username:"acctest-user-7859436735092811058", Name:"acctest-user-7859436735092811058", State:"active", AvatarURL:"https://www.gravatar.com/avatar/b9ec3b6263ad398b427c09297ff7985a?s=80&d=identicon", WebURL:"http://626530cc87b3/acctest-user-7859436735092811058"}], Groups:[gitlab.Group{ID:122, Name:"acctest-group-4856214800291667350", Path:"acctest-group-4856214800291667350", Description:"", MembershipLock:false, Visibility:"public", LFSEnabled:true, AvatarURL:"", WebURL:"http://626530cc87b3/groups/acctest-group-4856214800291667350", RequestAccessEnabled:true, FullName:"acctest-group-4856214800291667350", FullPath:"acctest-group-4856214800291667350", ParentID:0, ShareWithGroupLock:false, RequireTwoFactorAuth:false, TwoFactorGracePeriod:48, ProjectCreationLevel:"developer", AutoDevopsEnabled:false, SubGroupCreationLevel:"maintainer", EmailsDisabled:false, MentionsDisabled:false, RunnersToken:"", LDAPCN:"", LDAPAccess:0, SharedRunnersMinutesLimit:0, ExtraSharedRunnersMinutesLimit:0, CreatedAt:time.Time{wall:, ext:}}], ContainsHiddenGroups:false} | |
2021/07/19 14:38:44 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:44 [DEBUG] New state was assigned lineage "a4c26cb4-958a-3b55-8453-62e75bd1c94e" | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypePlanDestroy | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodePlanDestroyableResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodeAbstractResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo (destroy)" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkPlanDestroy | |
2021/07/19 14:38:44 [WARN] Test: Step plan: DIFF: | |
DESTROY: gitlab_project_approval_rule.foo | |
approvals_required: "3" => "" | |
group_ids.#: "1" => "" | |
group_ids.0: "122" => "" | |
id: "48:8" => "" | |
name: "foo" => "" | |
project: "48" => "" | |
protected_branch_ids.#: "0" => "" | |
user_ids.#: "1" => "" | |
user_ids.0: "92" => "" | |
STATE: | |
gitlab_project_approval_rule.foo: | |
ID = 48:8 | |
provider = provider.gitlab | |
approvals_required = 3 | |
group_ids.# = 1 | |
group_ids.0 = 122 | |
name = foo | |
project = 48 | |
user_ids.# = 1 | |
user_ids.0 = 92 | |
2021/07/19 14:38:44 [INFO] terraform: building graph: GraphTypeApply | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo (clean up state) | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo (clean up state)" (*terraform.NodeDestroyResource) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo (destroy)" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo (clean up state)" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] adding implicit provider configuration provider.gitlab, implied first by gitlab_project_approval_rule.foo | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo" (*terraform.NodeAbstractResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ProviderTransformer: "gitlab_project_approval_rule.foo (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.gitlab | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "gitlab_project_approval_rule.foo (destroy)" references: [] | |
2021/07/19 14:38:44 [DEBUG] ReferenceTransformer: "provider.gitlab" references: [] | |
2021/07/19 14:38:44 [DEBUG] Starting graph walk: walkDestroy | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/ HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: Go-http-client/1.1 | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 404 Not Found | |
Content-Length: 25 | |
Cache-Control: no-cache | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:44 GMT | |
Server: nginx | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9ZKEB1C9G4XHPCK8TNVP | |
X-Runtime: 0.005697 | |
{ | |
"error": "404 Not Found" | |
} | |
----------------------------------------------------- | |
2021/07/19 14:38:44 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /api/v4/user HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: go-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:45 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 200 OK | |
Transfer-Encoding: chunked | |
Cache-Control: max-age=0, private, must-revalidate | |
Connection: keep-alive | |
Content-Type: application/json | |
Date: Mon, 19 Jul 2021 21:38:45 GMT | |
Etag: W/"b6129a989d0ce9a069dad15fe09a7a32" | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Accept-Encoding | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9ZKRYMMKXC3WEGF2DTV6 | |
X-Runtime: 0.037689 | |
3c6 | |
{ | |
"id": 1, | |
"name": "Administrator", | |
"username": "root", | |
"state": "active", | |
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon", | |
"web_url": "http://626530cc87b3/root", | |
"created_at": "2021-07-08T23:59:53.460Z", | |
"bio": "", | |
"bio_html": "", | |
"location": null, | |
"public_email": "", | |
"skype": "", | |
"linkedin": "", | |
"twitter": "", | |
"website_url": "", | |
"organization": null, | |
"job_title": "", | |
"bot": false, | |
"work_information": null, | |
"followers": 0, | |
"following": 0, | |
"last_sign_in_at": null, | |
"confirmed_at": "2021-07-08T23:59:53.285Z", | |
"last_activity_on": "2021-07-19", | |
"email": "[email protected]", | |
"theme_id": 1, | |
"color_scheme_id": 1, | |
"projects_limit": 100000, | |
"current_sign_in_at": null, | |
"identities": [], | |
"can_create_group": true, | |
"can_create_project": true, | |
"two_factor_enabled": false, | |
"external": false, | |
"private_profile": false, | |
"commit_email": "[email protected]", | |
"shared_runners_minutes_limit": null, | |
"extra_shared_runners_minutes_limit": null, | |
"is_admin": true, | |
"note": null, | |
"using_license_seat": false | |
} | |
0 | |
----------------------------------------------------- | |
2021/07/19 14:38:45 [DEBUG] gitlab_project_approval_rule.foo: applying the planned Delete change | |
2021/07/19 14:38:45 [DEBUG] Project 48 delete gitlab project-level approval rule 8 | |
2021/07/19 14:38:45 [DEBUG] GitLab API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
DELETE /api/v4/projects/48/approval_rules/8 HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: HashiCorp Terraform/0.12.7-sdk (+https://www.terraform.io) Terraform Plugin SDK/1.16.1 terraform-provider-gitlab | |
Accept: application/json | |
Private-Token: ACCTEST | |
Accept-Encoding: gzip | |
----------------------------------------------------- | |
2021/07/19 14:38:45 [DEBUG] GitLab API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/1.1 204 No Content | |
Cache-Control: no-cache | |
Connection: keep-alive | |
Date: Mon, 19 Jul 2021 21:38:45 GMT | |
Referrer-Policy: strict-origin-when-cross-origin | |
Server: nginx | |
Strict-Transport-Security: max-age=31536000 | |
Vary: Origin | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
X-Request-Id: 01FB0B9ZN4T3341C5T297ZBJ79 | |
X-Runtime: 0.058450 | |
----------------------------------------------------- | |
2021/07/19 14:38:45 [DEBUG] provider has no plugin.Client | |
2021/07/19 14:38:45 [DEBUG] New state was assigned lineage "5383d964-0a6e-09df-7894-2bb839f6f766" | |
2021/07/19 14:38:45 [INFO] terraform: building graph: GraphTypePlanDestroy | |
2021/07/19 14:38:45 [DEBUG] Starting graph walk: walkPlanDestroy | |
2021/07/19 14:38:45 [INFO] terraform: building graph: GraphTypeRefresh | |
2021/07/19 14:38:45 [DEBUG] Starting graph walk: walkRefresh | |
2021/07/19 14:38:45 [DEBUG] New state was assigned lineage "ed7eeea8-624c-6940-7815-5c3ac3048f58" | |
2021/07/19 14:38:45 [INFO] terraform: building graph: GraphTypePlanDestroy | |
2021/07/19 14:38:45 [DEBUG] Starting graph walk: walkPlanDestroy | |
--- FAIL: TestAccGitLabProjectApprovalRule_basic (5.48s) | |
FAIL | |
FAIL github.com/gitlabhq/terraform-provider-gitlab/gitlab 6.113s | |
FAIL | |
make: *** [testacc] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment