Skip to content

Commit 8e153f7

Browse files
committed
Try new tests
Signed-off-by: Cyrill Näf <cyrill.naef@gmail.com>
1 parent dcea514 commit 8e153f7

File tree

4 files changed

+83
-46
lines changed

4 files changed

+83
-46
lines changed

examples/oracle/namespaced/v1beta1/autonomousdatabase.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-FileCopyrightText: 2025 The Crossplane Authors <https://crossplane.io>
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
54
apiVersion: oracle.azure.m.upbound.io/v1beta1
65
kind: AutonomousDatabase
76
metadata:
@@ -16,33 +15,32 @@ spec:
1615
adminPasswordSecretRef:
1716
key: example-key
1817
name: example-secret
19-
autoScalingEnabled: example
18+
autoScalingEnabled: false
2019
autoScalingForStorageEnabled: false
21-
backupRetentionPeriodInDays: 42
22-
characterSet: example
23-
computeCount: 1.23456
24-
computeModel: example
25-
data_storage_size_in_gbs: 42
26-
dbVersion: example
27-
dbWorkload: example
20+
backupRetentionPeriodInDays: 1
21+
characterSet: AL32UTF8
22+
computeCount: 2
23+
computeModel: ECPU
24+
dataStorageSizeInTbs: 1
25+
dbVersion: "19c"
26+
dbWorkload: OLTP
2827
displayName: example
29-
licenseModel: false
28+
licenseModel: LicenseIncluded
3029
location: West Europe
3130
mtlsConnectionRequired: false
32-
nationalCharacterSet: example
31+
nationalCharacterSet: AL16UTF16
3332
resourceGroupNameSelector:
3433
matchLabels:
3534
testing.upbound.io/example-name: example
3635
subnetIdSelector:
3736
matchLabels:
3837
testing.upbound.io/example-name: example
39-
virtualNetworkId: example
4038
---
4139
apiVersion: azure.m.upbound.io/v1beta1
4240
kind: ResourceGroup
4341
metadata:
4442
annotations:
45-
meta.upbound.io/example-id: dbforpostgresql/v1beta2/flexibleserver
43+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabase
4644
labels:
4745
testing.upbound.io/example-name: example
4846
name: example
@@ -55,7 +53,7 @@ apiVersion: network.azure.m.upbound.io/v1beta1
5553
kind: Subnet
5654
metadata:
5755
annotations:
58-
meta.upbound.io/example-id: dbforpostgresql/v1beta2/flexibleserver
56+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabase
5957
labels:
6058
testing.upbound.io/example-name: example
6159
name: example
@@ -67,7 +65,7 @@ spec:
6765
delegation:
6866
- name: oracle
6967
serviceDelegation:
70-
name: Oracle.Database/networkAttachments
68+
- name: Oracle.Database/networkAttachments
7169
resourceGroupNameSelector:
7270
matchLabels:
7371
testing.upbound.io/example-name: example
@@ -81,7 +79,7 @@ apiVersion: network.azure.m.upbound.io/v1beta1
8179
kind: VirtualNetwork
8280
metadata:
8381
annotations:
84-
meta.upbound.io/example-id: dbforpostgresql/v1beta2/flexibleserver
82+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabase
8583
labels:
8684
testing.upbound.io/example-name: example
8785
name: example

examples/oracle/namespaced/v1beta1/autonomousdatabasebackup.yaml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ spec:
1616
autonomousDatabaseIdSelector:
1717
matchLabels:
1818
testing.upbound.io/example-name: example
19-
type: Full
19+
type: LongTerm
2020
retentionPeriodInDays: 120
21-
2221
---
23-
2422
apiVersion: oracle.azure.m.upbound.io/v1beta1
2523
kind: AutonomousDatabase
2624
metadata:
@@ -32,13 +30,41 @@ metadata:
3230
namespace: upbound-system
3331
spec:
3432
forProvider:
33+
adminPasswordSecretRef:
34+
key: password
35+
name: example-db-secret
36+
autoScalingEnabled: false
37+
autoScalingForStorageEnabled: false
38+
backupRetentionPeriodInDays: 60
39+
characterSet: AL32UTF8
40+
computeCount: 2
41+
computeModel: ECPU
42+
dataStorageSizeInTbs: 1
43+
dbVersion: "19c"
44+
dbWorkload: OLTP
45+
displayName: example
46+
licenseModel: LicenseIncluded
3547
location: East US
48+
mtlsConnectionRequired: false
49+
nationalCharacterSet: AL16UTF16
3650
resourceGroupNameSelector:
3751
matchLabels:
3852
testing.upbound.io/example-name: example
39-
53+
subnetIdSelector:
54+
matchLabels:
55+
testing.upbound.io/example-name: example
56+
---
57+
apiVersion: v1
58+
kind: Secret
59+
metadata:
60+
annotations:
61+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
62+
name: example-db-secret
63+
namespace: upbound-system
64+
type: Opaque
65+
stringData:
66+
password: "Placeholder1!"
4067
---
41-
4268
apiVersion: azure.m.upbound.io/v1beta1
4369
kind: ResourceGroup
4470
metadata:
@@ -50,4 +76,4 @@ metadata:
5076
namespace: upbound-system
5177
spec:
5278
forProvider:
53-
location: East US
79+
location: East US

