Skip to content

Commit

Permalink
fix cluster_cert_data_source test upgrade bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fantapop committed Mar 13, 2024
1 parent 96ac1c5 commit 8947fcb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/provider/cluster_cert_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,15 @@ func TestIntegrationClusterCertDataSource(t *testing.T) {
s.EXPECT().CreateCluster(gomock.Any(), gomock.Any()).
Return(cluster, nil, nil)
s.EXPECT().GetCluster(gomock.Any(), clusterId).
Return(cluster, httpOkResponse, nil).Times(6)
Return(cluster, httpOkResponse, nil).Times(5)
s.EXPECT().DeleteCluster(gomock.Any(), clusterId)

testClusterCertDataSource(t, clusterName, true)
require.Equal(t, 4, numDownloads)

// The expected count here (3) is the number of times the framework calls
// Read on this resource. In that sense its somewhat meaningless. It was
// previously 4 with the sdkv2 framework.
require.Equal(t, 3, numDownloads)
}

func testClusterCertDataSource(t *testing.T, clusterName string, useMock bool) {
Expand Down

0 comments on commit 8947fcb

Please sign in to comment.