Gen v1.22.0 (#677)
* generator to support bool? * gen v1.22.0 * trim version convertor * bump ver
This commit is contained in:
@@ -8,14 +8,6 @@ namespace k8s.Tests
|
||||
{
|
||||
public class VersionConverterTests
|
||||
{
|
||||
[Fact]
|
||||
public void CanExplicitlyConvert()
|
||||
{
|
||||
var a = new V1APIService { Spec = new V1APIServiceSpec { Group = "blah" } };
|
||||
var b = (V1beta1APIService)a;
|
||||
b.Spec.Group.Should().Be("blah");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ConfigurationsAreValid()
|
||||
{
|
||||
@@ -40,15 +32,5 @@ namespace k8s.Tests
|
||||
{
|
||||
KubernetesVersionComparer.Instance.Compare(x, y).Should().Be(expected);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ConvertToVersion()
|
||||
{
|
||||
var src = new V1beta1APIService().Initialize();
|
||||
src.ApiVersion.Should().Be("apiregistration.k8s.io/v1beta1");
|
||||
var sut = (V1APIService)VersionConverter.ConvertToVersion(src, "v1");
|
||||
sut.Should().NotBeNull();
|
||||
sut.ApiVersion.Should().Be("apiregistration.k8s.io/v1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user