Skip to content

Commit

Permalink
Merge pull request #837 from imjasonh/test-runtime-replace
Browse files Browse the repository at this point in the history
test runtime replacements
  • Loading branch information
imjasonh authored Nov 10, 2023
2 parents a0d0866 + 10de0e4 commit a857d9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package:
runtime:
- ${{package.name}}-config
- ${{vars.bar}}
- other-package=${{package.version}}
provides:
- replacement-provides-version=${{package.version}}
- replacement-provides-foo=${{vars.foo}}
Expand All @@ -36,6 +37,7 @@ subpackages:
runtime:
- ${{package.name}}-config-${{package.version}}
- ${{vars.foo}}
- other-package=${{package.version}}
provides:
- subpackage-version=${{package.version}}
- subpackage-foo=${{vars.foo}}
Expand Down Expand Up @@ -63,11 +65,13 @@ subpackages:
require.Equal(t, []string{
"replacement-provides-config",
"BAR",
"other-package=0.0.1",
}, cfg.Package.Dependencies.Runtime)

require.Equal(t, []string{
"replacement-provides-config-0.0.1",
"FOO",
"other-package=0.0.1",
}, cfg.Subpackages[0].Dependencies.Runtime)
}

Expand Down

0 comments on commit a857d9d

Please sign in to comment.