Skip to content

Update go xorm tests #47

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

Merged
merged 8 commits into from
Oct 30, 2024
Merged

Update go xorm tests #47

merged 8 commits into from
Oct 30, 2024

Conversation

fimac
Copy link
Contributor

@fimac fimac commented Oct 29, 2024

  • updates proxy, and goeql
  • adds additional tests for jsonb ops that we have in main currently and inline with poc
  • deletes examples because they are a duplication of what we have in the e2e tests.
  • updates to download eql from releases and install on init of docker
  • removes dropping and recreating db when running tests not necessary.
Screenshot 2024-10-30 at 12 42 08 PM

@fimac fimac force-pushed the chore/update-go-xorm-tests branch from dfcf480 to 3032832 Compare October 29, 2024 03:59
@@ -26,28 +26,9 @@ subproject_teardown() {
docker compose down
}

subproject_examples() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this command as no longer necessary (see comment in description). The tests are the source of truth for examples. No need to duplicate.

@fimac fimac marked this pull request as ready for review October 30, 2024 01:44

// Installing EQL
func installDsl(engine *sql.DB) {
path := "../../../release/cipherstash-encrypt-dsl.sql"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed as this is now being installed on init of docker with a download directly from eql

installEql()
}

func runExamples() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As noted in the description, these examples are duplicates of the e2e tests. Removing as there's no need for both, tests are the source of truth for working examples.

@@ -123,44 +123,6 @@ func (eb *EncryptedBoolField) FromDB(data []byte) error {
return nil
}

func setupDb() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unnecessary to have this. The db is created when docker starts

@fimac fimac force-pushed the chore/update-go-xorm-tests branch from 4103247 to 70ed523 Compare October 30, 2024 01:48
Copy link
Contributor

@auxesis auxesis left a comment

Choose a reason for hiding this comment

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

Big fan of these simplifications.

Nice work @fimac ❤️

@fimac fimac merged commit 9154678 into main Oct 30, 2024
@fimac fimac deleted the chore/update-go-xorm-tests branch October 30, 2024 02:40
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