From 5087026df29d1cf8d9436cc3fc76f159d0f11f6a Mon Sep 17 00:00:00 2001 From: kennethmhc Date: Tue, 6 Feb 2024 18:28:16 +0100 Subject: [PATCH] [APPEND][HWORKS-919] Add IT for setup online feature store in feature preview (#1704) (cherry picked from commit 1a52ffeed7c56f6e6169e6b1956f0faaf4a52840) # Conflicts: # hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb --- .../src/test/ruby/spec/featuregroup_spec.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb b/hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb index e73ed05cdc..e1786758af 100644 --- a/hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb +++ b/hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb @@ -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)