Fit upstream saas registration flow
Try to fix saas registration flow on upstream
- https://jihulab.com/gitlab-cn/gitlab/-/jobs/8019330
- https://jihulab.com/gitlab-cn/gitlab/-/jobs/8019326
If not override
On jh side, we will redirect to customerdot with success
allow_next_instance_of(GitlabSubscriptions::CreateService) do |instance|
allow(instance).to receive(:execute).and_return({ success: true, data: 'foo' })
end
Override
This will redirect to expect url.
allow_next_instance_of(GitlabSubscriptions::CreateService) do |instance|
allow(instance).to receive(:execute).and_return({ success: true, data: nil })
end
Other way
Skip the feature test, because this is not jh purchase flow.
/cc @dexterdeng
由 TianLu 编辑于