Acceptance-test helpers must build their own client

SkillCloud & infra

Use when an acceptance test panics with 'interface {} is nil, not *clientset.ClientSet' in a CheckDestroy or check helper, or a helper calls testAccProvider.Meta().

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Acceptance-test helpers must build their own client skill

What this skill tells your AI

The instructions your AI receives, as published by coralogix/terraform-provider-coralogix in .claude/skills/acc-test-helper-client-without-provider-meta/SKILL.md and read by ahel’s review.

Trigger: A CheckDestroy or Check helper panics with interface conversion: interface {} is nil, not *clientset.ClientSet, often only when the test runs alone (-run '^TestX$') or in its own CI shard, such as a provider-migration job.

Fix: Build the client in the helper instead of reading it from testAccProvider.Meta():

cs, err := testAccNewClientSet()
if err != nil {
	return err
}

Why: testAccProvider is the SDKv2 provider, and it is only configured once some earlier test in the same process has used it. A framework-only or ExternalProviders test that runs alone never configures it, so Meta() is nil.

Signals

GitHub stars
22
Forks
14
Last commit
Sep 2026
Advanced
Item type
skill
Key
acc-test-helper-client-without-provider-meta
Source
github.com/coralogix/terraform-provider-coralogix