Test profile data source against Kernel - #91
Merged
Conversation
IlyaasK
marked this pull request as ready for review
July 11, 2026 18:12
IlyaasK
requested review from
Sayan- and
tnsardesai
and removed request for
Sayan- and
tnsardesai
July 11, 2026 18:12
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
from
July 13, 2026 13:35
f261fcf to
ebe560c
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
2 times, most recently
from
July 13, 2026 14:32
f3131d6 to
dcf7b87
Compare
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
from
July 13, 2026 15:39
8015701 to
edbd925
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 13, 2026 15:39
dcf7b87 to
e81feb3
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 20, 2026 19:38
e81feb3 to
9148711
Compare
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
2 times, most recently
from
July 21, 2026 14:46
65878a3 to
f4c6b1b
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 21, 2026 14:46
9148711 to
6d545f6
Compare
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
from
July 21, 2026 18:10
f4c6b1b to
d46c205
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 21, 2026 18:10
6d545f6 to
acf09bb
Compare
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
from
July 21, 2026 19:51
d46c205 to
bf17abf
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 21, 2026 19:51
acf09bb to
349fbf4
Compare
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
from
July 21, 2026 20:15
bf17abf to
18714b7
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 21, 2026 20:15
349fbf4 to
00082ec
Compare
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
2 times, most recently
from
July 27, 2026 19:58
cf2406a to
1d4b930
Compare
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 27, 2026 20:01
00082ec to
bfef988
Compare
Sayan-
approved these changes
Jul 28, 2026
IlyaasK
force-pushed
the
hypeship/profile-acceptance-fixture
branch
from
July 29, 2026 14:10
1d4b930 to
1699975
Compare
IlyaasK
changed the base branch from
hypeship/profile-acceptance-fixture
to
main
July 29, 2026 14:15
IlyaasK
force-pushed
the
hypeship/profile-data-source-acceptance
branch
from
July 29, 2026 14:15
bfef988 to
c2d40a7
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
internal/kernelclientkernel_profilelookup by canonical ID and exact namenot_found, and add the package to the manual acceptance workflowWhy
The selected provider release retains the existing
kernel_profiledata source. This PR supplies live coverage for its supported durable metadata lookup paths without adding a Terraform profile resource or modeling profile archive contents.Scope
This PR contains only the profile data-source acceptance test and its workflow matrix entry. Acceptance-matrix and release documentation remain in their dedicated later PRs.
It does not add profile resources, archive download, browser-session profile saves, or runtime operations.
Terraform semantics
project_idKERNEL_PROJECT_IDnot_foundTests
go test -short -timeout=2m ./internal/datasources/profilego test -race -short -timeout=2m ./internal/datasources/profileenv -u TF_ACC KERNEL_ACC=1 KERNEL_API_KEY=test KERNEL_PROJECT_ID=test KERNEL_BASE_URL=http://127.0.0.1:1 go test -count=1 -timeout=2m -v ./internal/datasources/profile -run '^TestAccProfileDataSourceByIDAndName$'go test -short -timeout=2m ./...go vet ./...go mod verifygo mod tidy -diffgofmt -l cmd internalterraform fmt -check -recursive examplesbash scripts/check-docs.shbash scripts/check-markdown-links.shAcceptance status
The opt-in guard was verified without making a network request. A live API run was not performed because acceptance credentials are not available in this environment. The manual workflow remains a release gate.
Note
Low Risk
Test-only and CI workflow changes with no provider runtime behavior modifications.
Overview
Adds live Terraform acceptance tests for the existing
kernel_profiledata source and wires them into the manual Acceptance workflow matrix.The new test creates a real profile via the API, then asserts lookup by ID (with explicit
project_id) and lookup by exact name (using the provider-default project) return the same metadata, including that name-based reads omitproject_idin state. It also runs an empty second plan and registers cleanup that deletes the fixture and asserts a not_found read afterward.The acceptance workflow gains a Profile data source job on
./internal/datasources/profilewithproject_id_required: true, matching other project-scoped packages.Reviewed by Cursor Bugbot for commit c2d40a7. Bugbot is set up for automated code reviews on this repo. Configure here.