diff --git a/api/v1/backend_test.go b/api/v1/backend_test.go index 498140ab4..5424eaffb 100644 --- a/api/v1/backend_test.go +++ b/api/v1/backend_test.go @@ -28,6 +28,21 @@ var tests = map[string]struct { }, expectedRepositoryString: "azure:container:/", }, + "GivenAzureBackendAndPath_ThenExpectAzureContainerWithCustomPath": { + givenBackend: &Backend{ + Azure: &AzureSpec{ + Container: "container", + Path: "foo", + AccountNameSecretRef: newSecretRef("name"), + AccountKeySecretRef: newSecretRef("key"), + }, + }, + expectedVars: map[string]*corev1.EnvVarSource{ + cfg.AzureAccountEnvName: {SecretKeyRef: newSecretRef("name")}, + cfg.AzureAccountKeyEnvName: {SecretKeyRef: newSecretRef("key")}, + }, + expectedRepositoryString: "azure:container:foo", + }, "GivenB2Backend_ThenExpectB2BucketAndPath": { givenBackend: &Backend{ B2: &B2Spec{