fix(deps): update stackit sdk modules (#327)

* fix(deps): update stackit sdk modules

* remove deprecated fields from credentials resources

* remove deprecated fields from credentials resources

* add newly added fields to credentials resources

* remove deprecated fields from credentials datasource

* add newly added credential fields to datasources

* update acceptance tests

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
This commit is contained in:
stackit-pipeline 2024-04-15 09:52:35 +02:00 committed by GitHub
parent 4917eda1ad
commit 18d3f4d1fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 262 additions and 284 deletions

View file

@ -31,10 +31,12 @@ func TestMapFields(t *testing.T) {
Host: types.StringNull(),
Hosts: types.ListNull(types.StringType),
HttpAPIURI: types.StringNull(),
Name: types.StringNull(),
HttpAPIURIs: types.ListNull(types.StringType),
Management: types.StringNull(),
Password: types.StringNull(),
Port: types.Int64Null(),
Uri: types.StringNull(),
Uris: types.ListNull(types.StringType),
Username: types.StringNull(),
},
true,
@ -51,11 +53,19 @@ func TestMapFields(t *testing.T) {
"",
},
HttpApiUri: utils.Ptr("http"),
Name: utils.Ptr("name"),
HttpApiUris: &[]string{
"http_api_uri_1",
"",
},
Management: utils.Ptr("management"),
Password: utils.Ptr("password"),
Port: utils.Ptr(int64(1234)),
Uri: utils.Ptr("uri"),
Username: utils.Ptr("username"),
Uris: &[]string{
"uri_1",
"",
},
Username: utils.Ptr("username"),
},
},
},
@ -70,11 +80,19 @@ func TestMapFields(t *testing.T) {
types.StringValue(""),
}),
HttpAPIURI: types.StringValue("http"),
Name: types.StringValue("name"),
HttpAPIURIs: types.ListValueMust(types.StringType, []attr.Value{
types.StringValue("http_api_uri_1"),
types.StringValue(""),
}),
Management: types.StringValue("management"),
Password: types.StringValue("password"),
Port: types.Int64Value(1234),
Uri: types.StringValue("uri"),
Username: types.StringValue("username"),
Uris: types.ListValueMust(types.StringType, []attr.Value{
types.StringValue("uri_1"),
types.StringValue(""),
}),
Username: types.StringValue("username"),
},
true,
},
@ -84,14 +102,16 @@ func TestMapFields(t *testing.T) {
Id: utils.Ptr("cid"),
Raw: &rabbitmq.RawCredentials{
Credentials: &rabbitmq.Credentials{
Host: utils.Ptr(""),
Hosts: &[]string{},
HttpApiUri: nil,
Name: nil,
Password: utils.Ptr(""),
Port: utils.Ptr(int64(2123456789)),
Uri: nil,
Username: utils.Ptr(""),
Host: utils.Ptr(""),
Hosts: &[]string{},
HttpApiUri: nil,
HttpApiUris: &[]string{},
Management: nil,
Password: utils.Ptr(""),
Port: utils.Ptr(int64(2123456789)),
Uri: nil,
Uris: &[]string{},
Username: utils.Ptr(""),
},
},
},
@ -103,10 +123,12 @@ func TestMapFields(t *testing.T) {
Host: types.StringValue(""),
Hosts: types.ListValueMust(types.StringType, []attr.Value{}),
HttpAPIURI: types.StringNull(),
Name: types.StringNull(),
HttpAPIURIs: types.ListValueMust(types.StringType, []attr.Value{}),
Management: types.StringNull(),
Password: types.StringValue(""),
Port: types.Int64Value(2123456789),
Uri: types.StringNull(),
Uris: types.ListValueMust(types.StringType, []attr.Value{}),
Username: types.StringValue(""),
},
true,