From ff966cae8542acf45650993f843475b11820d1cf Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Fri, 26 Aug 2022 16:45:30 -0300 Subject: [PATCH] Removes the special GA tags handling --- tests/Feature/MicrosoftDockerTagsTest.php | 25 +---------------------- 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/tests/Feature/MicrosoftDockerTagsTest.php b/tests/Feature/MicrosoftDockerTagsTest.php index 0066e6a2..4ab1e8a7 100644 --- a/tests/Feature/MicrosoftDockerTagsTest.php +++ b/tests/Feature/MicrosoftDockerTagsTest.php @@ -11,29 +11,6 @@ class MicrosoftDockerTagsTest extends TestCase { - /** @test */ - function it_gets_a_general_availability_release() - { - $dockerTags = app(MicrosoftDockerTags::class, ['service' => app(MsSql::class)]); - $this->assertStringContainsString('-GA-', $dockerTags->getLatestTag()); - } - - /** @test */ - function it_ignores_tags_without_ga_string() - { - $mssql = app(MsSql::class); - $dockerTags = M::mock(MicrosoftDockerTags::class, [app(Client::class), $mssql]) - ->makePartial() - ->shouldAllowMockingProtectedMethods(); - - $dockerTags->shouldReceive('getTagsResponse')->andReturn(new MicrosoftDockerTagsFakestream('abc')); - - $tags = $dockerTags->getTags(); - - $this->assertEquals(2, $tags->count()); - $this->assertStringContainsString('-GA-', $tags->first()); - } - /** @test */ function it_reverses_tag_list() { @@ -44,6 +21,6 @@ function it_reverses_tag_list() $dockerTags->shouldReceive('getTagsResponse')->andReturn(new MicrosoftDockerTagsFakestream('abc')); - $this->assertEquals('2024-GA-ubuntu-18.04', $dockerTags->getLatestTag()); + $this->assertEquals('latest', $dockerTags->getLatestTag()); } }