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().

Use Acceptance-test helpers must build their own client in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Acceptance-test helpers must build their own client and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

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

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

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

Acceptance-test helpers must build their own clientStart free

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
Oct 2026
Advanced
Item type
skill
Key
acc-test-helper-client-without-provider-meta
Source
github.com/coralogix/terraform-provider-coralogix