deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [11/14] git commit: Network API rev 3 - Mock Driver fixtures (yaml)
Date Fri, 26 Apr 2013 15:47:08 GMT
Network API rev 3 - Mock Driver fixtures (yaml)


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/a7ad95f1
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/a7ad95f1
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/a7ad95f1

Branch: refs/heads/master
Commit: a7ad95f169c6a886c61c64f8e096ae08f1c77d60
Parents: 83dcee9
Author: marios <marios@redhat.com>
Authored: Fri Apr 12 12:21:25 2013 +0300
Committer: marios <marios@redhat.com>
Committed: Fri Apr 26 18:01:55 2013 +0300

----------------------------------------------------------------------
 .../drivers/mock/data/instances/inst0.yml          |    1 +
 .../drivers/mock/data/instances/inst1.yml          |    2 +
 .../drivers/mock/data/instances/inst3.yml          |   26 +++++++++++++++
 .../drivers/mock/data/network_interfaces/nic1.yml  |    6 +++
 .../mock/data/network_interfaces/nicinst3.yml      |    7 ++++
 .../deltacloud/drivers/mock/data/networks/net1.yml |    9 +++++
 .../deltacloud/drivers/mock/data/networks/net2.yml |    9 +++++
 .../drivers/mock/data/subnets/subnet1.yml          |    6 +++
 .../drivers/mock/data/subnets/subnet2.yml          |    6 +++
 .../drivers/mock/data/subnets/subnet3.yml          |    6 +++
 .../drivers/mock/data/subnets/subnet4.yml          |    6 +++
 11 files changed, 84 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/instances/inst0.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/instances/inst0.yml b/server/lib/deltacloud/drivers/mock/data/instances/inst0.yml
index 832329a..8ee7ad9 100644
--- a/server/lib/deltacloud/drivers/mock/data/instances/inst0.yml
+++ b/server/lib/deltacloud/drivers/mock/data/instances/inst0.yml
@@ -21,3 +21,4 @@
 :id: inst0
 :state: RUNNING
 :storage_volumes: []
+:network_interfaces: []

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/instances/inst1.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/instances/inst1.yml b/server/lib/deltacloud/drivers/mock/data/instances/inst1.yml
index b1ebb45..4d20bfa 100644
--- a/server/lib/deltacloud/drivers/mock/data/instances/inst1.yml
+++ b/server/lib/deltacloud/drivers/mock/data/instances/inst1.yml
@@ -20,3 +20,5 @@
 - :reboot
 - :stop
 :storage_volumes: []
+:network_interfaces:
+  - nic1

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml b/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml
new file mode 100644
index 0000000..0d8e36a
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/instances/inst3.yml
@@ -0,0 +1,26 @@
+---
+:id: inst3
+:name: ''
+:state: RUNNING
+:keyname: ''
+:image_id: img3
+:owner_id: !binary |-
+  bW9ja3VzZXI=
+:public_addresses:
+- !ruby/object:Deltacloud::InstanceAddress
+  address: img3.inst3.public.com
+  address_type: :hostname
+:private_addresses:
+- !ruby/object:Deltacloud::InstanceAddress
+  address: img3.inst3.private.com
+  address_type: :hostname
+:instance_profile: !ruby/object:Deltacloud::InstanceProfile
+  id: m1-small
+:realm_id: eu
+:create_image: true
+:actions:
+- :reboot
+- :stop
+:user_data: 
+:network_interfaces:
+- nicinst3

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/network_interfaces/nic1.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/network_interfaces/nic1.yml b/server/lib/deltacloud/drivers/mock/data/network_interfaces/nic1.yml
new file mode 100644
index 0000000..5ca8b4b
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/network_interfaces/nic1.yml
@@ -0,0 +1,6 @@
+---
+:id: nic1
+:name: nic1
+:network: subnet1
+:instance: inst1
+:ip_address: 192.168.1.2

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/network_interfaces/nicinst3.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/network_interfaces/nicinst3.yml b/server/lib/deltacloud/drivers/mock/data/network_interfaces/nicinst3.yml
new file mode 100644
index 0000000..7a6f3e2
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/network_interfaces/nicinst3.yml
@@ -0,0 +1,7 @@
+---
+:id: nicinst3
+:name: nicinst3
+:instance: inst3
+:network: net1
+:subnet: subnet2
+:ip_address: 192.168.2.189

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/networks/net1.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/networks/net1.yml b/server/lib/deltacloud/drivers/mock/data/networks/net1.yml
new file mode 100644
index 0000000..b39f2fd
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/networks/net1.yml
@@ -0,0 +1,9 @@
+---
+:id: net1
+:name: network1
+:subnets:
+- subnet1
+- subnet2
+:address_blocks:
+- 192.168.0.0/16
+:state: UP

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/networks/net2.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/networks/net2.yml b/server/lib/deltacloud/drivers/mock/data/networks/net2.yml
new file mode 100644
index 0000000..535481b
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/networks/net2.yml
@@ -0,0 +1,9 @@
+---
+:id: net2
+:name: network2
+:subnets:
+- subnet3
+- subnet4
+:address_blocks:
+- 10.0.0.0/8
+:state: UP

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/subnets/subnet1.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/subnets/subnet1.yml b/server/lib/deltacloud/drivers/mock/data/subnets/subnet1.yml
new file mode 100644
index 0000000..11d5db9
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/subnets/subnet1.yml
@@ -0,0 +1,6 @@
+---
+:id: subnet1
+:name: subnet1
+:network: net1
+:address_block: 192.168.1.0/24
+:state: UP

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/subnets/subnet2.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/subnets/subnet2.yml b/server/lib/deltacloud/drivers/mock/data/subnets/subnet2.yml
new file mode 100644
index 0000000..d2ef7c2
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/subnets/subnet2.yml
@@ -0,0 +1,6 @@
+---
+:id: subnet2
+:name: subnet2
+:network: net1
+:address_block: 192.168.2.0/24
+:state: UP

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/subnets/subnet3.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/subnets/subnet3.yml b/server/lib/deltacloud/drivers/mock/data/subnets/subnet3.yml
new file mode 100644
index 0000000..7109179
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/subnets/subnet3.yml
@@ -0,0 +1,6 @@
+---
+:id: subnet3
+:name: subnet3
+:network: net2
+:address_block: 10.1.0.0/16
+:state: UP

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a7ad95f1/server/lib/deltacloud/drivers/mock/data/subnets/subnet4.yml
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/mock/data/subnets/subnet4.yml b/server/lib/deltacloud/drivers/mock/data/subnets/subnet4.yml
new file mode 100644
index 0000000..937baaf
--- /dev/null
+++ b/server/lib/deltacloud/drivers/mock/data/subnets/subnet4.yml
@@ -0,0 +1,6 @@
+---
+:id: subnet4
+:name: subnet4
+:network: net2
+:address_block: 10.2.0.0/16
+:state: UP


Mime
View raw message