Skip to content

[AV-129811] Create get eventing function data source tests#657

Merged
IsaacLambat merged 1 commit into
feature/AV-128959-eventing-functionsfrom
AV-129811-get-tests
Jun 19, 2026
Merged

[AV-129811] Create get eventing function data source tests#657
IsaacLambat merged 1 commit into
feature/AV-128959-eventing-functionsfrom
AV-129811-get-tests

Conversation

@IsaacLambat

@IsaacLambat IsaacLambat commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Jira

  • AV-129811

Description

  • Add acceptance testing for get eventing function data source

Type of Change

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • This change updates the ci/cd workflow.
  • Documentation fix/enhancement.

Manual Testing Approach

How was this change tested and do you have evidence? (REQUIRED: Select at least 1)

  • Manually tested
  • Unit tested
  • Acceptance tested
  • Unable to test / will not test (Please provide comments in section below)

Testing

Testing

New tests pass in CI

=== CONT  TestAccDatasourceEventingFunctionExport
=== CONT  TestAccDatasourceEventingFunction
--- PASS: TestAccDatasourceEventingFunctionExport (2.12s)
=== CONT  TestAccEventingFunctionResourceRequiredOnly
--- PASS: TestAccDatasourceEventingFunction (2.05s)

Further comments

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Terraform acceptance coverage for the single eventing function data source so it can be validated against the real Capella API (including export=true behavior).

Changes:

  • Adds an acceptance test that creates an eventing function resource and validates the couchbase-capella_eventing_function data source can read back the definition.
  • Adds an acceptance test that validates export = true behavior (status omitted while definition is still returned).
  • Adds a shared config generator that provisions the resource and the corresponding data source in one config.

Comment thread acceptance_tests/eventing_function_acceptance_test.go
Comment thread acceptance_tests/eventing_function_acceptance_test.go
Comment thread acceptance_tests/eventing_function_acceptance_test.go Outdated
@IsaacLambat IsaacLambat force-pushed the AV-129811-get-tests branch from 13eba4e to 85e0244 Compare June 18, 2026 22:13
@github-actions github-actions Bot added the enhancement New feature or request label Jun 18, 2026
@IsaacLambat IsaacLambat marked this pull request as ready for review June 18, 2026 23:14
@IsaacLambat IsaacLambat requested a review from a team as a code owner June 18, 2026 23:14
@factory-droid

factory-droid Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Droid encountered an error —— View job


@IsaacLambat IsaacLambat merged commit 8bb86f8 into feature/AV-128959-eventing-functions Jun 19, 2026
9 of 11 checks passed
@IsaacLambat IsaacLambat deleted the AV-129811-get-tests branch June 19, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants