Unit Tests for the Image Recipe Tools module.

Test the functions that work with recipes and images.

class test_image_recipe_tools.TestDependencyResolver(methodName='runTest')[source]

Test the function, that sorts a list of recipe files on their dependencies.

test_dependency_drill_down()[source]

Test the function that follows a single dependency chain.

test_dependency_resolver()[source]

Test the function that orders a list on recipe dependencies.

test_get_dependency_from_recipe()[source]

Test the function, that reads the dependency from a recipes header.

test_get_path_from_dependency()[source]

Test the function to get the recipe path from a dependency.

test_is_own_dependency()[source]

Test the function that checks if dependency is to a private sregistry.

test_recipe_list_sanity_check()[source]

Test the function that finds recipes that would create images with the same name.

class test_image_recipe_tools.TestImageInSRegistry(methodName='runTest')[source]

Test the function to check, if an image already exists in the sregistry.

test_image_in_sregistry()[source]

Tested function should return correct boolean for image existence.

class test_image_recipe_tools.TestImagePusher(methodName='runTest')[source]

Test the function to Push an image to an sregistry.

test_image_pusher()[source]

Test the image upload function.

class test_image_recipe_tools.TestInfoFromRecipe(methodName='runTest')[source]

Test the functions to return collection, image version and name given a recipe.

test_get_coll_from_recipe_path()[source]

Test the function to return the collection name given a recipes full path.

test_get_image_name_from_recipe()[source]

Test the function to return image name given a recipe name.

test_get_version_from_recipe()[source]

Test the function to return image version given a recipe name.

class test_image_recipe_tools.TestRecipeFinder(methodName='runTest')[source]

Test the generator that returns directory and file information.

test_exceptions()[source]

Test if specified exceptions are raised.

test_recipe_finder()[source]

Test if recipes can be found and returned as expected.