demo_site

Attributes

JENKINS_IP

GEONODE_DEMO_DOMAIN

NODE_LIST

GEONODE_DEMO_JOB

parser

Classes

DemoGeonode

This class allows interaction with the Jenkins APIs to do several tasks,

Module Contents

demo_site.JENKINS_IP = 'http://52.7.139.177/'[source]
demo_site.GEONODE_DEMO_DOMAIN = 'demo.geonode.org'[source]
demo_site.NODE_LIST = 'computer/api/json'[source]
demo_site.GEONODE_DEMO_JOB = 'geonode-aws'[source]
class demo_site.DemoGeonode(username, token)[source]

This class allows interaction with the Jenkins APIs to do several tasks, for a more detailed guide on how to use self.j see https://python-jenkins.readthedocs.org/en/latest/api.html

j[source]
redeployDemo()[source]

Delete the jenkins node on which runs the amazon VM, this will both shutdown the VM and create a new one with a fresh geonode instance

getDemoNode(nodes_data)[source]

Commodity method to get the correct jenkins node name, the name is composed by ‘demo.geonode.org’ and the VM id

deleteNode(node_name)[source]

Delete the jenkins node and shutdown the amazon VM

buildJob(job)[source]

Trigger a job build

demo_site.parser[source]