Skip to content

Commit

Permalink
Update hub download test
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus-consoli committed Oct 31, 2023
1 parent 917cb5a commit 5c2ed31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1008,13 +1008,6 @@ jobs:
run: |
make build_smartmodules
- name: Log in Fluvio Cloud
env:
ORG_HUB_SA_PASSWD_DEV: ${{ secrets.ORG_HUB_SA_PASSWD_DEV }}
ORG_HUB_SA_NAME: ${{ secrets.ORG_HUB_SA_NAME }}
run: |
RUST_LOG=debug fluvio cloud login --email "$ORG_HUB_SA_NAME" --password "$ORG_HUB_SA_PASSWD_DEV" --remote https://dev.infinyon.cloud
# Run fluvio test
- name: Run Fluvio CLI smoke tests
if: matrix.test == 'fluvio'
Expand Down
20 changes: 11 additions & 9 deletions tests/cli/fluvio_smoke_tests/smartmodule-basic.bats
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ setup_file() {
assert_output --partial "SmartModule not found"
}

# fix CI authentication to hub service first:
# https://github.com/infinyon/fluvio/issues/3634
#
# Download smartmodule from hub and test it without creating a new project
@test "Test external smartmodule" {
run timeout 15s "$FLUVIO_BIN" hub sm download "infinyon/[email protected]"
assert_success

run timeout 15s "$FLUVIO_BIN" sm test \
-t '{"uses":"infinyon/[email protected]", "with": {"regex": "^f"}}' \
--text 'fluvio'
assert_output --partial fluvio
}
# @test "Test external smartmodule" {
# run timeout 15s "$FLUVIO_BIN" hub sm download "infinyon/[email protected]"
# assert_success
# run timeout 15s "$FLUVIO_BIN" sm test \
# -t '{"uses":"infinyon/[email protected]", "with": {"regex": "^f"}}' \
# --text 'fluvio'
# assert_output --partial fluvio
# }

0 comments on commit 5c2ed31

Please sign in to comment.