Skip to content

Commit

Permalink
CASMINST-6803: Skip tftp test on vshasta on CSM 1.4 (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharding-hpe authored Feb 29, 2024
1 parent 4eb840c commit f470cb9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
15 changes: 9 additions & 6 deletions goss-testing/tests/ncn/goss-cms-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2023-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -37,11 +37,14 @@ command:
# If not on vshasta, do not skip any tests
{{ if ne true $vshasta }}
skip: false
# Even on vshasta, if this is not the conman test, do not skip it
{{ else if ne "conman" $test }}
skip: false
# Skip the conman test when running on vshasta
{{ else }}
# On vshasta, if this is the conman test, skip it
{{ else if eq "conman" $test }}
skip: true
# On vshasta, if this is the tftp test, skip it
{{ else if eq "tftp" $test }}
skip: true
# Otherwise, run it
{{ else }}
skip: false
{{ end }}
{{ end }}
8 changes: 7 additions & 1 deletion goss-testing/tests/ncn/goss-cray-tftp-check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2023-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -26,6 +26,7 @@
{{ $logrun := $scripts | printf "%s/log_run.sh" }}
{{ $cmsdev := "/usr/local/bin/cmsdev" }}
command:
{{ $vshasta := .Vars.vshasta }}
{{ $testlabel := "cray_tftp_check" }}
{{$testlabel}}:
title: cray-tftp service is healthy
Expand All @@ -41,4 +42,9 @@ command:
- SUCCESS
# 3 minute test timeout
timeout: 180000
# This test has to be skipped on vshasta for CSM 1.4
{{ if eq true $vshasta }}
skip: true
{{ else }}
skip: false
{{ fi }}

0 comments on commit f470cb9

Please sign in to comment.