Activities of "Yaduraj"

I have two microservices apliations say App1 and App2 hosted on an IIS server. I am using IDistributedEventBus (https://docs.abp.io/en/abp/latest/Distributed-Event-Bus) to Publish event that contains only a GUID property. App1 successfully publishes the event and the message getting added to Queue in RabbitMQ. But the HandleEventAsync method of IDistributedEventHandler in App2 is not being called even if the App2 is in always running mode. Sometimes, HandleEventAsync gets called when we explicitly call an API of App2.

What can be the issue? Am I missing something?

  • ABP Framework version: v3.0.4
  • UI type: Angular / MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace: None
  • Steps to reproduce the issue: None

Thanks @liangshiwei,

We actually followed the same example and it works locally but when we deploy in IIS, the handler is not getting called.

I have to test a client in my app which will further be commnicating to a third party rest Api. As of now I would like to Mock or fake that Api in my Unit Testing project. Does ABP provides integration to any mock framework like Moq. I specifically want to Unit Test API Calls. How can I mock API calls in abp framework for Unit Testing using xUnit/Moq

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Thank you @enisn

Hi, This is urgent. We are facing some issue in mocking repositories using NSubstitute.

Can we connect through online session. Please help as soon as possible.

Hi @enisn,

Thanks for the quick response.

We are using integration tests as in https://docs.abp.io/en/abp/latest/Testing#integration-tests So there are methods where we are calling a CustomAPIService that makes http call to a 3rd party API and would like to Substitute/Mock those calls. In this configuration if I mock the Repositories, I get SQLite Error 19: 'FOREIGN KEY constraint failed'.. Can't we mix NSubstitute with Integration Tests?

I request you to have an online session so that I can walk you through the code structure in better way. Becuase its a bit hard to give example as some of AppService contains around 30 dependencies

It will be really helpful. Thanks in Advance!

Hi @enisn

The project is very large and could not be send over mail. It would be really great to have an online session where I can show you the code. Please can you guide my how can I get assisted with abp support team, where I can show my code?

Hi,

We are getting following error while running/debugging the unit test cases.

Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module SCV.Litmus.InvoiceManagement.InvoiceManagementTestBaseModule, SCV.Litmus.InvoiceManagement.TestBase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: SQLite Error 1: 'no such table: AbpSettings'.. See the inner exception for details. ---- Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'no such table: AbpSettings'.

This error is being thrown from the OnApplicationInitialization(...) while we call SeedTestData(context) of TestBaseModule class. Please find attached snapshot-

Before this, we were getting error The active test run was aborted. Reason: Test host process crashed see issue So we added "AbpLicenseCode" in Test project's appsetting.config, then the above error started to come.

Note: Its a bloacker for our project and we can not give you minimal project to reproduce the issue. So let us know if we can connect through Zoom.

We have changed version from v3.0.4 to v4.3.1, please help me for resolve this issue. what i am missing.

  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Thanks @maliming

The issue has been resolved with given solution.

We are working on an Application where each Tenant will share some common data say: Bank Information. Previously, We kept that bank information (All the bank related tables ) in Tenant Scope. Now we want to move the Bank information to a global database where each tenant can access it. Our current approach is 'Database per tenant'

**For Example: ** I have Tennat_1 and it is mapped with Some banks (say ABC, XYZ) Now If we create Tenant_2, we should be able to map these Banks to this new Tenant and other Tenant(s). So on Login, each Tenant will acess their own mapped Bank.

We also wanna manage this Bank data at global level where Tenant is managed.

  1. How can we add these Bank Entities to a global database or shared database.

  2. If added, then how Tenant will access it? Do we need to extend the code in order to acess Global Bank Enitites? ( We seemlessly wants to access these Bank entites, like CurrentUser and CurrentTenant)

  3. How can we implement Domain service for Bank Information like IdentityManager

  4. Please suggest suitable Database Architecture and approach.

Kindly provide the solution as soon as possible.** Also, Let us know if we can get support via calls or online meetings.**

Thanks!

  • ABP Framework version: v4.3.1
  • UI type: Angular / MVC
  • DB provider: EF Core / PostgreSQL
Showing 1 to 10 of 24 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11