Skip to content

Commit

Permalink
Fix customer name in license pact test (#118)
Browse files Browse the repository at this point in the history
* Fix customer name in license pact test

* fix customer name

* update custom metrics test

---------

Co-authored-by: Craig O'Donnell <[email protected]>
  • Loading branch information
sgalsaleh and Craig O'Donnell authored Nov 6, 2023
1 parent cf156a3 commit a2a9bbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pact/custom_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ func TestSendCustomAppMetrics(t *testing.T) {
customAppMetricsData, _ := json.Marshal(data)
license := &v1beta1.License{
Spec: v1beta1.LicenseSpec{
LicenseID: "sdk-license-customer-0-license",
AppSlug: "sdk-license-app",
LicenseID: "replicated-sdk-license-customer-0-license",
AppSlug: "replicated-sdk-license-app",
Endpoint: fmt.Sprintf("http://%s:%d", pact.Host, pact.Server.Port),
ChannelID: "sdk-license-app-nightly",
ChannelID: "replicated-sdk-license-app-nightly",
},
}

Expand Down
4 changes: 2 additions & 2 deletions pact/license_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ func TestGetLatestLicense(t *testing.T) {
sdkCustomerLicenseString := `apiVersion: kots.io/v1beta1
kind: License
metadata:
name: sdklicenseappcustomer0
name: replicatedsdklicenseappcustomer0
spec:
licenseID: replicated-sdk-license-customer-0-license
licenseType: trial
customerName: SDK License App Customer 0
customerName: Replicated SDK License App Customer 0
appSlug: replicated-sdk-license-app
channelID: replicated-sdk-license-app-nightly
channelName: Nightly
Expand Down

0 comments on commit a2a9bbb

Please sign in to comment.