Skip to content

Commit

Permalink
[APPEND][HWORKS-919] Add IT for setup online feature store in feature…
Browse files Browse the repository at this point in the history
… preview (#1704)

(cherry picked from commit 1a52ffe)

# Conflicts:
#	hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb
  • Loading branch information
kennethmhc committed Feb 9, 2024
1 parent 3cb9011 commit 5087026
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2705,6 +2705,23 @@
expect_status_details(200)
end

it "should be able to preview a online featuregroup in the featurestore shared with itself" do
shared_project = create_project(validate_session: false)
project = get_project
featurestore_id = get_featurestore_id(project.id)
json_result, _ = create_cached_featuregroup(project.id, featurestore_id, online:true)
parsed_json = JSON.parse(json_result)
expect_status_details(201)
featuregroup_id = parsed_json["id"]

featurestore = "#{@project['projectname'].downcase}_featurestore.db"
share_dataset(@project, featurestore, shared_project['projectname'], datasetType: "&type=FEATURESTORE")
accept_dataset(shared_project, "#{@project['projectname']}::#{featurestore}",
datasetType: "&type=FEATURESTORE")
get "#{ENV['HOPSWORKS_API']}/project/" + shared_project.id.to_s + "/featurestores/" + featurestore_id.to_s + "/featuregroups/" + featuregroup_id.to_s + "/preview?storage=online"
expect_status_details(200)
end

it "should be able to limit the number of rows in a preview" do
project = create_project(validate_session: false)
featurestore_id = get_featurestore_id(project.id)
Expand Down

0 comments on commit 5087026

Please sign in to comment.