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

Introduce Oracle Autonomous Database Resource & Data #27696

Merged
merged 50 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
90eb21b
* Add Exadata Infrastructure files.
eelhomsi Aug 9, 2024
9482eba
Merge branch 'main' into introduce-exa-data-and-resource
eelhomsi Aug 12, 2024
22a45cc
* Add docs for db_server data source.
eelhomsi Aug 12, 2024
ac87fb3
* Update.
eelhomsi Aug 12, 2024
4ae5b29
* Implement ADBS resource and data source.
eelhomsi Aug 23, 2024
f0f64f8
* Implement ADBS resource and data source.
eelhomsi Aug 23, 2024
24cc8a8
* Improve tests.
eelhomsi Sep 5, 2024
d1e4479
* Improvements.
eelhomsi Sep 5, 2024
a3d6f65
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 17, 2024
f04dc04
* Initial merge.
eelhomsi Oct 17, 2024
2f43e4d
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 17, 2024
e4ef87f
* Update.
eelhomsi Oct 17, 2024
7cf80a4
* Data source changes.
eelhomsi Oct 17, 2024
e19b41c
* Data source changes.
eelhomsi Oct 17, 2024
8f683f6
* Add validators.
eelhomsi Oct 17, 2024
cf491d4
* Update docs.
eelhomsi Oct 17, 2024
e61bb90
* Add test.
eelhomsi Oct 17, 2024
ef61cbf
* Add test.
eelhomsi Oct 17, 2024
5b8d54f
* Add test.
eelhomsi Oct 17, 2024
f84395b
* Fix.
eelhomsi Oct 18, 2024
e64c1f9
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 18, 2024
88dd6de
* Fix validator and tests.
eelhomsi Oct 18, 2024
9547adb
* Linting errors.
eelhomsi Oct 18, 2024
53985ac
* Reorder.
eelhomsi Oct 18, 2024
ad7b159
* Update field.
eelhomsi Oct 18, 2024
b74e28b
* Update tests.
eelhomsi Oct 18, 2024
309e141
Populate vnetId
eelhomsi Oct 18, 2024
b0c0789
Update website/docs/r/oracle_autonomous_database_regular.html.markdown
eelhomsi Oct 22, 2024
7d172eb
Update website/docs/r/oracle_autonomous_database_regular.html.markdown
eelhomsi Oct 22, 2024
1f91896
Update website/docs/r/oracle_autonomous_database_regular.html.markdown
eelhomsi Oct 22, 2024
1aa4e22
Update website/docs/r/oracle_autonomous_database_regular.html.markdown
eelhomsi Oct 22, 2024
57e0dbc
Update website/docs/d/oracle_autonomous_database_regular.html.markdown
eelhomsi Oct 22, 2024
ec73e3f
Update website/docs/d/oracle_autonomous_database_regular.html.markdown
eelhomsi Oct 22, 2024
e279d2c
* Update.
eelhomsi Oct 22, 2024
ed0eb4a
Merge remote-tracking branch 'origin/introduce-adbs-data-resource' in…
eelhomsi Oct 22, 2024
9d8c6bb
* Update to address comments.
eelhomsi Oct 22, 2024
4c38967
* Update to address comments.
eelhomsi Oct 22, 2024
ebdb9d0
* Update to address comments.
eelhomsi Oct 22, 2024
beac0b9
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 22, 2024
6ef8146
* First batch of updates to address comments.
eelhomsi Oct 23, 2024
fc3164d
Update internal/services/oracle/autonomous_database_regular_resource.go
eelhomsi Oct 23, 2024
d8bda37
Update internal/services/oracle/autonomous_database_regular_resource.go
eelhomsi Oct 23, 2024
1036e32
Update internal/services/oracle/autonomous_database_regular_resource.go
eelhomsi Oct 23, 2024
441c968
* Second batch of updates to address comments.
eelhomsi Oct 23, 2024
599c418
Merge remote-tracking branch 'origin/introduce-adbs-data-resource' in…
eelhomsi Oct 23, 2024
5a32153
* Second batch of updates to address comments.
eelhomsi Oct 23, 2024
522d1be
* Update.
eelhomsi Oct 23, 2024
a960148
* Update to address comments.
eelhomsi Oct 23, 2024
155b866
* Add missing location.
eelhomsi Oct 23, 2024
7ec1443
* Fix.
eelhomsi Oct 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
491 changes: 491 additions & 0 deletions internal/services/oracle/autonomous_database_regular_data_source.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright © 2024, Oracle and/or its affiliates. All rights reserved

package oracle_test

import (
"fmt"
"testing"

"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/oracle"
)

type AutonomousDatabaseRegularDataSource struct{}

func TestAdbsRegularDataSource_basic(t *testing.T) {
data := acceptance.BuildTestData(t, oracle.AutonomousDatabaseRegularDataSource{}.ResourceType(), "test")
r := AutonomousDatabaseRegularDataSource{}

data.DataSourceTest(t, []acceptance.TestStep{
{
Config: r.basic(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).Key("location").Exists(),
check.That(data.ResourceName).Key("name").Exists(),
check.That(data.ResourceName).Key("resource_group_name").Exists(),
check.That(data.ResourceName).Key("data_storage_size_in_tbs").Exists(),
check.That(data.ResourceName).Key("display_name").Exists(),
check.That(data.ResourceName).Key("license_model").Exists(),
),
},
})
}

func (d AutonomousDatabaseRegularDataSource) basic(data acceptance.TestData) string {
return fmt.Sprintf(`
%s

data "azurerm_oracle_autonomous_database" "test" {
name = azurerm_oracle_autonomous_database.test.name
resource_group_name = azurerm_oracle_autonomous_database.test.resource_group_name
}
`, AdbsRegularResource{}.basic(data))
}
Loading
Loading