Created
June 6, 2017 16:10
-
-
Save vaijab/d4695e919c5a68a109ec1700fc8b0c80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m.Clusters.On("GetClusters", cluster.Name).Return([]*model.Cluster{}, nil).Once() | |
m.Clusters.On("CreateClusterInfra", cluster).Return(nil) | |
m.Clusters.On("PushAssets", cluster.Name, model.Assets{}).Return(nil) | |
// At this point the cluster already exists. | |
m.Clusters.On("GetClusters", cluster.Name).Return([]*model.Cluster{&cluster}, nil).Once() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment