Skip to content

Commit

Permalink
fix: remove query_type from model
Browse files Browse the repository at this point in the history
  • Loading branch information
afthabvp committed Apr 8, 2024
1 parent 2377fbd commit 841f9a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class Connector < ProtocolModel
attribute :name, Types::String
attribute :type, ConnectorType
attribute :connection_specification, Types::Hash
attribute :query_type, ConnectorQueryType.optional.default("raw_sql")
end

class LogMessage < ProtocolModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,23 +371,6 @@ module Integrations::Protocol
expect(connector.connection_specification).to eq(key: "value")
end
end

context "connector_query_type validations" do
it "has a connector_query_type 'sql'" do
connector = Connector.new(name: "Test", type: "source", query_type: "soql", connection_specification: {})
expect(ModelQueryType.values).to include(connector.query_type)
end

it "has a connector_query_type 'soql'" do
connector = Connector.new(name: "Test", type: "destination", query_type: "soql", connection_specification: {})
expect(ModelQueryType.values).to include(connector.query_type)
end

it "has a query_type default raw_sql " do
connector = Connector.new(name: "Test", type: "destination", connection_specification: {})
expect(connector.query_type).to eq("raw_sql")
end
end
end

RSpec.describe Multiwoven::Integrations::Protocol::ControlMessage do
Expand Down

0 comments on commit 841f9a1

Please sign in to comment.