Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate testing/test #2639

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

mkondratek
Copy link
Contributor

@mkondratek mkondratek commented Nov 13, 2024

This PR is a part of the protocol migration. Some endpoints are written by hand. We are switching to the protocol generated from Cody. In this PR:

Based on PR #2638

Full chain of PRs as of 2024-11-13

Test plan

  • All migrated endpoints have been verified with debugger (and reviewed in the trace log).

@mkondratek mkondratek self-assigned this Nov 13, 2024
@mkondratek mkondratek changed the title Migrate testing/* Migrate testing/test Nov 13, 2024
@mkondratek mkondratek force-pushed the mkondratek/chore/migrate-api-part-5 branch from 5152a75 to 39b6d47 Compare November 13, 2024 20:48
@mkondratek mkondratek force-pushed the mkondratek/chore/migrate-api-part-4 branch from e3be1ea to f2bdee3 Compare November 14, 2024 09:46
@mkondratek mkondratek force-pushed the mkondratek/chore/migrate-api-part-5 branch from 39b6d47 to 7a529a0 Compare November 14, 2024 09:47
Base automatically changed from mkondratek/chore/migrate-api-part-4 to main November 14, 2024 09:53
Copy link
Contributor

@pkukielka pkukielka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mkondratek mkondratek force-pushed the mkondratek/chore/migrate-api-part-5 branch 3 times, most recently from 011c23c to 6137074 Compare November 19, 2024 11:37
@mkondratek mkondratek force-pushed the mkondratek/chore/migrate-api-part-5 branch from 6137074 to 9800a57 Compare November 26, 2024 10:15
@@ -109,6 +112,8 @@ open class CodyIntegrationTextFixture : BasePlatformTestCase(), LensListener {
}

private fun checkInitialConditions() {
isAuthenticated()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not matter.


With the check the tests fail with User is not authenticated assertion error.

Without it it fails with:

junit.framework.ComparisonFailure: Action description should be empty expected:<[]> but was:<[Log in to Sourcegraph to enable Cody features]>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at com.sourcegraph.cody.util.CodyIntegrationTextFixture.checkInitialConditions(CodyIntegrationTextFixture.kt:140)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants