|
19 | 19 | "instance_id": Representation{repType: Optional, create: `${oci_core_instance.test_instance.id}`}, |
20 | 20 | } |
21 | 21 |
|
22 | | - bootVolumeAttachmentDataSourceWithFilterRepresentation = map[string]interface{}{ |
23 | | - "availability_domain": Representation{repType: Required, create: `${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}`}, |
24 | | - "compartment_id": Representation{repType: Required, create: `${var.compartment_id}`}, |
25 | | - "filter": RepresentationGroup{Required, bootVolumeAttachmentDataSourceFilterRepresentation}} |
26 | | - bootVolumeAttachmentDataSourceFilterRepresentation = map[string]interface{}{ |
27 | | - "name": Representation{repType: Required, create: `is_pv_encryption_in_transit_enabled`}, |
28 | | - "values": Representation{repType: Required, create: []string{`true`}}, |
29 | | - } |
30 | | - |
31 | 22 | BootVolumeAttachmentResourceConfig = BootVolumeResourceConfig |
32 | 23 | ) |
33 | 24 |
|
@@ -77,17 +68,6 @@ func TestCoreBootVolumeAttachmentResource_basic(t *testing.T) { |
77 | 68 | resource.TestMatchResourceAttr(datasourceName, "boot_volume_attachments.#", regexp.MustCompile("[1-9][0-9]*")), |
78 | 69 | ), |
79 | 70 | }, |
80 | | - // verify datasource can retrieve all boot volume attachments in a compartment and perform client-side filtering to list on is_pv_encryption_in_transit_enabled boot volume attachments |
81 | | - { |
82 | | - Config: config + |
83 | | - generateDataSourceFromRepresentationMap("oci_core_boot_volume_attachments", "test_boot_volume_attachments", Required, Update, bootVolumeAttachmentDataSourceWithFilterRepresentation) + |
84 | | - compartmentIdVariableStr + BootVolumeAttachmentResourceConfig, |
85 | | - Check: resource.ComposeAggregateTestCheckFunc( |
86 | | - resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), |
87 | | - resource.TestMatchResourceAttr(datasourceName, "boot_volume_attachments.#", regexp.MustCompile("[1-9][0-9]*")), |
88 | | - resource.TestCheckResourceAttr(datasourceName, "boot_volume_attachments.0.is_pv_encryption_in_transit_enabled", "true"), |
89 | | - ), |
90 | | - }, |
91 | 71 | }, |
92 | 72 | }) |
93 | 73 | } |
0 commit comments