@@ -19,7 +19,7 @@ public async Task StorageGetsCreatedAndUsable()
19
19
20
20
var passwordParameter = ParameterResourceBuilderExtensions . CreateDefaultPasswordParameter ( distributedApplicationBuilder ,
21
21
$ "rootPassword") ;
22
- distributedApplicationBuilder . Configuration [ "Parameters:rootPassword" ] = passwordParameter . Value ;
22
+ distributedApplicationBuilder . Configuration [ "Parameters:rootPassword" ] = await passwordParameter . GetValueAsync ( default ) ;
23
23
var rootPasswordParameter = distributedApplicationBuilder . AddParameter ( passwordParameter . Name ) ;
24
24
25
25
var minio = distributedApplicationBuilder
@@ -39,9 +39,9 @@ public async Task StorageGetsCreatedAndUsable()
39
39
40
40
var webApplicationBuilder = Host . CreateApplicationBuilder ( ) ;
41
41
42
- webApplicationBuilder . Services . AddMinio ( configureClient => configureClient
42
+ webApplicationBuilder . Services . AddMinio ( async configureClient => configureClient
43
43
. WithEndpoint ( "localhost" , minioEndpoint . Port )
44
- . WithCredentials ( rootUser , passwordParameter . Value )
44
+ . WithCredentials ( rootUser , await passwordParameter . GetValueAsync ( default ) )
45
45
. WithSSL ( false )
46
46
. Build ( ) ) ;
47
47
@@ -70,7 +70,7 @@ public async Task WithDataShouldPersistStateBetweenUsages(bool useVolume)
70
70
71
71
var passwordParameter = ParameterResourceBuilderExtensions . CreateDefaultPasswordParameter ( builder1 ,
72
72
$ "rootPassword") ;
73
- builder1 . Configuration [ "Parameters:rootPassword" ] = passwordParameter . Value ;
73
+ builder1 . Configuration [ "Parameters:rootPassword" ] = await passwordParameter . GetValueAsync ( default ) ;
74
74
var rootPasswordParameter = builder1 . AddParameter ( passwordParameter . Name ) ;
75
75
76
76
var minio1 = builder1 . AddMinioContainer ( "minio" ,
@@ -106,9 +106,9 @@ public async Task WithDataShouldPersistStateBetweenUsages(bool useVolume)
106
106
{
107
107
var webApplicationBuilder = Host . CreateApplicationBuilder ( ) ;
108
108
109
- webApplicationBuilder . Services . AddMinio ( configureClient => configureClient
109
+ webApplicationBuilder . Services . AddMinio ( async configureClient => configureClient
110
110
. WithEndpoint ( "localhost" , minio1Endpoint . Port )
111
- . WithCredentials ( rootUser , passwordParameter . Value )
111
+ . WithCredentials ( rootUser , await passwordParameter . GetValueAsync ( default ) )
112
112
. WithSSL ( false )
113
113
. Build ( ) ) ;
114
114
@@ -127,7 +127,7 @@ public async Task WithDataShouldPersistStateBetweenUsages(bool useVolume)
127
127
}
128
128
129
129
using var builder2 = TestDistributedApplicationBuilder . Create ( testOutputHelper ) ;
130
- builder2 . Configuration [ "Parameters:rootPassword" ] = passwordParameter . Value ;
130
+ builder2 . Configuration [ "Parameters:rootPassword" ] = await passwordParameter . GetValueAsync ( default ) ;
131
131
var rootPasswordParameter2 = builder2 . AddParameter ( passwordParameter . Name ) ;
132
132
133
133
@@ -159,9 +159,9 @@ public async Task WithDataShouldPersistStateBetweenUsages(bool useVolume)
159
159
{
160
160
var webApplicationBuilder = Host . CreateApplicationBuilder ( ) ;
161
161
162
- webApplicationBuilder . Services . AddMinio ( configureClient => configureClient
162
+ webApplicationBuilder . Services . AddMinio ( async configureClient => configureClient
163
163
. WithEndpoint ( "localhost" , minio2Endpoint . Port )
164
- . WithCredentials ( rootUser , passwordParameter . Value )
164
+ . WithCredentials ( rootUser , await passwordParameter . GetValueAsync ( default ) )
165
165
. WithSSL ( false )
166
166
. Build ( ) ) ;
167
167
0 commit comments