Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Request with OpenShift Mock Server Not Working #1144

Closed
piyush-garg opened this issue Jul 18, 2018 · 0 comments
Closed

Get Request with OpenShift Mock Server Not Working #1144

piyush-garg opened this issue Jul 18, 2018 · 0 comments
Assignees
Labels

Comments

@piyush-garg
Copy link
Contributor

@Rule
  public OpenShiftServer server = new OpenShiftServer(true, true);

  @Test
  public void testCrud() {
    OpenShiftClient client = server.getOpenshiftClient();

    BuildConfig buildConfig = new BuildConfigBuilder()
      .withNewMetadata()
        .withName("bc2")
        .withLabels(Collections.singletonMap("key","value"))
      .endMetadata()
      .build();

    client.buildConfigs().create(buildConfig);

    BuildConfig buildConfig1 = client.buildConfigs().withName("bc2").get();
    assertEquals("value", buildConfig1.getMetadata().getLabels().get("key"));
  }

Simple code like this is not working

piyush-garg added a commit to piyush-garg/kubernetes-client that referenced this issue Jul 18, 2018
Adds the case of openshift url also when doing the path URL match
to work fine with openshift resouce in openshift mock server crud Mode
Fix fabric8io#1144
rohanKanojia pushed a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 28, 2018
Adds the case of openshift url also when doing the path URL match
to work fine with openshift resouce in openshift mock server crud Mode
Fix fabric8io#1144
rohanKanojia pushed a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 28, 2018
Adds the case of openshift url also when doing the path URL match
to work fine with openshift resouce in openshift mock server crud Mode
Fix fabric8io#1144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants