Remove this validation

Stephen Paul Weber created

It doesn't do anything we need and causes us to need more config we'd
rather not have

Change summary

bin/porting       | 4 +---
lib/db_port.rb    | 2 +-
lib/validators.rb | 6 ------
3 files changed, 2 insertions(+), 10 deletions(-)

Detailed changes

bin/porting 🔗

@@ -67,9 +67,7 @@ SCHEMA = "{
 	notification: { endpoint: Text, source_number: Text },
 	pubsub: { server: Text, node: Text },
 	testing_tel: Text,
-	admin_server: Text,
-	sgx: Text,
-	sgx_creds: List { mapKey: Text, mapValue: {} }
+	admin_server: Text
 }"
 
 raise "Need a Dhall config" unless ARGV[0]

lib/db_port.rb 🔗

@@ -17,7 +17,7 @@ class DbPort
 		updated_at DateTime, coerce: true
 		tel ValidTelString
 		customer_id String
-		backend_sgx ValidBackendSgx
+		backend_sgx String
 	end
 
 	def self.coerce_actual_foc_date(time)

lib/validators.rb 🔗

@@ -1,11 +1,5 @@
 # frozen_string_literal: true
 
-module ValidBackendSgx
-	def self.===(value)
-		([CONFIG[:sgx]] + CONFIG[:sgx_creds].keys).include?(value)
-	end
-end
-
 module ValidTelString
 	def self.===(value)
 		value.is_a?(String) && value =~ /\A\+1(\d{3})(\d{3})(\d+)\Z/