Skip to content

Commit

Permalink
add agrirouter 2 QA environment definition (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverrahner authored Jun 28, 2024
1 parent 03201bc commit 1f3086d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/agrirouter/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
"qwIDAQAB\n" \
"-----END PUBLIC KEY-----"

AR2_QA_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\n" \
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw4DStz1cikiCqTd70p9i\n" \
"RBBx4vdTEtZAaWtvswu/IdMNoXP30+1ExVc3oJ0wHn3DMWItMLtn0gUSjj+XzDN5\n" \
"yrmwUSS6qqyAFinLBUio88EyEQAocZo270bDk9gSndftIvvQ82Iu6p4gRg1zbPNF\n" \
"CoBdLCQx7MN2zbl+/kmuZXzeEXZwAT94O8IbbTTAz9Wy5MUrAlJwNVaZir9bY6AZ\n" \
"CvgUPNRL2Jq9yz8IeoawhLNOo6ae47Jcf88x+7t/eN8QSrGu50WD1qpZbTReH7FA\n" \
"ju9qUVOmP1P9rSYkuhrkWg16Qrw1t8hEqMiRDNYUUTkqEit+H1CNEBgr6t3RIC5t\n" \
"fQIDAQAB\n" \
"-----END PUBLIC KEY-----"

AR_PROD_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\n" \
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwCxD31sYtzH9NTfZ6n8H\n" \
"+H/QgOaoTL9GAakplAsdwYSLjBpgYMZOHIgkdM9ksRP8WsITChtZtxrCnBjR8bap\n" \
Expand Down
9 changes: 8 additions & 1 deletion src/agrirouter/api/env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from agrirouter.api.constants import AR_QA_PUBLIC_KEY, AR_PROD_PUBLIC_KEY
from agrirouter.api.constants import AR_QA_PUBLIC_KEY, AR2_QA_PUBLIC_KEY, AR_PROD_PUBLIC_KEY


class BaseEnvironment:
Expand Down Expand Up @@ -65,6 +65,13 @@ class Qa(BaseEnvironment):
_AR_PUBLIC_KEY = AR_QA_PUBLIC_KEY


class Ar2Qa(BaseEnvironment):
_ENV_BASE_URL = "https://app.qa.agrirouter.farm"
_API_PREFIX = "/api/v1.0"
_REGISTRATION_SERVICE_URL = "https://endpoint-service.qa.agrirouter.farm"
_AR_PUBLIC_KEY = AR2_QA_PUBLIC_KEY


class EnvironmentalService:
"""
A class that provides environmental messaging based on the provided environment value.
Expand Down

0 comments on commit 1f3086d

Please sign in to comment.