Skip to content

fix: docker compose configuration to use the new index container#320

Merged
josecelano merged 1 commit intotorrust:developfrom
josecelano:update-index-docker-config-for-e2e-testing
Oct 27, 2023
Merged

fix: docker compose configuration to use the new index container#320
josecelano merged 1 commit intotorrust:developfrom
josecelano:update-index-docker-config-for-e2e-testing

Conversation

@josecelano
Copy link
Copy Markdown
Member

@da2ce7 did some changes on the docker container for the Torrust Index, and the docker image was not starting on the testing workflow.

This change updates the config.

@josecelano josecelano requested a review from da2ce7 October 26, 2023 11:44
@josecelano josecelano marked this pull request as draft October 26, 2023 13:14
@josecelano
Copy link
Copy Markdown
Member Author

josecelano commented Oct 26, 2023

The DB in the cypress config is still in the old location:

export default defineConfig({
  e2e: {
    baseUrl: "http://localhost:3000",
    setupNodeEvents (on, config) {
      on("task", {
        // Category context
        deleteCategory: ({ name }) => {
          return deleteCategory(name, databaseConfig(config));
        },
        addCategory: ({ name }) => {
          return addCategory(name, databaseConfig(config));
        },
        // Torrent context
        deleteTorrent: ({ infohash }) => {
          return deleteTorrent(infohash, databaseConfig(config));
        },
        // User context
        grantAdminRole: ({ username }) => {
          return grantAdminRole(username, databaseConfig(config));
        },
        deleteUser: ({ username }) => {
          return deleteUser(username, databaseConfig(config));
        }
      });
    }
  },
  env: {
    db_file_path: "./storage/index/lib/databasetorrust_index_backend_e2e_testing.db"
  }
});

@josecelano josecelano force-pushed the update-index-docker-config-for-e2e-testing branch from da78e10 to 33f96f6 Compare October 27, 2023 11:40
@josecelano josecelano marked this pull request as ready for review October 27, 2023 11:51
@josecelano
Copy link
Copy Markdown
Member Author

ACK 33f96f6

@josecelano josecelano merged commit 61695c5 into torrust:develop Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant