Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f6bef5b3 authored by Jonathan Pastor's avatar Jonathan Pastor
Browse files

the new generator is tested using rspec and stubbed data

parent 5db7079d
No related branches found
No related tags found
No related merge requests found
Pipeline #94726 failed
Showing
with 433 additions and 14740 deletions
...@@ -10,4 +10,4 @@ gem "ruby-cute", :require => "cute" ...@@ -10,4 +10,4 @@ gem "ruby-cute", :require => "cute"
gem "peach" gem "peach"
gem "restfully" gem "restfully"
gem "rspec" gem "rspec"
gem "webmock" gem "webmock"
\ No newline at end of file
...@@ -5,6 +5,9 @@ GEM ...@@ -5,6 +5,9 @@ GEM
public_suffix (>= 2.0.2, < 4.0) public_suffix (>= 2.0.2, < 4.0)
backports (3.15.0) backports (3.15.0)
bond (0.4.3) bond (0.4.3)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
diffy (3.3.0) diffy (3.3.0)
dns-zone (0.3.1) dns-zone (0.3.1)
domain_name (0.5.20190701) domain_name (0.5.20190701)
...@@ -71,14 +74,32 @@ GEM ...@@ -71,14 +74,32 @@ GEM
ripl (>= 0.3.0) ripl (>= 0.3.0)
ripl-short_errors (0.1.0) ripl-short_errors (0.1.0)
ripl (>= 0.2.8) ripl (>= 0.2.8)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.2)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)
ruby-cute (0.12) ruby-cute (0.12)
ipaddress (>= 0.8) ipaddress (>= 0.8)
json (>= 1.8) json (>= 1.8)
net-ssh-multi (>= 1.2) net-ssh-multi (>= 1.2)
rest-client (>= 1.6) rest-client (>= 1.6)
safe_yaml (1.0.5)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.7.6) unf_ext (0.0.7.6)
webmock (3.7.5)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
PLATFORMS PLATFORMS
ruby ruby
...@@ -92,7 +113,9 @@ DEPENDENCIES ...@@ -92,7 +113,9 @@ DEPENDENCIES
net-ssh net-ssh
peach peach
restfully restfully
rspec
ruby-cute ruby-cute
webmock
BUNDLED WITH BUNDLED WITH
1.17.3 1.17.3
...@@ -1387,8 +1387,12 @@ def generate_oar_properties(options) ...@@ -1387,8 +1387,12 @@ def generate_oar_properties(options)
# If no cluster is given, then the clusters are the cluster of the given site # If no cluster is given, then the clusters are the cluster of the given site
if not options.key? :clusters or options[:clusters].length == 0 if not options.key? :clusters or options[:clusters].length == 0
clusters = data_hierarchy['sites'][site_name]['clusters'].keys if data_hierarchy['sites'].key? site_name
options[:clusters] = clusters clusters = data_hierarchy['sites'][site_name]['clusters'].keys
options[:clusters] = clusters
else
raise("The provided site does not exist : I can't detect clusters")
end
else else
clusters = options[:clusters] clusters = options[:clusters]
end end
......
This diff is collapsed.
{
"links" : [],
"total" : 0,
"items" : [],
"offset" : 0
}
{
"total" : 0,
"offset" : 0,
"items" : [],
"links" : []
}
{
"items" : [],
"links" : [],
"total" : 0,
"offset" : 0
}
{
"offset" : 0,
"total" : 0,
"items" : [],
"links" : []
}
{
"total" : 0,
"links" : [],
"items" : [],
"offset" : 0
}
{
"offset" : 0,
"links" : [],
"total" : 0,
"items" : []
}
{
"items" : [],
"offset" : 0,
"total" : 0,
"links" : []
}
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment