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

Move SQLite "auth" metadata to a separate package internal/authentication/sqlite #3135

Merged
merged 5 commits into from
Sep 20, 2023

Conversation

ItalyPaleAle
Copy link
Contributor

Small refactoring of the SQLite component, to move the "auth" metadata (the struct containing the connection string and a few other basic fields) to a shared package. This is modeled after what has been done a while ago for Postgres.

Having a separate package helps with developing other SQLite-based components in the near future, such as the nameresolver.

A few additional changes:

  • SQLite metadata:
    • Properties have been standardized since before some had the InSeconds suffix (timeoutInSeconds) and some didn't (cleanupInterval). timeoutInSeconds is now timeout and accepts a Go duration. Of course, timeoutInSeconds continues to work as alias.
    • Also aliased connectionString to url (just because I myself kept making that mistake many times :) But the "official" name hasn't changed)
  • Fixed a bug in the mapstructure decoder, since aliases that were defined in embedded structs were not parsed. This was necessary for this PR since the SQLite "auth" metadata contained aliases.

More tests have been added for SQLite metadata, which were missing before.

@ItalyPaleAle ItalyPaleAle requested review from a team as code owners September 16, 2023 01:25
@ItalyPaleAle
Copy link
Contributor Author

/ok-to-test

@dapr-bot
Copy link
Collaborator

Complete Build Matrix

The build status is currently not updated here. Please visit the action run below directly.

🔗 Link to Action run

Commit ref: 63634f7

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 16, 2023

Components conformance test

🔗 Link to Action run

Commit ref: 63634f7

❌ Some conformance tests failed

These tests failed:

  • state.azure.cosmosdb

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 16, 2023

Components certification test

🔗 Link to Action run

Commit ref: 63634f7

❌ Some certification tests failed

These tests failed:

  • pubsub.gcp.pubsub
  • state.gcp.firestore

ItalyPaleAle added a commit to ItalyPaleAle/dapr-components-contrib that referenced this pull request Sep 18, 2023
ItalyPaleAle added a commit to ItalyPaleAle/dapr-components-contrib that referenced this pull request Sep 18, 2023
ItalyPaleAle added a commit to ItalyPaleAle/dapr-components-contrib that referenced this pull request Sep 19, 2023
@robertojrojas
Copy link
Contributor

/ok-to-test

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 19, 2023

Components certification test

🔗 Link to Action run

Commit ref: 63634f7

❌ Some certification tests failed

These tests failed:

  • pubsub.gcp.pubsub
  • pubsub.pulsar
  • state.gcp.firestore

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 19, 2023

Components conformance test

🔗 Link to Action run

Commit ref: 63634f7

✅ All conformance tests passed

All tests have reported a successful status

@dapr-bot
Copy link
Collaborator

Complete Build Matrix

The build status is currently not updated here. Please visit the action run below directly.

🔗 Link to Action run

Commit ref: 63634f7

@robertojrojas
Copy link
Contributor

/ok-to-test

@dapr-bot
Copy link
Collaborator

Complete Build Matrix

The build status is currently not updated here. Please visit the action run below directly.

🔗 Link to Action run

Commit ref: 63634f7

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 19, 2023

Components certification test

🔗 Link to Action run

Commit ref: 63634f7

❌ Some certification tests failed

These tests failed:

  • bindings.rabbitmq
  • pubsub.gcp.pubsub
  • pubsub.mqtt3
  • state.gcp.firestore

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 19, 2023

Components conformance test

🔗 Link to Action run

Commit ref: 63634f7

✅ All conformance tests passed

All tests have reported a successful status

@berndverst
Copy link
Member

/ok-to-test

@dapr-bot
Copy link
Collaborator

Complete Build Matrix

The build status is currently not updated here. Please visit the action run below directly.

🔗 Link to Action run

Commit ref: 77cf89c

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 20, 2023

Components certification test

🔗 Link to Action run

Commit ref: 77cf89c

❌ Some certification tests failed

These tests failed:

  • pubsub.gcp.pubsub
  • pubsub.mqtt3
  • state.gcp.firestore

@dapr-bot
Copy link
Collaborator

dapr-bot commented Sep 20, 2023

Components conformance test

🔗 Link to Action run

Commit ref: 77cf89c

✅ All conformance tests passed

All tests have reported a successful status

@berndverst berndverst merged commit e7db4cf into dapr:master Sep 20, 2023
5 of 6 checks passed
amimimor pushed a commit to amimimor/components-contrib that referenced this pull request Oct 12, 2023
…ation/sqlite` (dapr#3135)

Signed-off-by: ItalyPaleAle <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
Signed-off-by: Amit Mor <[email protected]>
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.

4 participants