Skip to content

Commit

Permalink
fix(google_kato_test): Default to bindings for spinnaker account. (#1524
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jtk54 committed Mar 30, 2017
1 parent e7ee8b5 commit 7efa73a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dev/hal_k8s_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ sed "s/^start halyard/exit 0/" -i InstallHalyard.sh

sudo bash InstallHalyard.sh -y
echo "Starting Halyard..."
exec sudo /opt/halyard/bin/halyard 2>&1 /var/log/spinnaker/halyard/halyard.log &
sleep 25
sudo /opt/halyard/bin/halyard 2>&1 /var/log/spinnaker/halyard/halyard.log &
sleep 60

echo "Configuring k8s..."
echo $KUBE_CONF
Expand All @@ -86,7 +86,7 @@ hal config provider google account add my-gce-account \
--json-path /supporting_data/build.json --project $BUILD_PROJECT
hal config storage edit --account-name my-gce-account

hal config deploy edit --type flotilla --account-name my-k8s-account
hal config deploy edit --type distributed --account-name my-k8s-account
hal deploy run

cat ~/.hal/default/install.sh
3 changes: 1 addition & 2 deletions testing/citest/tests/google_kato_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,7 @@ def list_available_images(self):

# Produce the list of images that we expect to receive from spinnaker
# (visible to the primary service account).
spinnaker_account = self.agent.deployed_config.get(
'providers.google.primaryCredentials.name')
spinnaker_account = self.bindings['SPINNAKER_GOOGLE_ACCOUNT']

logger.debug('Configured with Spinnaker account "%s"', spinnaker_account)
expect_images = [{'account': spinnaker_account, 'imageName': image['name']}
Expand Down

0 comments on commit 7efa73a

Please sign in to comment.