Skip to content

Замотохина Мария Лаб. 3 Группа 6511#141

Open
ZamotohinaMaria wants to merge 21 commits into
itsecd:mainfrom
ZamotohinaMaria:Laba3
Open

Замотохина Мария Лаб. 3 Группа 6511#141
ZamotohinaMaria wants to merge 21 commits into
itsecd:mainfrom
ZamotohinaMaria:Laba3

Conversation

@ZamotohinaMaria
Copy link
Copy Markdown

ФИО: Замотохина Мария
Номер группы: 6511
Номер лабораторной: 3
Номер варианта: 6
Краткое описание предметной области: Медицинский пациент
Краткое описание добавленных фич: Добавлен брокер сообщений и файловый сервис Minio. Добавлены интеграционные тесты.

@github-actions github-actions Bot added In progress Код в процессе проверки Lab 3 Лабораторная №3. Интеграционное тестирование labels May 10, 2026
@github-actions github-actions Bot requested a review from danlla May 10, 2026 18:39
Copy link
Copy Markdown

@danlla danlla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Не обновлен ридми

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Видимо лишний проект, нужно удалить

Comment on lines +9 to +12
var minio = builder.AddMinioContainer("minio")
.WithEnvironment("MINIO_ROOT_USER", minioAccessKey)
.WithEnvironment("MINIO_ROOT_PASSWORD", minioSecretKey)
.WaitFor(redis);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В 6 варианте в качестве хостинга S3 должен использоваться Localstack, а не Minio

Comment on lines +28 to +53
var generator1 = builder.AddProject<Projects.MedicalPatient_Generator>("generator-1")
.WithEndpoint("http", endpoint => endpoint.Port = 5101)
.WithReference(redis)
.WithEnvironment("SQS__ServiceUrl", sqs.GetEndpoint("http"))
.WithEnvironment("SQS__QueueName", "medical-patients")
.WaitFor(redis)
.WithExternalHttpEndpoints()
.WaitFor(sqs);

var generator2 = builder.AddProject<Projects.MedicalPatient_Generator>("generator-2")
.WithEndpoint("http", endpoint => endpoint.Port = 5102)
.WithReference(redis)
.WithEnvironment("SQS__ServiceUrl", sqs.GetEndpoint("http"))
.WithEnvironment("SQS__QueueName", "medical-patients")
.WaitFor(redis)
.WithExternalHttpEndpoints()
.WaitFor(sqs);

var generator3 = builder.AddProject<Projects.MedicalPatient_Generator>("generator-3")
.WithEndpoint("http", endpoint => endpoint.Port = 5103)
.WithReference(redis)
.WithEnvironment("SQS__ServiceUrl", sqs.GetEndpoint("http"))
.WithEnvironment("SQS__QueueName", "medical-patients")
.WaitFor(redis)
.WithExternalHttpEndpoints()
.WaitFor(sqs);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Создание сервисов можно сделать в цикле, чтобы проще было увеличивать их количество

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Код в этом проекте очень сильно совпадает с кодом в #107
Надеюсь переход на Localstack сделает их более непохожими

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот класс один в один совпадает с похожим классом из #107

}
}

public async Task<List<S3Object>> WaitForS3ObjectAsync(string key, int maxAttempts = 15)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот метод нигде не используется

Comment on lines +13 to +14
if (string.Equals(configuredBucketName, CommonTypoBucketName, StringComparison.OrdinalIgnoreCase))
return DefaultBucketName;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправление опечатки можно же было решить исправлением файлов настроек и простым перезапуском aspire проекта

Эти строчки здесь не нужны

@danlla danlla added the Stolen Вы уличены в краже кода. Вы покрыли себя несмываемым позором label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

In progress Код в процессе проверки Lab 3 Лабораторная №3. Интеграционное тестирование Stolen Вы уличены в краже кода. Вы покрыли себя несмываемым позором

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants