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

Fix return values for Create and Get #18

Merged
merged 8 commits into from
Oct 4, 2023
Merged

Fix return values for Create and Get #18

merged 8 commits into from
Oct 4, 2023

Conversation

dann1
Copy link
Collaborator

@dann1 dann1 commented Oct 3, 2023

Now returns

 ~/P/C/provisioning-engine   sr_return *  src/client  ./http_cli.rb get http://localhost:1337/serverless-runtimes/230 ../../tests/example_runtime_definition_minimal.json
{
  "SERVERLESS_RUNTIME": {
    "NAME": "nature_aafdcada-cfe8-4b8c-87ed-af42de44b81c",
    "ID": 240,
    "FAAS": {
      "FLAVOUR": "nature",
      "ENDPOINT": "http://localhost:1339",
      "VM_ID": "205",
      "STATE": "PENDING",
      "CPU": 0.1,
      "MEMORY": 64,
      "DISK_SIZE": 256
    },
    "SCHEDULING": {
    },
    "DEVICE_INFO": {
    },
    "SERVICE_ID": 239
  }
}

Other changes

  • Fixed schema having wrong parameter types and missing parameters
  • Tests updated
    • backported verbose logging from dev branch
    • run tests on dedicated test templates to avoid NIC lease problems

@dann1 dann1 changed the title Fix schema Fix return values for Create and Get Oct 3, 2023
@dann1 dann1 requested a review from tinova October 3, 2023 16:48
@tinova tinova merged commit a49af33 into main Oct 4, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants