|
@@ -44,6 +44,17 @@ def get_service_a():
|
|
|
state = 'success',
|
|
|
)
|
|
|
|
|
|
+def get_hosting_service():
|
|
|
+ return finoex.HostingService(
|
|
|
+ duration = ioex.datetimeex.Duration(years = 2),
|
|
|
+ ip_addresses = ['127.0.0.1', '::1'],
|
|
|
+ location = 'vienna',
|
|
|
+ name = u'virtual server',
|
|
|
+ operating_system = 'debian 8',
|
|
|
+ price_brutto = finoex.Sum(1.0, u'EUR'),
|
|
|
+ state = 'running',
|
|
|
+ )
|
|
|
+
|
|
|
def get_service_b():
|
|
|
return finoex.Service(
|
|
|
name = u'service',
|
|
@@ -264,6 +275,18 @@ period: !period
|
|
|
end: null
|
|
|
start: 2017-04-02 10:23:00
|
|
|
price_brutto: !sum '1.0 EUR'
|
|
|
+"""],
|
|
|
+ [get_hosting_service(), u"""!hosting-service
|
|
|
+duration: !duration
|
|
|
+ years: 2
|
|
|
+ip_addresses:
|
|
|
+- 127.0.0.1
|
|
|
+- ::1
|
|
|
+location: vienna
|
|
|
+name: virtual server
|
|
|
+operating_system: debian 8
|
|
|
+price_brutto: !sum '1.0 EUR'
|
|
|
+state: running
|
|
|
"""],
|
|
|
[get_pledge(), u"""!pledge
|
|
|
campaign: !campaign
|
|
@@ -420,6 +443,18 @@ name: service
|
|
|
period: !period
|
|
|
start: 2017-04-02 10:23:00
|
|
|
price_brutto: !sum '1.0 EUR'
|
|
|
+"""],
|
|
|
+ [get_hosting_service(), u"""!hosting-service
|
|
|
+duration: !duration
|
|
|
+ years: 2
|
|
|
+ip_addresses:
|
|
|
+- 127.0.0.1
|
|
|
+- ::1
|
|
|
+location: vienna
|
|
|
+name: virtual server
|
|
|
+operating_system: debian 8
|
|
|
+price_brutto: !sum '1.0 EUR'
|
|
|
+state: running
|
|
|
"""],
|
|
|
[get_pledge(), u"""!pledge
|
|
|
campaign: !campaign
|