From 0e8b1fb8d71c6f11335cbaefd6d38ff30a73fd02 Mon Sep 17 00:00:00 2001 From: Vidya Reddy <59590642+Vidya2606@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:18:45 -0700 Subject: [PATCH] updating the unit tests by adding the new type and kind from drafy.yaml --- pkg/config/draftconfig_template_test.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkg/config/draftconfig_template_test.go b/pkg/config/draftconfig_template_test.go index 5c3bfdeb..aa4f30ca 100644 --- a/pkg/config/draftconfig_template_test.go +++ b/pkg/config/draftconfig_template_test.go @@ -13,10 +13,11 @@ import ( var allTemplates = map[string]*DraftConfig{} var validTemplateTypes = map[string]bool{ - "manifest": true, - "dockerfile": true, - "workflow": true, - "deployment": true, + "manifest": true, + "dockerfile": true, + "workflow": true, + "deployment": true, + "podDisruptionBudget": true, } var validVariableTypes = map[string]bool{ @@ -46,6 +47,11 @@ var validVariableKinds = map[string]bool{ "port": true, "repositoryBranch": true, "workflowName": true, + "resourceName": true, + "part-of": true, + "replicaCount": true, + "scalingResourceType": true, + "autoscaling": true, } /*