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

Production 2024-10-24_01 #2679

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions services/skus/skus.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func newOrderItemReqNewMobileSet(env string) map[string]model.OrderItemRequestNe
leom := model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
// Location depends on env.
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand All @@ -252,6 +253,7 @@ func newOrderItemReqNewMobileSet(env string) map[string]model.OrderItemRequestNe
leoa := model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
// Location depends on env.
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand All @@ -266,6 +268,7 @@ func newOrderItemReqNewMobileSet(env string) map[string]model.OrderItemRequestNe
vpnm := model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
// Location depends on env.
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand Down
26 changes: 26 additions & 0 deletions services/skus/skus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.brave.software",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand All @@ -253,6 +254,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.brave.software",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand All @@ -279,6 +281,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
Location: "leo.brave.software",
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand All @@ -305,6 +308,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
Location: "leo.brave.software",
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand All @@ -331,6 +335,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.software",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand All @@ -357,6 +362,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.software",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand All @@ -383,6 +389,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.software",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand All @@ -409,6 +416,7 @@ func TestNewOrderItemReqForSubID(t *testing.T) {
req: model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.software",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand Down Expand Up @@ -470,6 +478,7 @@ func TestNewCreateOrderReqNewMobile(t *testing.T) {
{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.brave.software",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand Down Expand Up @@ -505,6 +514,7 @@ func TestNewCreateOrderReqNewMobile(t *testing.T) {
{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
Location: "leo.bravesoftware.com",
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand Down Expand Up @@ -540,6 +550,7 @@ func TestNewCreateOrderReqNewMobile(t *testing.T) {
{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.brave.com",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand Down Expand Up @@ -576,6 +587,7 @@ func TestNewCreateOrderReqNewMobile(t *testing.T) {
{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.software",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand Down Expand Up @@ -611,6 +623,7 @@ func TestNewCreateOrderReqNewMobile(t *testing.T) {
{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.bravesoftware.com",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand Down Expand Up @@ -646,6 +659,7 @@ func TestNewCreateOrderReqNewMobile(t *testing.T) {
{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.com",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand Down Expand Up @@ -689,6 +703,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.brave.com",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand All @@ -706,6 +721,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium-year": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
Location: "leo.brave.com",
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand All @@ -723,6 +739,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-vpn-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.com",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand All @@ -746,6 +763,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.bravesoftware.com",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand All @@ -763,6 +781,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium-year": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
Location: "leo.bravesoftware.com",
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand All @@ -780,6 +799,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-vpn-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.bravesoftware.com",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand All @@ -803,6 +823,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.brave.software",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand All @@ -820,6 +841,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium-year": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
Location: "leo.brave.software",
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand All @@ -837,6 +859,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-vpn-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.software",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand All @@ -860,6 +883,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium",
SKUVnt: "brave-leo-premium",
Location: "leo.brave.software",
Description: "Premium access to Leo",
CredentialType: "time-limited-v2",
Expand All @@ -877,6 +901,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-leo-premium-year": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-leo-premium-year",
SKUVnt: "brave-leo-premium-year",
Location: "leo.brave.software",
Description: "Premium access to Leo Yearly",
CredentialType: "time-limited-v2",
Expand All @@ -894,6 +919,7 @@ func TestNewOrderItemReqNewMobileSet(t *testing.T) {
"brave-vpn-premium": model.OrderItemRequestNew{
Quantity: 1,
SKU: "brave-vpn-premium",
SKUVnt: "brave-vpn-premium",
Location: "vpn.brave.software",
Description: "brave-vpn-premium",
CredentialType: "time-limited-v2",
Expand Down
Loading