Skip to content

Commit 5087026

Browse files
committed
[APPEND][HWORKS-919] Add IT for setup online feature store in feature preview (#1704)
(cherry picked from commit 1a52ffe) # Conflicts: # hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb
1 parent 3cb9011 commit 5087026

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

hopsworks-IT/src/test/ruby/spec/featuregroup_spec.rb

+17
Original file line numberDiff line numberDiff line change
@@ -2705,6 +2705,23 @@
27052705
expect_status_details(200)
27062706
end
27072707

2708+
it "should be able to preview a online featuregroup in the featurestore shared with itself" do
2709+
shared_project = create_project(validate_session: false)
2710+
project = get_project
2711+
featurestore_id = get_featurestore_id(project.id)
2712+
json_result, _ = create_cached_featuregroup(project.id, featurestore_id, online:true)
2713+
parsed_json = JSON.parse(json_result)
2714+
expect_status_details(201)
2715+
featuregroup_id = parsed_json["id"]
2716+
2717+
featurestore = "#{@project['projectname'].downcase}_featurestore.db"
2718+
share_dataset(@project, featurestore, shared_project['projectname'], datasetType: "&type=FEATURESTORE")
2719+
accept_dataset(shared_project, "#{@project['projectname']}::#{featurestore}",
2720+
datasetType: "&type=FEATURESTORE")
2721+
get "#{ENV['HOPSWORKS_API']}/project/" + shared_project.id.to_s + "/featurestores/" + featurestore_id.to_s + "/featuregroups/" + featuregroup_id.to_s + "/preview?storage=online"
2722+
expect_status_details(200)
2723+
end
2724+
27082725
it "should be able to limit the number of rows in a preview" do
27092726
project = create_project(validate_session: false)
27102727
featurestore_id = get_featurestore_id(project.id)

0 commit comments

Comments
 (0)