mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
feat(az): configure the az CLI against floci-az with floci az setup (#29)
This commit is contained in:
1 parent
dd38f6dc27
commit
7b58a38c5a
27 files changed
+1587
-12
No files matched your search
@@ -94,6 +94,19 @@ class StartCommandArgsTest {
|
||||
.dockerRunArgs(SOCKET).contains("/from-flag:/app/data"));
|
||||
}
|
||||
|
||||
/** 'floci az setup' needs HTTPS (MSAL refuses an HTTP authority), so az always starts with TLS. */
|
||||
@Test
|
||||
void onlyAzStartsWithTlsEnabled() {
|
||||
assertEquals(List.of("-d", "--name", "floci-az", "-p", "4577:4577",
|
||||
"-v", "/sock:/sock",
|
||||
"-e", "FLOCI_AZ_TLS_ENABLED=true",
|
||||
"floci/floci-az:latest"),
|
||||
parse("az", "start").dockerRunArgs(SOCKET));
|
||||
for (String tree : new String[]{"aws", "gcp", "oci"}) {
|
||||
assertFalse(parse(tree, "start").dockerRunArgs(SOCKET).stream().anyMatch(a -> a.contains("TLS")), tree);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void readinessPollKeepsTheHostFromTheEndpointWhenSwappingThePort() {
|
||||
assertEquals("http://floci.internal:4599", StartCommand.withPort("http://floci.internal:4566", 4599));
|
||||
|
||||
Reference in new issue
Block a user