This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
509 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
require File.expand_path('../spec_helper', __FILE__) | ||
|
||
describe Gizzard::ShardTemplate do | ||
describe "concrete?" do | ||
end | ||
|
||
describe "valid?" do | ||
end | ||
|
||
describe "java_type" do | ||
end | ||
|
||
describe "identifier" do | ||
end | ||
|
||
describe "host" do | ||
end | ||
|
||
describe "children" do | ||
end | ||
|
||
describe "descendant_identifiers" do | ||
end | ||
|
||
describe "copy_sources" do | ||
end | ||
|
||
describe "copy_source" do | ||
end | ||
|
||
describe "materialization methods" do | ||
describe "to_shard_id" do | ||
end | ||
|
||
describe "to_shard_info" do | ||
end | ||
end | ||
|
||
describe "comparison methods" do | ||
describe "similar?" do | ||
end | ||
|
||
describe "<=>" do | ||
end | ||
|
||
describe "eql?" do | ||
end | ||
|
||
describe "hash" do | ||
end | ||
end | ||
|
||
describe "config methods" do | ||
describe "to_config" do | ||
end | ||
end | ||
|
||
describe "nameserver inspection class methods" do | ||
describe "existing_template_map" do | ||
end | ||
|
||
describe "build_tree" do | ||
end | ||
|
||
describe "collect_links" do | ||
end | ||
|
||
describe "collect_shards" do | ||
end | ||
end | ||
|
||
describe "config class methods" do | ||
describe "from_config" do | ||
end | ||
|
||
describe "parse_link_struct" do | ||
end | ||
|
||
describe "parse_shard_definition" do | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--colour | ||
--format progress | ||
--loadby mtime | ||
--reverse | ||
--timeout 20 | ||
--diff | ||
--backtrace |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$:.unshift File.expand_path('../../lib', __FILE__) | ||
|
||
require 'rubygems' | ||
|
||
# testing requires | ||
require 'spec' | ||
require 'rr' | ||
|
||
Spec::Runner.configure do |config| | ||
config.mock_with :rr | ||
end | ||
|
||
# source requires | ||
require 'gizzard' | ||
require 'gizzard/nameserver' | ||
require 'gizzard/transformation' | ||
require 'gizzard/migrator' | ||
require 'gizzard/shard_template' | ||
|
||
|
||
def make_shard_template(config) | ||
config = YAML.load(config) if config.is_a? String | ||
Gizzard::ShardTemplate.from_config(config) | ||
end |
Oops, something went wrong.