-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken application name override
Fixes #17
- Loading branch information
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{config, ...}: let | ||
apps = config.applications; | ||
in { | ||
applications.test1 = { | ||
name = "test1override"; | ||
}; | ||
|
||
test = { | ||
name = "application name override"; | ||
description = "Check that application name override works as expected."; | ||
assertions = [ | ||
{ | ||
description = "Output path should use override name."; | ||
|
||
expression = apps.test1.output.path; | ||
|
||
expected = "test1override"; | ||
} | ||
|
||
{ | ||
description = "Namespace without override should use override name."; | ||
|
||
expression = apps.test1.namespace; | ||
|
||
expected = "test1override"; | ||
} | ||
|
||
{ | ||
description = "Generated Argo CD applicaiton should use override name."; | ||
|
||
expression = apps.apps.resources.applications.test1.metadata.name; | ||
|
||
expected = "test1override"; | ||
} | ||
]; | ||
}; | ||
} |