'Hook to initialize custom test bindings so journaling is scoped.'

def _do_init_bindings(self):

    context = ExecutionContext()
    config = self.agent.deployed_config
    enabled = config.get('spinnaker.gcs.enabled', None)
    if (enabled == False):
        raise ValueError('spinnaker.gcs.enabled    is    not    True')
    if ((not self.bindings['GCS_BUCKET']) and (not config['spinnaker.gcs.bucket'])):
        raise ValueError('The    GCS    bucket    name    is    not    specified')
    if ((not self.bindings['GCS_BASE_PATH']) and (not config['spinnaker.gcs.rootFolder'])):
        raise ValueError('The    GCS    rootFolder    is    not    specified')
    self.BUCKET = (self.bindings['GCS_BUCKET'] or config['spinnaker.gcs.bucket'])
    self.BASE_PATH = (self.bindings['GCS_BASE_PATH'] or config['spinnaker.gcs.rootFolder'])
    self.TEST_APP = self.bindings['TEST_APP']
    self.TEST_PIPELINE_NAME = 'My    {app}    Pipeline'.format(app=self.TEST_APP)
    self.TEST_PIPELINE_ID = '{app}-pipeline-id'.format(app=self.TEST_APP)
    self.gcs_observer = gcp.GcpStorageAgent.make_agent(credentials_path=self.bindings['GCS_JSON_PATH'], scopes=(gcp.gcp_storage_agent.STORAGE_FULL_SCOPE if self.bindings['GCS_JSON_PATH'] else None))
    metadata = self.gcs_observer.inspect_bucket(context, self.BUCKET)
    self.versioning_enabled = metadata.get('versioning', {}).get('enabled', False)
    if (not self.versioning_enabled):
        self.logger.info('bucket=%s    versioning    enabled=%s', self.BUCKET, self.versioning_enabled)
