-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1293 from LuvCurves/stable
(FACT-1340) Update acceptance tests for Cisco platforms
- Loading branch information
Showing
4 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
test_name 'ticket 1123 facter should not crash with invalid locale setting' | ||
confine :except, :platform => 'windows' | ||
confine :except, :platform => /^cisco_/ # See CISCO-43 | ||
|
||
agents.each do |host| | ||
step 'set an invalid value for locale and run facter' | ||
result = on host, 'LANG=ABCD facter facterversion' | ||
if host['platform'] !~ /solaris|aix|cumulus|osx|cisco/ | ||
if host['platform'] !~ /solaris|aix|cumulus|osx/ | ||
fail_test 'facter did not warn about the locale' unless | ||
result.stderr.include? 'locale environment variables were bad; continuing with LANG=C' | ||
end | ||
fail_test 'facter did not continue running' unless | ||
result.stdout =~ /^\d+\.\d+\.\d+$/ | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters