(PUP-2950) Fix: ensure that default layer is used when the user has not provided a layer
Without this patch,
unless diagnostics.errors? @layering_config = data['layers'] or default_layers @scheme_extensions = (data['extensions'] and data['extensions']['scheme_handlers'] or default_scheme_extensions) else @layering_config = [] @scheme_extensions = {} end
This would have resulted in @layering_config not being assigned a value if no
layers was set. This is clearly not intented. This patch updates the behavior
so that @layering_config is assigned default_layers instead
(by changing or to ||)
This commit also adds test cases to verify that this case is caught. Adding the
test case also highlighted that the constant CONFIG_CATEGORIES_MISSING was
undefined, causing the test to fail. This commit also defines
CONFIG_CATEGORIES_MISSING