31 references to WithExistingSecret
Aspire.Hosting.Radius.Tests (31)
Publishing\ExistingSecretStoreBicepTests.cs (2)
36
s.
WithExistingSecret
("app/tls-cert", "tls.crt", "tls.key")));
52
s.
WithExistingSecret
("tls-cert", "tls.crt", "tls.key")));
Secrets\AddRadiusSecretStoreTests.cs (14)
175
Assert.Throws<ArgumentException>(() => store.
WithExistingSecret
(reference, "k"));
186
.
WithExistingSecret
(reference, "k");
197
Assert.Throws<ArgumentException>(() => store.
WithExistingSecret
("app/tls", "ok", " "));
205
.
WithExistingSecret
("app/s", "k1");
209
var ex = Assert.Throws<InvalidOperationException>(() => store.
WithExistingSecret
("app/s", "k2"));
221
var ex = Assert.Throws<InvalidOperationException>(() => store.
WithExistingSecret
("app/s", "k"));
230
.
WithExistingSecret
("app/s", "k1", "k2", "k3");
243
Assert.Throws<ArgumentException>(() => store.
WithExistingSecret
("app/s", "ok", " "));
245
store.
WithExistingSecret
("app/s", "ok");
257
Assert.Throws<ArgumentException>(() => store.
WithExistingSecret
("BAD/REF", "ok"));
259
store.
WithExistingSecret
("app/s", "ok");
276
var ex = Assert.Throws<ArgumentException>(() => store.
WithExistingSecret
("app/s", key));
286
var ex = Assert.Throws<ArgumentException>(() => store.
WithExistingSecret
("app/s", new string('a', 254)));
313
.
WithExistingSecret
("app/s", key);
Secrets\SecretStoreValidationTests.cs (15)
93
.
WithExistingSecret
("app/appsecrets", "k"),
111
.
WithExistingSecret
("app/appsecrets", "k");
121
.
WithExistingSecret
("app/appsecrets", "k");
146
.
WithExistingSecret
("app/tls", "tls.crt");
174
var ex = Assert.Throws<InvalidOperationException>(() => store.
WithExistingSecret
("app/s", "k"));
200
.
WithExistingSecret
("app/s", "dup", "dup");
248
.
WithExistingSecret
("app/s", "k");
329
.
WithExistingSecret
("prod/my-secret");
345
.
WithExistingSecret
("prod/my-secret");
360
.
WithExistingSecret
("bare-name", "k");
423
.
WithExistingSecret
("prod/my-secret", "k");
436
s.
WithExistingSecret
("db-creds", "password"));
438
.
WithExistingSecret
("prod/db-creds", "password");
457
s.
WithExistingSecret
("db-creds", "password"));
459
s.
WithExistingSecret
("db-creds", "password"));