File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ func toWriteDatastoreSchema(datastore *Datastore) *SchemaWrapper {
136
136
StorageAccountName : datastore .StorageAccountName ,
137
137
StorageContainerName : datastore .StorageContainerName ,
138
138
Credentials : credentials ,
139
+ Endpoint : "core.windows.net" ,
140
+ Protocol : "https" ,
139
141
},
140
142
},
141
143
}
Original file line number Diff line number Diff line change @@ -94,7 +94,11 @@ func TestToWriteDatastoreSchemaEmptyDatastore(t *testing.T) {
94
94
a := assert .New (t )
95
95
datastore := Datastore {}
96
96
writeSchema := toWriteDatastoreSchema (& datastore )
97
- a .Equal (& SchemaWrapper {WriteDatastoreSchemaProperties {Contents : WriteDatastoreSchema {}}}, writeSchema )
97
+ expected := WriteDatastoreSchemaProperties {Contents : WriteDatastoreSchema {
98
+ Protocol : "https" ,
99
+ Endpoint : "core.windows.net" ,
100
+ }}
101
+ a .Equal (& SchemaWrapper {expected }, writeSchema )
98
102
}
99
103
100
104
func TestToWriteDatastoreSchema (t * testing.T ) {
@@ -122,6 +126,8 @@ func TestToWriteDatastoreSchema(t *testing.T) {
122
126
TenantId : datastore .Auth .TenantId ,
123
127
SqlUserName : datastore .Auth .SqlUserName ,
124
128
},
129
+ Protocol : "https" ,
130
+ Endpoint : "core.windows.net" ,
125
131
},
126
132
},
127
133
}
@@ -151,6 +157,8 @@ func TestToWriteDatastoreSchema_NilAuth(t *testing.T) {
151
157
StorageAccountName : datastore .StorageAccountName ,
152
158
StorageContainerName : datastore .StorageContainerName ,
153
159
Credentials : nil ,
160
+ Endpoint : "core.windows.net" ,
161
+ Protocol : "https" ,
154
162
},
155
163
},
156
164
}
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ type WriteDatastoreSchema struct {
20
20
StorageAccountName string `json:"accountName,omitempty"`
21
21
StorageContainerName string `json:"containerName,omitempty"`
22
22
Credentials * WriteDatastoreCredentialsSchema `json:"credentials,omitempty"`
23
+ Endpoint string `json:"endpoint"`
24
+ Protocol string `json:"protocol"`
23
25
}
24
26
25
27
type WriteDatastoreSchemaProperties struct {
You can’t perform that action at this time.
0 commit comments