Skip to content

Commit

Permalink
Merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
tba76 committed Sep 6, 2023
2 parents f4863cc + f89497a commit 22414b4
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Altinn.Notifications.Core/Models/Email.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public class Email
/// <summary>
/// Initializes a new instance of the <see cref="Email"/> class.
/// </summary>
public Email(Guid id, string subject, string body, string fromAddress, string toAddress, EmailContentType contentType)
public Email(Guid notificationId, string subject, string body, string fromAddress, string toAddress, EmailContentType contentType)
{
NotificationId = id;
NotificationId = notificationId;
Subject = subject;
Body = body;
FromAddress = fromAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Altinn.Notifications.Validators;

/// <summary>
/// Claass contining validation logic for the <see cref="EmailNotificationOrderRequestExt"/> model
/// Class containing validation logic for the <see cref="EmailNotificationOrderRequestExt"/> model
/// </summary>
public class EmailNotificationOrderRequestValidator : AbstractValidator<EmailNotificationOrderRequestExt>
{
Expand All @@ -22,7 +22,7 @@ public EmailNotificationOrderRequestValidator()

RuleFor(order => order.RequestedSendTime)
.Must(sendTime => sendTime >= DateTime.UtcNow.AddMinutes(-5))
.WithMessage("Send time must be in the future. Leave blank to send immediatly.");
.WithMessage("Send time must be in the future. Leave blank to send immediately.");

RuleFor(order => order.Body).NotEmpty();
RuleFor(order => order.Subject).NotEmpty();
Expand Down
2 changes: 1 addition & 1 deletion src/Altinn.Notifications/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"altinn.notifications.health.check",
"altinn.notifications.orders.pastdue",
"altinn.notifications.orders.pastdue.retry",
"altinn.notification.email.queue"
"altinn.notifications.email.queue"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public EmailTests()
_email = new Email(id, "subject", "body", "[email protected]", "[email protected]", EmailContentType.Html);
_serializedEmail = new JsonObject()
{
{ "id", id },
{ "notificationId", id },
{ "subject", "subject" },
{"body", "body" },
{"fromAddress", "[email protected]" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void Validate_SendTimePassed_ReturnsFalse()
var actual = _validator.Validate(order);

Assert.False(actual.IsValid);
Assert.Contains(actual.Errors, a => a.ErrorMessage.Equals("Send time must be in the future. Leave blank to send immediatly."));
Assert.Contains(actual.Errors, a => a.ErrorMessage.Equals("Send time must be in the future. Leave blank to send immediately."));
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion test/k6/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ networks:

services:
k6:
image: loadimpact/k6:0.46.0
image: grafana/k6:0.46.0
networks:
- k6
ports:
Expand Down
4 changes: 2 additions & 2 deletions test/k6/src/data/orders/01-email-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"subject": "Automated email from Altinn",
"body": "This is an automated email generated during testing of Altinn Notifications",
"content-type": "Html",
"fromAddress": "noreply@altinn.no"
}
"fromAddress": "noreply@altinn.cloud"
}

0 comments on commit 22414b4

Please sign in to comment.