Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eg/source): add a new data source to query all kinds of the event sources #5446

Merged

Conversation

Lance52259
Copy link
Collaborator

@Lance52259 Lance52259 commented Aug 23, 2024

What this PR does / why we need it:
Add a new data source to query all kinds of the event sources.

Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)
fixes #xxx

Special notes for your reviewer:

Release note:

Add a new data source to query all kinds of the event sources.

PR Checklist

  • Tests added/passed.
make testacc TEST='./huaweicloud/services/acceptance/eg' TESTARGS='-run=TestAccDataEventSources_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud/services/acceptance/eg -v -run=TestAccDataEventSources_basic -timeout 360m -parallel 4
=== RUN   TestAccDataEventSources_basic
--- PASS: TestAccDataEventSources_basic (133.22s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/acceptance/eg        133.276s
  • Documentation updated.

  • Schema updated.

  • CheckDeleted.

    • a. During query operation (Read Context)
      aa. Resource not found
      >>>>>> Paste the screenshot here <<<<<<

    • b. During delete/disassociate/unbind operation (Delete Context)
      ba. Resource not found
      >>>>>> Paste the screenshot here <<<<<<

@github-ci-robot github-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 23, 2024
@github-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This PR has been approved by: @Lance52259

@Lance52259 Lance52259 changed the title feat(eg/source): add a new resource to manage all kinds event sources feat(eg/source): add a new data source to query all kinds of the event sources Aug 26, 2024
* `region` - (Optional, String) Specifies the region where the event sources are located.
If omitted, the provider-level region will be used.

* `provider_type` - (Optional, String) Specifies the type of the event sources to be queried.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please list the enumeration values ​​for this field.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

all enums are supported.


* `description` - The description of the event source.

* `status` - The status of the event source.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please list the enumeration values ​​for this field.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

%[1]s

resource "huaweicloud_eg_custom_event_source" "test" {
channel_id = huaweicloud_eg_custom_event_channel.test.id
Copy link
Contributor

@deer-hang deer-hang Aug 31, 2024

Choose a reason for hiding this comment

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

Suggested change
channel_id = huaweicloud_eg_custom_event_channel.test.id
channel_id = huaweicloud_eg_custom_event_channel.test.id

Aligning fields of scripts.
Same to line 161

Copy link
Collaborator Author

@Lance52259 Lance52259 Aug 31, 2024

Choose a reason for hiding this comment

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

all be done.

@deer-hang
Copy link
Contributor

/lgtm

@github-ci-robot github-ci-robot added the LGTM /lgtm label Aug 31, 2024
@github-ci-robot github-ci-robot merged commit 674cac6 into huaweicloud:master Aug 31, 2024
13 checks passed
@Lance52259 Lance52259 deleted the br_eg_event_sources_query branch August 31, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. feature LGTM /lgtm refactor size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants