This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (s *eventTestSuite) TestAwSuccesfullyDeployedButCrmFailed() { | |
//given | |
s.asAnonymousUser().signup().and().deployLensesAWS() | |
// when | |
s.deployedSuccesfullyAWS() | |
// then | |
s.handleLeadCrmIntegrationError() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (s *eventTestSuite) TestAwsActivityCrmSuccess() { | |
//given | |
s.asAnonymousUser().and().signup() | |
// when | |
s.deployLensesAWS() | |
// then | |
s.handleNoError() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (s *eventTestSuite) and() *eventTestSuite { | |
return s | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (s *eventTestSuite) signup() *eventTestSuite { | |
s.crmClient.createLead = func(req pardot.LeadRequest) (int64, error) { | |
return s.crmID, nil | |
} | |
s.err = s.eventHandler.HandleEvent(context.Background(), testutil.EventToSQSEvent(leads.LeadCreateEvent{ | |
Owner: s.username, | |
URN: s.userURN, | |
CreatedAt: time.Now(), | |
})) | |
return s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (s *eventTestSuite) asAnonymousUser() *eventTestSuite { | |
return s | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lead | |
type eventTestSuite struct { | |
suite.Suite | |
err error | |
eventHandler *LeadEventHandler | |
crmClient *mockCrmClient | |
username string | |
userURN string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: nginx-ingress | |
namespace: argocd | |
annotations: | |
argocd.argoproj.io/sync-wave: "-1" | |
finalizers: | |
- resources-finalizer.argocd.argoproj.io | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: external-secrets | |
namespace: argocd | |
annotations: | |
argocd.argoproj.io/sync-wave: "-2" | |
finalizers: | |
- resources-finalizer.argocd.argoproj.io | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: external-dns | |
namespace: argocd | |
annotations: | |
argocd.argoproj.io/sync-wave: "-2" | |
finalizers: | |
- resources-finalizer.argocd.argoproj.io | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "argocd" { | |
source = "git@github.com:<our-secret-repo>/cloud-terraform-modules.git//aws/argocd?ref=v1.2.0" | |
cluster_endpoint = module.eks.kube_provider.host | |
cluster_cacert = base64encode(module.eks.kube_provider.cluster_ca_certificate) | |
cluster_token = module.eks.kube_provider.token | |
cluster_name = module.eks.kube_provider.aws.args.cluster_name | |
aws_cluster_assume_role_arn = module.eks.kube_provider.aws.args.role | |
argocd_namespace = var.argocd_namespace | |
argocd_manifest_uri = var.argocd_manifest_uri |
NewerOlder