Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Check the release readiness of an SDK package by collecting the required informa
- Go

2. **Execute Readiness Check**:
- Use the `azsdk_check_package_release_readiness` tool with the provided package name and selected language
- Use the `azsdk_release_sdk` tool with the provided package name, selected language, and set checkReady to true.
- Do not check for existing pull requests to run this step.
- Do not ask the user to create a release plan to run this step.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@ public void Setup()
});
devOpsService = mockDevOpsService.Object;

var releaseReadinessToolLogger = new TestLogger<ReleaseReadinessTool>();

sdkReleaseTool = new SdkReleaseTool(
devOpsService,
logger,
releaseReadinessToolLogger,
new InputSanitizer());
}

Expand Down Expand Up @@ -108,6 +105,24 @@ public async Task TestRunReleaseWithInvalidLanguage()
});
}

[Test]
public async Task TestRunReleaseWithCheckReady()
{
var packageName = "azure-template";
var language = "Python";
var result = await sdkReleaseTool.ReleasePackageAsync(packageName, language, "main", checkReady: true);

Assert.That(result, Is.Not.Null);
Assert.Multiple(() =>
{
Assert.That(result.PackageName, Is.EqualTo(packageName));
Assert.That(result.Language, Is.EqualTo(SdkLanguage.Python));
Assert.That(result.ReleaseStatusDetails, Does.Contain("Package 'azure-template' is ready for release."));
Assert.That(result.ReleasePipelineRunUrl, Is.EqualTo(string.Empty));
Assert.That(result.PipelineBuildId, Is.EqualTo(0));
});
}

[Test]
public async Task TestRunReleaseWithCsharpLanguage()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public static class SharedOptions
typeof(SampleGeneratorTool),
typeof(SampleTranslatorTool),
typeof(ReleasePlanTool),
typeof(ReleaseReadinessTool),
typeof(SpecWorkflowTool),
typeof(SdkBuildTool),
typeof(SdkGenerationTool),
Expand Down

This file was deleted.

Loading
Loading