summaryrefslogtreecommitdiff
path: root/tests/spec
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 10:34:54 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 10:34:54 -0500
commita36a55c3605bb89125d9d1819a9c32590008ea8f (patch)
tree74817edc4b676d13c017bee7c0319aad9932e73a /tests/spec
parent92ff05696506d423111fc7c0ff1e571f64af4615 (diff)
downloadhorizon-a36a55c3605bb89125d9d1819a9c32590008ea8f.tar.gz
horizon-a36a55c3605bb89125d9d1819a9c32590008ea8f.tar.bz2
horizon-a36a55c3605bb89125d9d1819a9c32590008ea8f.tar.xz
horizon-a36a55c3605bb89125d9d1819a9c32590008ea8f.zip
hscript: Implement 'repository' key and add tests for it
Diffstat (limited to 'tests/spec')
-rw-r--r--tests/spec/validator.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/spec/validator.rb b/tests/spec/validator.rb
index 4ba83cf..11fd4c4 100644
--- a/tests/spec/validator.rb
+++ b/tests/spec/validator.rb
@@ -337,6 +337,19 @@ RSpec.describe 'HorizonScript Validation Utility', :type => :aruba do
expect(last_command_started).to have_output(/error: .*netaddress.*addresses/)
end
end
+ context "for 'repository' key" do
+ it "succeeds with basic repositories" do
+ use_fixture '0055-repository-basic.installfile'
+ run_validate
+ expect(last_command_started).to have_output(PARSER_SUCCESS)
+ expect(last_command_started).to have_output(VALIDATOR_SUCCESS)
+ end
+ it "fails with invalid repository URL" do
+ use_fixture '0056-repository-invalid.installfile'
+ run_validate
+ expect(last_command_started).to have_output(/error: .*repository/)
+ end
+ end
end
context "unique keys" do
# Runner.Validate.network.