mirror of
https://github.com/puppetlabs/vmpooler-dns-gcp.git
synced 2026-01-26 02:58:42 -05:00
Renamed spec files
This commit is contained in:
parent
63c15c3cbb
commit
735f57c754
3 changed files with 4 additions and 4 deletions
26
spec/gcp_helper.rb
Normal file
26
spec/gcp_helper.rb
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
MockDnsZone = Struct.new(
|
||||
# https://github.com/googleapis/google-cloud-ruby/blob/main/google-cloud-dns/lib/google/cloud/dns/zone.rb
|
||||
:service, :gapi, :id, :name, :dns, :description, :name_servers, :name_server_set, :created_at
|
||||
) do
|
||||
def add(name, type, ttl, data)
|
||||
change = MockDnsChange.new
|
||||
change.additions(name, type, ttl, data)
|
||||
# return name
|
||||
end
|
||||
end
|
||||
|
||||
# --------------------
|
||||
# Main GoogleCloudDnsProject Object
|
||||
# --------------------
|
||||
MockGoogleCloudDnsProjectConnection = Struct.new(
|
||||
# https://cloud.google.com/ruby/docs/reference/google-cloud-dns/latest/Google-Cloud#Google__Cloud_dns_instance_
|
||||
:scope, :retries, :timeout
|
||||
) do
|
||||
def zone
|
||||
MockDnsZone.new
|
||||
end
|
||||
end
|
||||
|
||||
def mock_Google_Cloud_Dns_Project_Connection(options = {})
|
||||
MockGoogleCloudDnsProjectConnection.new()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue