Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Datree
Commits
391b9004
Commit
391b9004
authored
3 years ago
by
shmuelsa
Browse files
Options
Download
Email Patches
Plain Diff
fix: update crd url test
parent
85684ce9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bl/validation/k8sValidator_test.go
+2
-2
bl/validation/k8sValidator_test.go
with
2 additions
and
2 deletions
+2
-2
bl/validation/k8sValidator_test.go
+
2
-
2
View file @
391b9004
...
...
@@ -206,7 +206,7 @@ func test_get_all_schema_locations_online(t *testing.T) {
"/my-local-schema-location"
,
"default"
,
"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}/{{ .ResourceKind }}{{ .KindSuffix }}.json"
,
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/ma
ster
/argo/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json"
,
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/ma
in
/argo/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json"
,
}
actual
:=
getAllSchemaLocations
([]
string
{
"/my-local-schema-location"
},
false
)
assert
.
Equal
(
t
,
expectedOutput
,
actual
)
...
...
@@ -222,7 +222,7 @@ func test_get_all_schema_locations_offline(t *testing.T) {
func
test_get_datree_crd_schema_by_name
(
t
*
testing
.
T
)
{
input
:=
"argo"
expectedOutput
:=
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/ma
ster
/argo/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json"
expectedOutput
:=
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/ma
in
/argo/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json"
actual
:=
getDatreeCRDSchemaByName
(
input
)
if
actual
!=
expectedOutput
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help