Skip to content

Commit

Permalink
Removes the special GA tags handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Aug 26, 2022
1 parent 15d94be commit ff966ca
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions tests/Feature/MicrosoftDockerTagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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());
}
}

0 comments on commit ff966ca

Please sign in to comment.