Skip to content

Commit

Permalink
MM-60769: store package data to snowflake (#1622)
Browse files Browse the repository at this point in the history
* MM-60769: store package data to snowflake

* Add support packet ingestion
  • Loading branch information
ifoukarakis authored Oct 8, 2024
1 parent 9540a52 commit 2127302
Show file tree
Hide file tree
Showing 17 changed files with 3,120 additions and 19 deletions.
9 changes: 8 additions & 1 deletion tests/utils/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pandas as pd
import pytest
from responses import Response
from sqlalchemy import create_engine


@pytest.fixture(autouse=True)
Expand Down Expand Up @@ -138,7 +139,6 @@ def post_data_error(responses):

@pytest.fixture
def config_data(monkeypatch, mocker):

# mocking loading k8 secrets to environment variables
monkeypatch.setenv("NPS_WEBHOOK_URL", "https://mattermost.example.com/hooks/hookid")
monkeypatch.setenv("DOCS_WEBHOOK_URL", "https://mattermost.example.com/hooks/hookid")
Expand All @@ -148,3 +148,10 @@ def config_data(monkeypatch, mocker):
monkeypatch.setenv("SNOWFLAKE_TRANSFORM_WAREHOUSE", "test warehouse")
monkeypatch.setenv("SNOWFLAKE_TRANSFORM_DATABASE", "test database")
monkeypatch.setenv("SNOWFLAKE_TRANSFORM_SCHEMA", "test schema")


@pytest.fixture
def sqlalchemy_memory_engine():
engine = create_engine('sqlite:///:memory:')
yield engine
engine.dispose()
Binary file not shown.
1,493 changes: 1,493 additions & 0 deletions tests/utils/fixtures/packets/support/valid_with_metadata/goroutines

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 1
type: support-packet
generated_at: 1724075205094
server_version: 9.11.0
server_id: rmg9ib5rspy93jxswyc454bwzo
license_id: mud3ihm4938dxncqasxt14xxch
customer_id: p9un369a67gimj4yd6i6ib39wh
458 changes: 458 additions & 0 deletions tests/utils/fixtures/packets/support/valid_with_metadata/plugins.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2127302

Please sign in to comment.