examples/oracle/namespaced/v1beta1/autonomousdatabaseclonefrombackup.yaml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,44 +38,42 @@ spec:
3838
sourceAutonomousDatabaseIdSelector:
3939
matchLabels:
4040
testing.upbound.io/example-name: example
41-
4241
---
43-
4442
apiVersion: oracle.azure.m.upbound.io/v1beta1
4543
kind: AutonomousDatabase
4644
metadata:
4745
annotations:
48-
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabaseclonefrombackup
46+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
4947
labels:
5048
testing.upbound.io/example-name: example
5149
name: example
5250
namespace: upbound-system
5351
spec:
5452
forProvider:
5553
adminPasswordSecretRef:
56-
key: example-key
57-
name: example-secret
58-
allowedIps: []
54+
key: password
55+
name: example-db-secret
5956
autoScalingEnabled: false
60-
autoScalingForStorageEnabled: true
61-
backupRetentionPeriodInDays: 7
57+
autoScalingForStorageEnabled: false
58+
backupRetentionPeriodInDays: 60
6259
characterSet: AL32UTF8
6360
computeCount: 2
6461
computeModel: ECPU
6562
dataStorageSizeInTbs: 1
66-
dbVersion: 19c
63+
dbVersion: "19c"
6764
dbWorkload: OLTP
68-
displayName: Example
65+
displayName: example
6966
licenseModel: LicenseIncluded
70-
location: eastus
71-
mtlsConnectionRequired: true
67+
location: East US
68+
mtlsConnectionRequired: false
7269
nationalCharacterSet: AL16UTF16
7370
resourceGroupNameSelector:
7471
matchLabels:
7572
testing.upbound.io/example-name: example
76-
73+
subnetIdSelector:
74+
matchLabels:
75+
testing.upbound.io/example-name: example
7776
---
78-
7977
apiVersion: azure.m.upbound.io/v1beta1
8078
kind: ResourceGroup
8179
metadata:
@@ -103,11 +101,9 @@ spec:
103101
autonomousDatabaseIdSelector:
104102
matchLabels:
105103
testing.upbound.io/example-name: example
106-
type: Full
104+
type: LongTerm
107105
retentionPeriodInDays: 120
108-
109106
---
110-
111107
apiVersion: oracle.azure.m.upbound.io/v1beta1
112108
kind: AutonomousDatabase
113109
metadata:
@@ -119,13 +115,28 @@ metadata:
119115
namespace: upbound-system
120116
spec:
121117
forProvider:
118+
adminPasswordSecretRef:
119+
key: example-key
120+
name: example-secret
121+
allowedIps: []
122+
autoScalingEnabled: false
123+
autoScalingForStorageEnabled: true
124+
backupRetentionPeriodInDays: 7
125+
characterSet: AL32UTF8
126+
computeCount: 2
127+
computeModel: ECPU
128+
dataStorageSizeInTbs: 1
129+
dbVersion: 19c
130+
dbWorkload: OLTP
131+
displayName: Example
132+
licenseModel: LicenseIncluded
122133
location: East US
134+
mtlsConnectionRequired: true
135+
nationalCharacterSet: AL16UTF16
123136
resourceGroupNameSelector:
124137
matchLabels:
125138
testing.upbound.io/example-name: example
126-
127139
---
128-
129140
apiVersion: azure.m.upbound.io/v1beta1
130141
kind: ResourceGroup
131142
metadata:

examples/oracle/namespaced/v1beta1/autonomousdatabaseclonefromdatabase.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
databaseWorkload: OLTP
3030
displayName: ExampleClone
3131
licenseModel: LicenseIncluded
32-
location: West Europe
32+
location: eastus
3333
mtlsConnectionRequired: true
3434
nationalCharacterSet: AL16UTF16
3535
resourceGroupNameSelector:
@@ -38,9 +38,10 @@ spec:
3838
sourceAutonomousDatabaseIdSelector:
3939
matchLabels:
4040
testing.upbound.io/example-name: example
41-
41+
subnetIdSelector:
42+
matchLabels:
43+
testing.upbound.io/example-name: example
4244
---
43-
4445
apiVersion: oracle.azure.m.upbound.io/v1beta1
4546
kind: AutonomousDatabase
4647
metadata:
@@ -73,9 +74,10 @@ spec:
7374
resourceGroupNameSelector:
7475
matchLabels:
7576
testing.upbound.io/example-name: example
76-
77+
subnetIdSelector:
78+
matchLabels:
79+
testing.upbound.io/example-name: example
7780
---
78-
7981
apiVersion: azure.m.upbound.io/v1beta1
8082
kind: ResourceGroup
8183
metadata:

0 commit comments

Comments
 (0)