Skip to content

Commit

Permalink
Fix test with connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
rudiv committed Apr 16, 2024
1 parent d5b54ef commit 6721015
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<PackageId>Achieve.Aspire.AzureProvisioning</PackageId>
<RepositoryUrl>https://github.com/rudiv/Achieve.Aspire</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>assets/aspire-achieve.png</PackageIcon>
<PackageIcon>aspire-achieve.png</PackageIcon>
<PackageTags>aspire hosting azure provisioning keyvault managedidentity achieve</PackageTags>
<Description>Adds support for more secure Aspire provisioning.</Description>
<Description>Adds support for more full-featured (and secure) Azure provisioning within for Aspire.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor>
<MinVerDefaultPreReleaseIdentifiers>preview.5</MinVerDefaultPreReleaseIdentifiers>
Expand All @@ -29,7 +29,7 @@
<Content Include="..\..\README.md" Pack="true" PackagePath="\">
<Link>README.md</Link>
</Content>
<Content Include="..\..\assets\aspire-achieve.png" Pack="true" PackagePath="assets\">
<Content Include="..\..\assets\aspire-achieve.png" Pack="true" PackagePath="\">
<Link>assets\aspire-achieve.png</Link>
</Content>
</ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions tests/Achieve.Aspire.AzureProvisioning.Tests/CosmosDbTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ public async Task BasicCosmosDbGeneratesCorrectly()
});
});

var identityManifestBicep = await ManifestUtils.GetManifestWithBicep(cosmos.Resource);
var cosmosManifestBicep = await ManifestUtils.GetManifestWithBicep(cosmos.Resource);

var expectedManifest = """
{
"type": "azure.bicep.v0",
"connectionString": "{cosmos.outputs.accountEndpoint}",
"path": "cosmos.achieve.bicep"
}
""";
Assert.Equal(expectedManifest, identityManifestBicep.ManifestNode.ToString());
Assert.Equal(expectedManifest, cosmosManifestBicep.ManifestNode.ToString());

var expectedBicep = """
targetScope = 'resourceGroup'
Expand Down Expand Up @@ -103,6 +104,6 @@ public async Task BasicCosmosDbGeneratesCorrectly()
output accountEndpoint string = cosmosDbAccount.properties.documentEndpoint
""";
Assert.Equal(expectedBicep, identityManifestBicep.BicepText);
Assert.Equal(expectedBicep, cosmosManifestBicep.BicepText);
}
}

0 comments on commit 6721015

Please sign in to comment.