Skip to content

Commit

Permalink
fix comments - add ut
Browse files Browse the repository at this point in the history
Signed-off-by: vinayada1 <[email protected]>
  • Loading branch information
vinayada1 committed Mar 1, 2024
1 parent 63e012d commit d60042f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkg/recipes/configloader/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,30 @@ func TestGetConfiguration(t *testing.T) {
Providers: createAWSProvider(),
},
},
{
// Add test here for the simulated flag
name: "simulated env",
envResource: &model.EnvironmentResource{
Properties: &model.EnvironmentProperties{
Compute: &model.KubernetesCompute{
Kind: to.Ptr(kind),
Namespace: to.Ptr(envNamespace),
ResourceID: to.Ptr(envResourceId),
},
Simulated: to.Ptr(true),
},
},
appResource: nil,
expectedConfig: &recipes.Configuration{
Runtime: recipes.RuntimeConfiguration{
Kubernetes: &recipes.KubernetesRuntime{
Namespace: "default",
EnvironmentNamespace: envNamespace,
},
},
Simulated: true,
},
},
{
name: "invalid app resource",
envResource: &model.EnvironmentResource{
Expand Down

0 comments on commit d60042f

Please sign in to comment.