Skip to content

Adding CI tests

Adding CI tests #20

Triggered via pull request July 24, 2024 15:53
Status Failure
Total duration 3m 23s
Artifacts

ci.yaml

on: pull_request
Matrix: go-test
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 7 warnings
test
Process completed with exit code 127.
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L31
internal_test.go:31: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:31 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc0001dbf20), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestClientListDeploymentRoleMapping
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L43
internal_test.go:43: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:43 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc000278360), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestClientGetDeploymentRoleMapping
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L55
internal_test.go:55: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:55 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc0002790e0), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestClientUpdateUsersWithinRoleMapping
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L82
internal_test.go:82: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:82 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc000495290), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestClientAddDeploymentRole
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L117
internal_test.go:117: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:117 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc00037c000), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestClientAddDeploymentRoleV2
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L157
internal_test.go:157: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:157 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc000218d50), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestAddUsers
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L183
internal_test.go:183: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:183 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc000279f20), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestListDeploymentUsers
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L185
internal_test.go:185: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:185 Error: Expected nil, but got: map[string]elastic.DeploymentUser{"bryancooper":elastic.DeploymentUser{Username:"bryancooper", Roles:[]string{"superuser", "viewer", "kibana_admin", "transform_admin", "inference_admin"}, FullName:"Jack Nicholson", Email:"jacknich@example.com", Enabled:true, Metadata:map[string]interface {}{"intelligence":7}}, "enterprise_search":elastic.DeploymentUser{Username:"enterprise_search", Roles:[]string{"enterprise-search-workplace-search-admin", "enterprise-search-app-search-owner"}, FullName:"enterprise_search", Email:"ent-search@example.com", Enabled:true, Metadata:map[string]interface {}{}}, "jacknich":elastic.DeploymentUser{Username:"jacknich", Roles:[]string{"superuser", "viewer", "kibana_admin", "transform_admin", "inference_admin"}, FullName:"Jack Nicholson", Email:"jacknich@example.com", Enabled:true, Metadata:map[string]interface {}{"intelligence":7}}} Test: TestListDeploymentUsers
go-test (1.22.x, ubuntu-latest): pkg/connector/internal_test.go#L194
internal_test.go:194: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/internal_test.go:194 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc00037cd20), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestDeleteDeploymentRoleMapping
go-test (1.22.x, ubuntu-latest): pkg/connector/roleMapping_test.go#L17
roleMapping_test.go:17: Error Trace: /home/runner/work/baton-elastic/baton-elastic/pkg/connector/roleMapping_test.go:17 Error: Expected nil, but got: &elastic.Client{httpClient:(*http.Client)(0xc00037d830), apiKey:"essu_UkZabFpHODFRVUpETFcxcWVTMU1iazh4V1RZNlNWTlphMlV3TUY5UmQyVkxUM0JsUkMwelMxRjJVUT09AAAAANlyTyQ=", organizationID:"2539393048", deploymentApiKey:"RURJUHBKQUJhc0N6S1ZsSzFhaGE6Z1RBdEJWdVdTdE9RNXk3anNhcWtRZw==", deploymentEndpoint:"https://28ef1caa9b284ae7ada31e30dc7f02aa.us-east-2.aws.elastic-cloud.com:443"} Test: TestRoleMappingBuilderGrants
go-test (1.22.x, ubuntu-latest)
Process completed with exit code 1.
go-lint: pkg/connector/internal_test.go#L17
Comment should end in a period (godot)
go-lint
issues found
test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
Restore cache failed: Dependencies file is not found in /home/runner/work/baton-elastic/baton-elastic. Supported file pattern: go.sum
go-test (1.22.x, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: guyarb/golang-test-annotations@v0.5.1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
go-test (1.22.x, ubuntu-latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3, guyarb/golang-test-annotations@v0.5.1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
go-test (1.22.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/baton-elastic/baton-elastic. Supported file pattern: go.sum
go-lint
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
go-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/baton-elastic/baton-elastic. Supported file pattern: go.sum