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(ECS): Synchronized ECS resources, unit test and document. #1090

Closed
wants to merge 1 commit into from

Conversation

dengyali0125
Copy link

@dengyali0125 dengyali0125 commented Jan 9, 2024

What this PR does / why we need it:

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:


PR Checklist

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

flexibleengine_compute_interface_attach

=== RUN TestAccComputeInterfaceAttach_Basic
=== PAUSE TestAccComputeInterfaceAttach_Basic
=== CONT TestAccComputeInterfaceAttach_Basic
--- PASS: TestAccComputeInterfaceAttach_Basic (624.92s)
PASS

Comment on lines 48 to 49
data "flexibleengine_vpc_subnet_v1" "mynet" {
name = "subnet-default"
Copy link
Contributor

Choose a reason for hiding this comment

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

flexibleengine seems have no default vpc and subnet, it's better to use resource

Copy link
Author

Choose a reason for hiding this comment

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

done

* `region` - (Optional, String, ForceNew) The region in which to create the interface attachment.
If omitted, the `region` argument of the provider is used. Changing this creates a new attachment.
* `region` - (Optional, String, ForceNew) The region in which to create the network interface attache resource. If
omitted, the provider-level region will be used. Changing this creates a new network interface attache resource.

* `instance_id` - (Required, String, ForceNew) The ID of the Instance to attach the Port or Network to.
Copy link
Contributor

Choose a reason for hiding this comment

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

lack

Changing this creates a new network interface attache resource.

check if other fields is ForceNew and if have Changing this... in this document.

Copy link
Author

Choose a reason for hiding this comment

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

done

Comment on lines 163 to 167
data "flexibleengine_compute_flavors_v2" "test" {
availability_zone = data.flexibleengine_availability_zones.test.names[0]
performance_type = "normal"
cpu_core = 2
memory_size = 4
}
Copy link
Contributor

Choose a reason for hiding this comment

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

this scripts should be formated

Copy link
Author

Choose a reason for hiding this comment

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

done

Comment on lines 177 to 181
resource "flexibleengine_compute_instance_v2" "test" {
name = "%[1]s"
image_id = data.flexibleengine_images_images.test.images[0].id
flavor_id = data.flexibleengine_compute_flavors_v2.test.flavors[0]
availability_zone = data.flexibleengine_availability_zones.test.names[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

there should have only one space on the left of the equal symbol

Copy link
Author

Choose a reason for hiding this comment

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

done

@dengyali0125 dengyali0125 force-pushed the dev branch 2 times, most recently from 3feddb2 to f7b2a05 Compare January 17, 2024 06:53
@Zippo-Wang
Copy link
Contributor

/lgtm

@github-actions github-actions bot added the LGTM label Jan 17, 2024
@chengxiangdong
Copy link
Contributor

/lgtm cancel

@github-actions github-actions bot removed the LGTM label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants