From 53c875bfc82e72b66f921d08eb19cbaad90d7a06 Mon Sep 17 00:00:00 2001 From: Alex Parker <7272359+ajp-io@users.noreply.github.com> Date: Fri, 2 Aug 2024 12:54:08 -0400 Subject: [PATCH] Fix typo (#4798) * Fix typo * fix test flakiness --------- Co-authored-by: Salah Al Saleh --- e2e/playwright/tests/smoke-test/test.spec.ts | 1 - pkg/license/signature.go | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/e2e/playwright/tests/smoke-test/test.spec.ts b/e2e/playwright/tests/smoke-test/test.spec.ts index 41f9d33523..9e87a4130a 100644 --- a/e2e/playwright/tests/smoke-test/test.spec.ts +++ b/e2e/playwright/tests/smoke-test/test.spec.ts @@ -157,7 +157,6 @@ test('smoke test', async ({ page }) => { await expect(page.locator('#app')).toContainText('Full Snapshots (Instance)'); await page.getByRole('link', { name: 'Partial Snapshots (Application)' }).click(); await page.getByRole('button', { name: 'Start a snapshot' }).click(); - await expect(page.locator('#app')).toContainText('In Progress'); await expect(page.locator('#app')).toContainText('Completed', { timeout: 30000 }); await expect(page.getByText('It’s recommend that you use')).toBeVisible(); await page.getByText('Learn more').click(); diff --git a/pkg/license/signature.go b/pkg/license/signature.go index d523191381..7e16e00970 100644 --- a/pkg/license/signature.go +++ b/pkg/license/signature.go @@ -178,19 +178,19 @@ func verifyLicenseData(outerLicense *kotsv1beta1.License, innerLicense *kotsv1be return fmt.Errorf("entitlement %q not found in the inner license", k) } if outerEntitlement.Value.Value() != innerEntitlement.Value.Value() { - return fmt.Errorf("entitlement %q value has changed to %q (license) from %q (witin signature)", k, outerEntitlement.Value.Value(), innerEntitlement.Value.Value()) + return fmt.Errorf("entitlement %q value has changed to %q (license) from %q (within signature)", k, outerEntitlement.Value.Value(), innerEntitlement.Value.Value()) } if outerEntitlement.Title != innerEntitlement.Title { - return fmt.Errorf("entitlement %q title has changed to %q (license) from %q (witin signature)", k, outerEntitlement.Title, innerEntitlement.Title) + return fmt.Errorf("entitlement %q title has changed to %q (license) from %q (within signature)", k, outerEntitlement.Title, innerEntitlement.Title) } if outerEntitlement.Description != innerEntitlement.Description { - return fmt.Errorf("entitlement %q description has changed to %q (license) from %q (witin signature)", k, outerEntitlement.Description, innerEntitlement.Description) + return fmt.Errorf("entitlement %q description has changed to %q (license) from %q (within signature)", k, outerEntitlement.Description, innerEntitlement.Description) } if outerEntitlement.IsHidden != innerEntitlement.IsHidden { - return fmt.Errorf("entitlement %q hidden has changed to %t (license) from %t (witin signature)", k, outerEntitlement.IsHidden, innerEntitlement.IsHidden) + return fmt.Errorf("entitlement %q hidden has changed to %t (license) from %t (within signature)", k, outerEntitlement.IsHidden, innerEntitlement.IsHidden) } if outerEntitlement.ValueType != innerEntitlement.ValueType { - return fmt.Errorf("entitlement %q value type has changed to %q (license) from %q (witin signature)", k, outerEntitlement.ValueType, innerEntitlement.ValueType) + return fmt.Errorf("entitlement %q value type has changed to %q (license) from %q (within signature)", k, outerEntitlement.ValueType, innerEntitlement.ValueType) } }